MCPcopy Create free account
hub / github.com/BlueBash/BlogIQ / retrieve_documents

Function retrieve_documents

app.py:74–78  ·  view source on GitHub ↗
(collection_name, question)

Source from the content-addressed store, hash-verified

72 return vectorstore.as_retriever()
73
74def retrieve_documents(collection_name, question):
75 print("---RETRIEVING OLD DOCUMENTS---")
76 embedding_function = OpenAIEmbeddings()
77 vectorstore = Chroma(collection_name, embedding_function)
78 return vectorstore.as_retriever()
79
80
81def retrieve(state):

Callers 1

retrieveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected