Be able to have Conversations about any user-uploaded PDF, by breaking down the PDF into data, so that a Language model can learn,analyze, and provide discourse over the PDF.You can upload multiple PDFs at once as well.
Download all dependencies with "pip install -r requirements.txt"
- Create a .env file in the root directory
Make sure you change the .env with your own API keys
- Run the app with "streamlit run app.py"
- Upload a PDF file
- Wait for the model to process the PDF
- Ask questions about the PDF
- Wait for the model to answer the question
- Repeat steps 4 and 5
- Upload another PDF file
- The PDF is converted to text using the pdfminer library
- The text is cleaned and split into sentences
- The sentences are passed to the model, which generates a response
- The response is returned to the user
- The user can ask another question, and the process is repeated
- The user can upload another PDF, or multiple at once, and the process is repeated
All thanks to the original author of this project: alejandro-ao The code is taken from his project: https://github.com/alejandro-ao/ask-multiple-pdfs