Namitg02 commited on
Commit
e572962
·
verified ·
1 Parent(s): f3899b5

Update app.py

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