Skip to content

shahsanjanav/File-QA-RAG-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 File QA RAG Chatbot App

A Retrieval-Augmented Generation (RAG) chatbot using OpenAI GPT-3.5 and Streamlit.

Streamlit App

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.

🔗 Live App

👉 Launch App

🧠 Features

  • 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

🚀 Tech Stack

  • Streamlit UI
  • LangChain (Embeddings, Retriever, Prompting)
  • OpenAI GPT-3.5 Turbo API
  • FAISS (vector similarity search)

📸 Screenshots

🔹 Upload and Chat Interface

Chat UI

🔹 Sample Answer from GPT

Response Screenshot

📦 How to Run Locally

pip install -r requirements.txt
streamlit run app.py

🔐 API Key

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.

📄 License

MIT License © 2025 Sanjana Shah

👤 Author

Sanjana Shah
✨ Machine Learning & Generative AI Enthusiast
📫 LinkedIn


⭐ If you like this project, consider starring it on GitHub!

About

A Retrieval-Augmented Generation (RAG) chatbot using OpenAI GPT-3.5 and Streamlit.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages