Namitg02 commited on
Commit
877598f
·
verified ·
1 Parent(s): b036454

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ 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)
51
  data.add_faiss_index("embeddings", custom_index=index)
52
  # adds an index column that for the embeddings
53
 
 
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.IndexFlatL2(embedding_dim)
51
  data.add_faiss_index("embeddings", custom_index=index)
52
  # adds an index column that for the embeddings
53