Skip to content

FazalRSA/rag-chatbot

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” RAG Chatbot – Retrieval-Augmented Generation Chatbot with ChromaDB + HuggingFace + Gradio

Welcome to the RAG Chatbot, a powerful, fully open-source conversational AI system that can answer your questions using your own documents!

Built with:

  • 🧠 LangChain for RAG pipeline logic
  • πŸ“š ChromaDB for local document storage & retrieval
  • ✨ Hugging Face Transformers for LLMs (like FLAN-T5)
  • πŸ’¬ Gradio for a beautiful user interface
  • ☁️ Hosted on Hugging Face Spaces

πŸš€ Features

  • πŸ“„ Upload documents (PDF, TXT, CSV, DOCX)
  • πŸ” Ask questions and get context-aware answers
  • πŸ’Ύ Uses ChromaDB to store and search chunks
  • 🧠 Uses FLAN-T5 or similar open-source models for generation
  • 🌐 Works fully online β€” no local setup required
  • πŸ”— Shareable public URL with Hugging Face Spaces

πŸ“¦ How It Works

  1. Document Upload: Upload files from your device
  2. Vector Store Creation: Text chunks are embedded and stored in ChromaDB
  3. Query Answering: Your query is converted into a vector β†’ similar chunks are retrieved
  4. LLM Generation: Retrieved context is passed to the LLM (like flan-t5-base) to generate a response
  5. Response Displayed in the Gradio UI

πŸ§ͺ Try It Out

βœ… Hosted version: https://huggingface.co/spaces/YasirUsman/rag-chatbot


🧰 Requirements

If you're running locally:

pip install -r requirements.txt
sudo apt-get install libmagic1

Or use this full setup in Colab:


!pip install -U langchain langchain-community huggingface_hub chromadb unstructured pypdf python-docx

About

RAG chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%