--- title: DeepSeek RAG Chatbot emoji: 📚 colorFrom: indigo colorTo: red sdk: gradio sdk_version: "5.43.1" app_file: app.py pinned: false --- # DeepSeek RAG – Chat With Your Website & Company Docs This Space lets you upload company documents and/or crawl your website, build a vector index, and ask questions answered by a DeepSeek model via the Hugging Face Inference API. ## 🚀 Quick Start 1. Create a **new Space** → **Gradio** → Python. 2. Upload `app.py`, `requirements.txt`, `README.md`. 3. Add your Hugging Face token in Space **Settings → Variables and secrets**. 4. Enter model ID (your fine-tuned DeepSeek model) in the UI. 5. Upload docs or crawl your site → build index → chat! --- ## 🧠 How It Works - Documents are split into chunks, embedded with `sentence-transformers/all-MiniLM-L6-v2`, and stored in a **FAISS** vector index. - At query time, the top-k chunks are retrieved and sent with your question to a **DeepSeek LLM** via the Hugging Face Inference API. --- ## 📦 Dependencies Managed by `requirements.txt`: - gradio - faiss-cpu - sentence-transformers - pypdf2 - docx2txt - beautifulsoup4 - requests - huggingface_hub - numpy --- ## 🔐 Notes - Keep your Hugging Face token private. - Uploaded files are processed inside the Space (no external upload). - Crawling is shallow and same-domain only by default.