Pranav4datasc commited on
Commit
fd4366b
·
verified ·
1 Parent(s): 0b8987b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,8 @@ def get_text_chunks(text):
32
 
33
  def get_vectorstore(text_chunks):
34
  #embeddings = OpenAIEmbeddings()
35
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
 
36
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
37
  return vectorstore
38
 
 
32
 
33
  def get_vectorstore(text_chunks):
34
  #embeddings = OpenAIEmbeddings()
35
+ #embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
36
+ embeddings=HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-base")
37
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
38
  return vectorstore
39