UCC_AI / README.md
Anaconda024's picture
Another error fix
e4ba4fe verified
|
Raw History Blame Contribute Delete
1.36 kB
---
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.