rag
Rag Stream
SSE endpoint streaming RAG indexation progress for an agent’s sources.
Opens a server-sent event stream that:
- Sends current source statuses on connect.
- Pushes real-time updates from th2llm webhooks.
- Falls back to polling every 10s if webhooks are slow.
- Sends keep-alive comments every 2s.
- Auto-closes when all sources are complete or after 5 minutes.
Requires authentication (JWT via current_user).
GET
Rag Stream
Rag Stream