Phase 5: questions endpoint, Anthropic answer model, Answers page #7

Merged
k.renner merged 2 commits from feat/answer-model into main 2026-09-24 14:57:29 +00:00
2 Commits
Author SHA1 Message Date
claude-botandClaude Fable 5.1 e6f5c80a3a feat(questions): answer questions from wiki evidence with an answer model
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
POST /api/v1/questions runs ask (rank + judge), selects the paragraphs that
carry probability mass, and streams one answer-model call over them. Below
the coverage gate no model is called and the response names the gap. With
save: true (signed-in user or API key) the answer lands in output/ as a
synth-shaped document with sources, confidence and the answering model.

The Answers page streams the same use case and lists saved answers.
Anthropic is the first IAnswerModel adapter; the answer model is chosen per
request or from Wiki:AnswerModels:Active.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 16:42:18 +02:00
claude-botandClaude Sonnet 5 44c48bde71 feat(answer): add Anthropic Messages API answer model adapter
Implements IAnswerModel over Anthropic's streaming Messages API: SSE
parsing (text_delta/usage/error), 429/529 retry with Retry-After or
exponential backoff, and a pure AnswerPrompt.Build for the evidence
and judgements prompt shape. Health check hits GET /v1/models.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-24 16:37:55 +02:00