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
- π 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
- Document Upload: Upload files from your device
- Vector Store Creation: Text chunks are embedded and stored in ChromaDB
- Query Answering: Your query is converted into a vector β similar chunks are retrieved
- LLM Generation: Retrieved context is passed to the LLM (like
flan-t5-base) to generate a response - Response Displayed in the Gradio UI
β Hosted version: https://huggingface.co/spaces/YasirUsman/rag-chatbot
If you're running locally:
pip install -r requirements.txt
sudo apt-get install libmagic1Or use this full setup in Colab:
!pip install -U langchain langchain-community huggingface_hub chromadb unstructured pypdf python-docx