Closed XiaomeiLi1 closed 2 days ago
Strange - do you have some example input/output? Hard to tell what could be going wrong.
Any guidance how to integrate with external vector db such as chromadb? I don't find any documentation for the same.
Any guidance how to integrate with external vector db such as chromadb? I don't find any documentation for the same.
This was asked for in https://github.com/Future-House/paper-qa/issues/153, you can see some information there.
Also, we have just released version 5, which more or less rewrites everything. If you are still stuck, please reopen a new issue using paper-qa>=5
embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key) vectorstore = FAISS.from_documents(docs_split, embeddings, ids=[doc.metadata["source"] for doc in docs_split]) docs_obj = Docs(texts_index= vectorstore, memory=True) response = docs_obj.query(question)
Then I found it cannot pick up (it makes up) the citations. Do you have better solutions for this? BTW, I don't have PDF files downloaded. They are just stored in the langchain Document object. Thanks a lot!