This is a Streamlit-powered PDF QA chatbot that answers questions from uploaded PDF files. It uses LangChain, Sentence Transformers, and OpenRouter's GPT model for processing.
- Upload PDF files and extract content.
- Ask questions about the PDF.
- Set a word limit for answers.
- Uses OpenRouter's GPT API for generating responses.
git clone <YOUR_REPO_URL> cd <YOUR_REPO_NAME>
pip install -r requirements.txt
- Create a
.envfile in the root directory. - Add your OpenRouter API credentials: OPENAI_API_KEY=your_openrouter_api_key OPENAI_API_BASE=https://openrouter.ai/api/v1
streamlit run untitled.py
- Python 3.9+
- Streamlit
- LangChain
- Sentence Transformers
- OpenRouter GPT
- dotenv
- If you encounter missing
PATHissues, ensure that your Python environment is properly configured. - Delete the
/tempfolder if you face any file path issues. - If using MacOS, use
source ~/.zshrcto reload the environment variables.