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