generate_answer (MCP) should decline confidently answering bug-shaped questions
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start by reading generateAnswerCore in lib/agent/core.ts to see the current generateText, assessAnswer and shouldAutoDeflect flow, then find triageMessage and the category branch that the ticket-category routing issue adds to the ticket pipeline. This issue is deliberately deferred until that ticket-side change lands, so confirm it exists before starting, and get sign-off on the extra classifier call per metered generate_answer invocation. Done means generate_answer returns an explicit bug-report/feature-request decline instead of a confident KB answer, covered by a test around the new branch.
由索引模型根據 Issue 內容生成。
描述
Copied from DeadantCo/answerLoops#8 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/12 — originally opened by
@NathanTarberton 2026-07-28
Context
Follow-up scope question from the ticket-category routing issue (answer pipeline should route on ticket category rather than treating every ticket as answerable). That issue covers the ticket-based ingest pipeline (Discord/Slack/GitHub/Telegram/Email/create_ticket) — this issue covers the other MCP tool, generate_answer, which is a separate code path entirely.
The gap
generateAnswerCore (lib/agent/core.ts) takes a raw question string with no ticket and no triage/category step at all. It goes straight to generateText + KB context, then assessAnswer/shouldAutoDeflect. There's no signal today telling it "this looks like a bug report, don't confidently answer it."
Proposed fix
Add a triageMessage(question, orgId) call inside generateAnswerCore before generating, and apply the same category branch that issue adds to the ticket pipeline: for bug/feature_request-shaped questions, don't generate a confident KB answer — return an explicit "this sounds like a bug report / feature request, not something I can answer from documentation" response instead.
Cost tradeoff
This adds one classifier call (fast/cheap model, same one used for ticket triage) to every generate_answer invocation. Worth confirming that's an acceptable cost increase before implementing, since generate_answer is billed/metered per call.
Scope
Deferred out of the ticket-category routing issue on purpose — that issue is scoped to the ticket pipeline only. Do this as its own PR once the ticket-pipeline version has landed and the category-branch logic is proven out.
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- 主要語言
- TypeScript
- 星號
- 0
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
DeadantCo/answerLoopsdev 的其他 Issue
-
Widget: match the chat bubble color to the rest of the widget可能已有人在做 @sethr07 今天認領。 未關閉enhancement frontend help wanted
難度 2/5 半天 新手友好度 75/100
DeadantCo/answerLoopsdev#68 · 3 則留言 ·
-
Widget: make the chat window fit on small phones可能已有人在做 @sethr07 今天認領。 未關閉enhancement frontend good first issue help wanted
難度 2/5 1-3 小時 新手友好度 70/100
DeadantCo/answerLoopsdev#67 · 9 則留言 ·
-
Add 'select all' option to Slack channel picker in Settings可能已有人在做 @sethr07 今天認領。 未關閉frontend good first issue
難度 2/5 1-3 小時 新手友好度 68/100
DeadantCo/answerLoopsdev#22 · 5 則留言 ·
-
enhancement frontend help wanted
難度 4/5 3-5 天 新手友好度 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
難度 4/5 3-5 天 新手友好度 45/100
DeadantCo/answerLoopsdev#140 ·
查看 DeadantCo/answerLoopsdev 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 66/100
-
難度 1/5 1 小時以內 新手友好度 65/100
prometheus/docs#3198 ·
維護者通常 3 天內回覆
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capture可能已有人在做 @jianyx1 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
volcengine/OpenViking#8354 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
維護者通常 1 天內回覆
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labels未關閉
難度 2/5 1-3 小時 新手友好度 82/100
suitenumerique/hub#176 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆