alejandro-ao / ask-multiple-pdfs

A Langchain app that allows you to chat with multiple PDFs
1.6k stars 913 forks source link

Every time you have to reload the PDF file? #35

Open wenzhao98 opened 11 months ago

wenzhao98 commented 11 months ago

It should remember what has been loaded/embedded already.

vbalko commented 11 months ago

This can be solved by persisting database with those data. It would require rework a data model a little bit, but should work - AFAIK.

amrishsharma commented 3 months ago

one option is to use Chroma vector database

vectorstore = Chroma.from_documents(text_chunks, embeddings,persist_directory='./chroma_db')