Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,8 @@ data = dataset["train"]
|
|
46 |
print(data)
|
47 |
d = 384 # vectors dimension
|
48 |
m = 32 # hnsw parameter. Higher is more accurate but takes more time to index (default is 32, 128 should be ok)
|
49 |
-
index = faiss.IndexHNSWFlat(d, m)
|
|
|
50 |
data.add_faiss_index("embeddings", custom_index=index)
|
51 |
# adds an index column that for the embeddings
|
52 |
|
|
|
46 |
print(data)
|
47 |
d = 384 # vectors dimension
|
48 |
m = 32 # hnsw parameter. Higher is more accurate but takes more time to index (default is 32, 128 should be ok)
|
49 |
+
#index = faiss.IndexHNSWFlat(d, m)
|
50 |
+
index = faiss.IndexFlat(d, m)
|
51 |
data.add_faiss_index("embeddings", custom_index=index)
|
52 |
# adds an index column that for the embeddings
|
53 |
|