Spaces:
Runtime error
Runtime error
Update app.py
Browse files31 unmodified lines3233343536373831 unmodified linesdef get_vectorstore(text_chunks):# embeddings = OpenAIEmbeddings()embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)return vectorstore31 unmodified lines3233343536373831 unmodified linesdef get_vectorstore(text_chunks):# embeddings = OpenAIEmbeddings()embeddings = HuggingFaceInstructEmbeddings(model_name="meta-llama/Llama-2-7b")vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)return vectorstore
app.py+1-1