valeriylo commited on
Commit
c151fbf
1 Parent(s): 21b2429

Update app.py

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