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