valeriylo commited on
Commit
72b87dc
·
1 Parent(s): 04ef67e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,8 +43,8 @@ def get_text_chunks(text):
43
  def get_vectorstore(text_chunks):
44
 
45
  #embeddings = OpenAIEmbeddings()
46
- #embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
47
- embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
48
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
49
 
50
  return vectorstore
 
43
  def get_vectorstore(text_chunks):
44
 
45
  #embeddings = OpenAIEmbeddings()
46
+ embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
47
+ #embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
48
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
49
 
50
  return vectorstore