Update knowledge_base.py
Browse files- knowledge_base.py +1 -1
knowledge_base.py
CHANGED
@@ -32,7 +32,7 @@ def create_faiss_index(texts):
|
|
32 |
return index, texts
|
33 |
|
34 |
# Search the FAISS index
|
35 |
-
|
36 |
"""
|
37 |
Search FAISS for the most relevant texts.
|
38 |
"""
|
|
|
32 |
return index, texts
|
33 |
|
34 |
# Search the FAISS index
|
35 |
+
def search_faiss(faiss_index, stored_texts, query, top_k=3):
|
36 |
"""
|
37 |
Search FAISS for the most relevant texts.
|
38 |
"""
|