PebinAPJ commited on
Commit
59d370d
·
verified ·
1 Parent(s): 44c7ef2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def get_text_chunks(text):
36
 
37
  # Function to create vectorstore from the text chunks
38
  def get_vectorstore(text_chunks):
39
- embeddings = HuggingFaceEmbeddings(model_name="hkunlp/instructor-xl") # Using lightweight instructor model
40
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
41
  return vectorstore
42
 
 
36
 
37
  # Function to create vectorstore from the text chunks
38
  def get_vectorstore(text_chunks):
39
+ embeddings = HuggingFaceEmbeddings(model_name="hkunlp/instructor-base") # Using lightweight instructor model
40
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
41
  return vectorstore
42