WebashalarForML commited on
Commit
3898411
·
verified ·
1 Parent(s): e68e1fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #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
 
 
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