Review queue: capture unseen questions from Discord /ask and the Agent API
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- sql, typescript
研究方向
Start with captureUnansweredQuestion in lib/kb/review-capture.ts, then the two uncovered paths: app/api/slash/ask/route.ts and generateAnswerCore in lib/agent/core.ts. The CHECK constraint on kb_review_items.source needs a migration, and the ReviewSource type and the label map in app/(dashboard)/kb/review-tab.tsx must match. Done when an uncovered /ask or generate_answer call creates or bumps a review item shown with its source, and non-Pro workspaces capture nothing. Land after #431, which hooks the same paths.
由索引模型根據 Issue 內容生成。
描述
Copied from DeadantCo/answerLoops#69 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/366 — originally opened by
@NathanTarberton 2026-10-12
Summary
The review queue from #362 captures unseen questions from two places: ticket channels (via runAIAgent) and the website widget. Two other answer paths can also reply without any KB coverage but never feed the queue, so those gaps stay invisible.
Land together with, or after, #431: both hook the Discord /ask path and the Agent API generation path.
Paths not covered today
- Discord
/ask(app/api/slash/ask/route.ts): searches the KB (top 3) and answers, with no assessment step and no capture. - Agent API and MCP
generate_answer(generateAnswerCoreinlib/agent/core.ts): grounds on the top KB matches and grades its own answer, but does not callrunAIAgentand does not capture.
Why it matters
Agent and slash-command traffic is real customer demand. If those questions have no matching article they should surface in the same most-asked-first list as everything else, otherwise the queue under-counts exactly the gaps that automated agents hit most.
Considerations
- Source values.
kb_review_items.sourceis currently constrained to'ticket'or'widget'by a CHECK constraint. New sources (for example'slash'and'agent_api') need a migration to widen it, plus matching changes to theReviewSourcetype, the UI label map inapp/(dashboard)/kb/review-tab.tsx, and the docs. - Capture rules. Reuse
captureUnansweredQuestion(lib/kb/review-capture.ts): best-effort, Pro-gated, deduped, capped. Capture only when retrieval found nothing. - Privacy. Store the question and the answer only, never the caller's identity or API key. The Agent API is called by automated clients, so decide whether low-signal or machine-generated queries should be throttled or sampled before they reach a human reviewer.
- Volume. These paths can be called at much higher rates than a human channel. Confirm the 500-pending cap and the similarity dedupe are enough, or add a per-source cap.
- Latency. Capture must not delay the response; run it after the answer is sent as the other paths do.
Acceptance criteria
- An uncovered
/askquestion and an uncoveredgenerate_answercall each create or bump a review item - Items show their source in the Review tab
- No caller identity or credential is stored
- Non-Pro workspaces capture nothing
- Docs and tests updated
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
-
chore
難度 2/5 1-3 小時 新手友好度 82/100
drydocs/meridian#1503 · 1 則留言 ·
維護者通常 2 天內回覆
-
refactor review: high
難度 2/5 1-3 小時 新手友好度 72/100
1lck/Lithe-IDEA#2376 ·
維護者通常 1 天內回覆
-
bug extension mcp
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
primer/primitives#1426 ·
-
難度 1/5 1 小時以內 新手友好度 88/100
danielmiessler/LifeOS#2941 ·
維護者通常 4 天內回覆