A Retrieval-Augmented Generation (RAG) chatbot using OpenAI GPT-3.5 and Streamlit.
A Streamlit-based Retrieval-Augmented Generation (RAG) chatbot that allows users to upload PDF files and ask context-aware questions using OpenAI GPT-3.5 and LangChain.
- Upload multiple PDF files
- Extracts content and embeds using OpenAI Embeddings
- Retrieves relevant context using FAISS
- Streams GPT-3.5 answers based on your questions
- Streamlit UI
- LangChain (Embeddings, Retriever, Prompting)
- OpenAI GPT-3.5 Turbo API
- FAISS (vector similarity search)
pip install -r requirements.txt
streamlit run app.py
This app uses OpenAI’s GPT-3.5 model via API.
To run the app yourself, store your API key in Streamlit Secrets:
OPENAI_API_KEY = "your-openai-api-key"
🔒 The key is accessed securely via
st.secrets["OPENAI_API_KEY"]
.
No key input is required in the app UI.
MIT License © 2025 Sanjana Shah
Sanjana Shah
✨ Machine Learning & Generative AI Enthusiast
📫 LinkedIn
⭐ If you like this project, consider starring it on GitHub!