Namitg02 commited on
Commit
f84e454
·
verified ·
1 Parent(s): 776dc94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, faiss.METRIC_INNER_PRODUCT)
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