MCPcopy
hub / github.com/alejandro-ao/ask-multiple-pdfs / get_vectorstore

Function get_vectorstore

app.py:33–37  ·  view source on GitHub ↗
(text_chunks)

Source from the content-addressed store, hash-verified

31
32
33def get_vectorstore(text_chunks):
34 embeddings = OpenAIEmbeddings()
35 # embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
36 vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
37 return vectorstore
38
39
40def get_conversation_chain(vectorstore):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected