YALCINKAYA commited on
Commit
8434101
·
verified ·
1 Parent(s): 1efe45e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -127,9 +127,7 @@ def add_document_store_to_index():
127
  # Add embeddings to FAISS index
128
  index.add_with_ids(embeddings, np.array(list(document_store.keys()), dtype=np.int64))
129
  print(f"Added {len(all_texts)} document embeddings to FAISS index.")
130
-
131
- add_document_store_to_index()
132
-
133
  def load_document_store():
134
  """Loads knowledgebase.txt into a dictionary where FAISS IDs map to text and embeddings"""
135
  global document_store
 
127
  # Add embeddings to FAISS index
128
  index.add_with_ids(embeddings, np.array(list(document_store.keys()), dtype=np.int64))
129
  print(f"Added {len(all_texts)} document embeddings to FAISS index.")
130
+
 
 
131
  def load_document_store():
132
  """Loads knowledgebase.txt into a dictionary where FAISS IDs map to text and embeddings"""
133
  global document_store