gli-mrunal commited on
Commit
1f8474e
1 Parent(s): ce5c8d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,8 +48,8 @@ def get_text_chunks(text):
48
  return chunks
49
 
50
  def get_vectorstore(text_chunks):
51
- # embeddings = OpenAIEmbeddings()
52
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
53
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
54
  return vectorstore
55
 
 
48
  return chunks
49
 
50
  def get_vectorstore(text_chunks):
51
+ embeddings = OpenAIEmbeddings()
52
+ #embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
53
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
54
  return vectorstore
55