docker / genai-stack

Langchain + Docker + Neo4j + Ollama
Creative Commons Zero v1.0 Universal
3.39k stars 703 forks source link

Is it possible to support multiple PDF files in App3 Question / Answer with a local PDF? #117

Open sense1024 opened 5 months ago

sense1024 commented 5 months ago

Is it possible to support multiple PDF files in App3 Question / Answer with a local PDF?

jexp commented 5 months ago

@tomasonjo I think it should work with a multi-select or and then iterate over the files?

tomasonjo commented 5 months ago

We have tried this. I think that streamlit supports multiple files. You need to set pdf = st.file_uploader("Upload your PDF", type="pdf", accept_multiple_files=True) and then generate a single list with the text chunks from all PDFs and pass it to Neo4jVector index using from_texts method.