Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,8 +110,8 @@ def chat():
|
|
| 110 |
return render_template('chat.html', error="No vector database selected!", history=[])
|
| 111 |
|
| 112 |
# Load the selected Document Database
|
| 113 |
-
|
| 114 |
-
embedding_function = HuggingFaceEmbeddings(model_name="mixedbread-ai/mxbai-embed-large-v1")
|
| 115 |
db = Chroma(persist_directory=CHROMA_PATH, embedding_function=embedding_function)
|
| 116 |
results_document = db.similarity_search_with_relevance_scores(query_text, k=3)
|
| 117 |
|
|
|
|
| 110 |
return render_template('chat.html', error="No vector database selected!", history=[])
|
| 111 |
|
| 112 |
# Load the selected Document Database
|
| 113 |
+
embedding_function = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 114 |
+
#embedding_function = HuggingFaceEmbeddings(model_name="mixedbread-ai/mxbai-embed-large-v1")
|
| 115 |
db = Chroma(persist_directory=CHROMA_PATH, embedding_function=embedding_function)
|
| 116 |
results_document = db.similarity_search_with_relevance_scores(query_text, k=3)
|
| 117 |
|