--- title: RAG Chatbot AI emoji: 📚 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 6.9.0 python_version: '3.10' app_file: app.py pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # 📚 RAG Chatbot AI (Gradio) This is a **RAG (Retrieval-Augmented Generation) chatbot** using **Gradio**. It allows users to upload documents (PDF, DOCX, CSV) and ask questions. The chatbot retrieves relevant context using **FAISS embeddings** and generates answers via **Groq API (LLaMA3-70B)**. --- ## Features - Upload documents and extract text. - Retrieve relevant context using FAISS embeddings. - Generate answers using **Groq LLaMA3-70B**. - Optional evaluation with **BLEU, ROUGE, BERTScore**. --- ## Files in this repository - `app.py` → Main Gradio app - `requirements.txt` → Python dependencies - `README.md` → This file --- ## Hugging Face Space Setup 1. Create a new **Gradio Space** on [Hugging Face](https://huggingface.co/spaces). 2. Upload all files (`app.py`, `requirements.txt`, `README.md`). 3. Add your **GROQ_API_KEY** in **Space Settings → Variables and secrets**. 4. Click **Run** — your chatbot will be live.