File size: 968 Bytes
e60e2f8
35983fa
 
 
 
e60e2f8
35983fa
 
 
e60e2f8
 
35983fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: AI Chatbot
emoji: "\U0001F916"
colorFrom: blue
colorTo: purple
sdk: docker
pinned: true
license: mit
short_description: Agentic multimodal RAG customer service (private)
---

# AI Chatbot Backend

Agentic multimodal RAG customer service backend.

- FastAPI + LangGraph (StateGraph)
- Docling (PDF/Word/Image) + BGE-M3 + ChromaDB
- MiniMax-M3 (default) / switchable to OpenAI / Anthropic / Qwen
- Persistent via HF Dataset repo (free tier disk is ephemeral)

## Endpoints

- `GET  /api/v1/healthz` β€” liveness
- `GET  /api/v1/readyz`  β€” readiness (Chroma + LLM reachable)
- `POST /api/v1/chat` β€” non-streaming chat
- `POST /api/v1/chat/stream` β€” SSE stream (astream_events v2)
- `POST /api/v1/documents/upload` β€” upload + ingest
- `GET  /api/v1/documents` β€” list
- `DELETE /api/v1/documents/{id}` β€” remove
- `GET  /api/v1/sessions` β€” list sessions
- `DELETE /api/v1/sessions/{id}` β€” clear session

See [PLAN.md](../PLAN.md) for full design.