Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ index = initialize_faiss()
|
|
100 |
save_faiss_index(index)
|
101 |
|
102 |
# Load document store and populate FAISS index
|
103 |
-
knowledgebase_file = os.path.join(UPLOAD_DIR, "
|
104 |
|
105 |
def load_document_store():
|
106 |
"""Loads knowledgebase.txt into a dictionary where FAISS IDs map to text and embeddings"""
|
|
|
100 |
save_faiss_index(index)
|
101 |
|
102 |
# Load document store and populate FAISS index
|
103 |
+
knowledgebase_file = os.path.join(UPLOAD_DIR, "knowledgebase1.txt") # Ensure this path is correct
|
104 |
|
105 |
def load_document_store():
|
106 |
"""Loads knowledgebase.txt into a dictionary where FAISS IDs map to text and embeddings"""
|