Search across 11 sources simultaneously via a local Agentic RAG-CN API, then synthesize results with evidence tables and contradiction detection.
Agentic RAG-CN must be running locally. Check with:
curl -s http://localhost:18888/health
If unavailable, fall back to built-in web_search tool.
Call the API with a POST request:
curl -s -X POST http://localhost:18888/api/analyze \
-H "Content-Type: application/json" \
-d '{"question": "用户的问题"}'
Parse the JSON response and present results to the user in a readable format.
The API returns:
answer — Structured answer with evidence tablessources — List of sources used (with URLs)confidence — Confidence score (0-1)contradictions — Any contradictions found across sourcestrace — Pipeline execution trace (16 steps)| Condition | Action |
|---|---|
| ----------- | -------- |
| API health check succeeds | Use deep-research API |
| API health check fails | Fall back to web_search |
| User asks about Chinese topics (知乎, B站, 微信) | Prefer deep-research |
| User asks general English questions | web_search is usually sufficient |
Format the response as:
共 1 个版本