An interactive Language Model-powered chatbot application that enables users to delve deep into their PDFs. Built with the power of Streamlit, LangChain, and OpenAI.
AskPDF is a chatbot that consumes a user-uploaded PDF, processes its text, and engages the user in a Q&A session about the content of the PDF. Dive into your documents and uncover insights with ease!
- 📤 Upload a PDF and extract its text.
- 💬 Interactive chat interface to ask questions.
- 🧠 Uses embeddings for swift content lookup.
- 🚀 Built leveraging Streamlit, LangChain, and OpenAI.
Ensure these libraries are set up:
- Streamlit
- streamlit_extras
- PyPDF2
- LangChain (and its modules)
- OpenAI
- dotenv
- pickle (Standard Python Library)
- os (Standard Python Library)
- 📥 Clone the repository:
git clone https://github.com/bcthakre/GenAIPDF.git
- 🚀 Move to the repository directory:
cd <repository-directory>
- 🛠 Install necessary packages:
pip install -r requirements.txt
- 🎉 Launch the Streamlit app:
streamlit run app.py
- 🖥 Open the app in your browser.
- 📄 Drag and drop a PDF file.
- ❓ Pose your questions regarding the PDF content.
graph TD
A[Start]
B[Upload PDF]
C[Extract Text from PDF]
D[Process & Embed Text]
E[User asks Question]
F[Fetch & Display Answer]
A --> B
B --> C
C --> D
D --> E
E --> F