hotchpotch
commited on
Commit
•
c1ebd09
1
Parent(s):
0fb0a80
add/change faiss indexes
Browse files- .gitignore +2 -2
- embs_to_faiss.py +3 -3
- faiss_indexes/multilingual-e5-small-passage/{index-chunked.faiss → chunked.faiss} +2 -2
- faiss_indexes/multilingual-e5-small-passage/{index.faiss → data.faiss} +2 -2
- faiss_indexes/multilingual-e5-small-query/chunked.faiss +3 -0
- faiss_indexes/multilingual-e5-small-query/data.faiss +3 -0
.gitignore
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
*_debug/*
|
2 |
-
data_no_quantization.
|
3 |
-
chunked_no_quantization.
|
|
|
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}.
|
115 |
elif not config.quantization:
|
116 |
-
return f"{target_local_ds}_no_quantization.
|
117 |
else:
|
118 |
-
return f"{target_local_ds}_m{config.m}_mbit{config.mbit}_nlist_{config.nlist}.
|
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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
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
|