Spaces:
Sleeping
Sleeping
Update qabot.py
Browse files
qabot.py
CHANGED
@@ -59,7 +59,7 @@ def create_qa_chain(prompt, llm, db):
|
|
59 |
|
60 |
# Load vector DB
|
61 |
def read_vector_db():
|
62 |
-
embedding_model = HuggingFaceEmbeddings(
|
63 |
return FAISS.load_local(vector_dp_path, embedding_model, allow_dangerous_deserialization=True)
|
64 |
|
65 |
# Build everything
|
|
|
59 |
|
60 |
# Load vector DB
|
61 |
def read_vector_db():
|
62 |
+
embedding_model = HuggingFaceEmbeddings(model_name = "sentence-transformers/all-MiniLM-L6-v2")
|
63 |
return FAISS.load_local(vector_dp_path, embedding_model, allow_dangerous_deserialization=True)
|
64 |
|
65 |
# Build everything
|