qorgh346 commited on
Commit
d464517
·
1 Parent(s): 51b4d27

update loader module

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def get_vectorstore(text_chunks):
104
  # embeddings = OpenAIEmbeddings()sentence-transformers/all-MiniLM-L6-v2
105
  # embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl",
106
  # model_kwargs={'device':'cpu'})
107
- vectorstore = FAISS.from_documents(texts=text_chunks, embedding=embeddings)
108
  # vectorstore = Chroma.from_texts(texts=text_chunks, embedding=embeddings)
109
 
110
  return vectorstore
 
104
  # embeddings = OpenAIEmbeddings()sentence-transformers/all-MiniLM-L6-v2
105
  # embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl",
106
  # model_kwargs={'device':'cpu'})
107
+ vectorstore = FAISS.from_documents(text_chunks, embeddings)
108
  # vectorstore = Chroma.from_texts(texts=text_chunks, embedding=embeddings)
109
 
110
  return vectorstore