| title | emoji | sdk | app_port |
|---|---|---|---|
Corporate RAG Bot Backend |
π€ |
docker |
7860 |
Corporate-Bot is a production-grade, agentic Retrieval-Augmented Generation (RAG) assistant that enables users to upload corporate PDFs and interact with them using natural language.
It provides accurate, grounded answers and structured workplace actions powered by HuggingFace-hosted LLM inference.
Frontend: Next.js (Vercel) Backend: Flask API (HuggingFace Spaces β Docker) LLM: HuggingFace Inference API (meta-llama/Llama-3.2-3B-Instruct:novita)
Upload any corporate PDF and:
- Ask factual questions
- Get grounded answers
- Receive structured responses
- Prevent hallucinations
Supports:
- Text
- Tables
- Structured content
The system intelligently detects user intent:
Example:
User Input
Create a ticket for VPN not working
Output
{
"action": "create_ticket",
"department": "IT",
"priority": "High",
"description": "VPN not working"
}Strict refusal logic:
If answer not present:
Information not found in uploaded document.
No guessing. No fabricated answers.
PDF Upload
β
Unstructured Parser
β
Structure-Aware Chunking
β
Embedding (BGE)
β
FAISS Vector Store
β
Retriever
β
Cross-Encoder Reranker
β
Agent Supervisor
β
HuggingFace LLM Inference
β
Final Response
| Component | Tool |
|---|---|
| Backend | Flask |
| Frontend | Next.js |
| Embeddings | BAAI/bge-small-en |
| Vector DB | FAISS |
| Reranker | cross-encoder/ms-marco |
| LLM | HuggingFace Inference |
| PDF Parser | Unstructured |
| Hosting | HuggingFace Spaces |
| Frontend Hosting | Vercel |
GET /
Response:
{
"success": true
}POST /api/v1/upload
POST /api/v1/chat
Backend:
https://AyushAnand413-corporate-rag-bot-backend.hf.space
Frontend:
(Your Vercel URL)
What is the vision of 6G networks?
What was revenue growth in FY25?
What are key risks mentioned?
Create a ticket for VPN not working
β No hallucinated data β Evidence-based answers β Strict refusal logic β Secure inference via HF Token
Python 3.10+
pip install -r requirements.txtpython web_app.pyOpen:
http://localhost:7860
Required:
HF_TOKEN=your_token
Optional:
HF_GENERATION_MODEL=meta-llama/Llama-3.2-3B-Instruct:novita
ALLOWED_ORIGINS=*
Corporate-bot/
β
β agent/
β ingestion/
β retrieval/
β llm/
β frontend/
β web_app.py
β Dockerfile
β requirements.txt
β Docker deployment β CI/CD via GitHub Actions β HF Spaces hosting β Vercel frontend β Runtime PDF ingestion β API-first backend
Enterprise assistants Corporate document search Legal document QA Financial report analysis Internal automation bots
meta-llama/Llama-3.2-3B-Instruct:novita
Hosted via:
HuggingFace Inference API
Ayush Kumar Anand Swarnim Vatsyayan
Corporate-Bot is a fully production-ready enterprise AI assistant combining:
- Retrieval-Augmented Generation
- Agent-based reasoning
- Secure cloud inference
- Modern frontend architecture