hotchpotch commited on
Commit
c1ebd09
•
1 Parent(s): 0fb0a80

add/change faiss indexes

Browse files
.gitignore CHANGED
@@ -1,3 +1,3 @@
1
  *_debug/*
2
- data_no_quantization.index
3
- chunked_no_quantization.index
 
1
  *_debug/*
2
+ data_no_quantization.faiss
3
+ chunked_no_quantization.faiss
embs_to_faiss.py CHANGED
@@ -111,11 +111,11 @@ def gen_index_filename(config: FaissConfig, target_local_ds: str) -> str:
111
  and config.nlist == default_faiss_config.nlist
112
  and config.quantization == default_faiss_config.quantization
113
  ):
114
- return f"{target_local_ds}.index"
115
  elif not config.quantization:
116
- return f"{target_local_ds}_no_quantization.index"
117
  else:
118
- return f"{target_local_ds}_m{config.m}_mbit{config.mbit}_nlist_{config.nlist}.index"
119
 
120
 
121
  def gen_faiss_index(config: FaissConfig, dim: str, use_gpu: bool):
 
111
  and config.nlist == default_faiss_config.nlist
112
  and config.quantization == default_faiss_config.quantization
113
  ):
114
+ return f"{target_local_ds}.faiss"
115
  elif not config.quantization:
116
+ return f"{target_local_ds}_no_quantization.faiss"
117
  else:
118
+ return f"{target_local_ds}_m{config.m}_mbit{config.mbit}_nlist_{config.nlist}.faiss"
119
 
120
 
121
  def gen_faiss_index(config: FaissConfig, dim: str, use_gpu: bool):
faiss_indexes/multilingual-e5-small-passage/{index-chunked.faiss → chunked.faiss} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:724619e9b062f382da3289be875f831b56adab220ab80d146135940cd49bc44a
3
- size 109590868
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef7521b58800e932725bff4f6fe8f5a397d4b8f0d313e2468110df20dc7a1aa8
3
+ size 109567708
faiss_indexes/multilingual-e5-small-passage/{index.faiss → data.faiss} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ebc57c437f8c3b73cb125e309f3f119ebd8fb65031d872c85d2086e8013951fa
3
- size 24466076
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33bc38f7072a9ab07a467554c0ad138b3b56fcfce712dc29a5b1669a0e193ab9
3
+ size 24405860
faiss_indexes/multilingual-e5-small-query/chunked.faiss ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:867721e9df2f8bd2478155e032263ec2068af8d67be9252d230b313519a6bdce
3
+ size 109567708
faiss_indexes/multilingual-e5-small-query/data.faiss ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d000d318dce4d9febcd6fd0c29a9574cc39eb73745234dc5b295a28701ec5e80
3
+ size 24405860