PDF Chat App is a Streamlit-based web application that allows users to interactively chat with a PDF document. Utilizing advanced NLP techniques and the OpenAI language model, this app extracts text from uploaded PDFs and provides answers to user queries based on the PDF content.
- PDF Upload: Users can upload PDF documents to be processed.
- Interactive Q&A: Post upload, users can ask questions and receive answers based on the PDF content.
- Progress Indicators: Visual feedback during PDF processing for a better user experience.
- Collapsible Answer Format: Answers are displayed in an organized, collapsible format.
- Streamlit: An open-source app framework for Machine Learning and Data Science projects.
- LangChain: A Python library for building language model applications.
- OpenAI: Large language models for answering queries.
To run this app locally, you need to have Python installed on your system. Follow these steps:
-
Clone the Repository
git clone [email protected]:tal7aouy/chatpdf.git cd chatpdf
-
Install Dependencies
pip install -r requirements.txt
- Environment Setup
- Create a
.env
file in the project root. - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
.
- Run the App
streamlit run app.py
- Launch the App: Open the local URL provided by Streamlit.
- Upload PDF: Use the 'Upload your PDF' button to select a file.
- Query Input: Type your questions about the PDF content.
- View Answers: Expand the 'See Response' section for the app's responses.
Contributions are welcome. Please adhere to the project's guidelines and code of conduct when contributing.
This project is licensed under the MIT License.