Azmathussainthebo commited on
Commit
4bb029a
·
verified ·
1 Parent(s): 7fa47e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def get_text_chunks(text):
41
 
42
  # Function to create a FAISS vectorstore using Hugging Face embeddings
43
  def get_vectorstore(text_chunks):
44
- embeddings = HuggingFaceInstructEmbeddings(model_name="all-MiniLM-L6-v2")
45
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
46
  return vectorstore
47
 
 
41
 
42
  # Function to create a FAISS vectorstore using Hugging Face embeddings
43
  def get_vectorstore(text_chunks):
44
+ embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
45
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
46
  return vectorstore
47