JPLTedCas commited on
Commit
a8c7c38
·
verified ·
1 Parent(s): b3e04ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -131,9 +131,9 @@ def get_vectorstore(text_chunks):
131
  MODEL_NAME = "WhereIsAI/UAE-Large-V1"
132
  MODEL_NAME = "sentence-transformers/all-MiniLM-L6-v2"
133
  #MODEL_NAME = "avsolatorio/GIST-Embedding-v0"
134
- #MODEL_NAME = "intfloat/e5-mistral-7b-instruct"
135
- MODEL_NAME="intfloat/multilingual-e5-base"
136
- MODEL_NAME="BAAI/bge-base-en-v1.5"
137
  hf_embeddings = HuggingFaceEmbeddings(model_name=MODEL_NAME)
138
  vectorstore = Chroma.from_documents(text_chunks, hf_embeddings, persist_directory="db")
139
  return vectorstore
 
131
  MODEL_NAME = "WhereIsAI/UAE-Large-V1"
132
  MODEL_NAME = "sentence-transformers/all-MiniLM-L6-v2"
133
  #MODEL_NAME = "avsolatorio/GIST-Embedding-v0"
134
+ MODEL_NAME = "intfloat/e5-mistral-7b-instruct"
135
+ #MODEL_NAME="intfloat/multilingual-e5-base"
136
+ #MODEL_NAME="BAAI/bge-base-en-v1.5" Alucina un poco
137
  hf_embeddings = HuggingFaceEmbeddings(model_name=MODEL_NAME)
138
  vectorstore = Chroma.from_documents(text_chunks, hf_embeddings, persist_directory="db")
139
  return vectorstore