Tracking: trace answers to the knowledge-base articles supplied to them
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- sql, typescript
调研方向
This is a tracking issue for a multi-issue series, so start from a child issue, not this one; #429 is the first to pick up. Read countArticleUsage and the kb_article_usage table to see how supplied-context counts are written today, and content/docs/product/knowledge-base.mdx, which every child issue must update. Done means the child issue's acceptance points and regression tests pass, with the existing count labeled "Supplied as context".
由索引模型根据 Issue 内容生成。
描述
Copied from DeadantCo/answerLoops#78 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/422 — originally opened by
@NathanTarberton 2026-10-21
Tracking issue. The work is split into the issues below, in the order they should land.
Problem
Teams need to trace a generated answer to the knowledge-base articles supplied to it, and tell context exposure apart from evidence that an article contributed to the answer.
countArticleUsage receives article ids from the supplied context without looking at the answer, and adds one to a per-article, per-day count in kb_article_usage. If A, B and C are supplied but the reply reflects only A, all three get a count. The metric describes context exposure, not contribution, quality or delivery. It also is not displayed anywhere in the dashboard today (a pull request, #441, is in progress to show it for #429), and there is no answer-to-article history.
How the series fits together
- Answer sources (#429 to #432) are facts only: what was supplied to each answer, in what rank, and at which revision. No judgment about the answer.
- The separate source-support series is tracked in #437 and builds on these records.
- Article freshness is tracked separately in #453.
- Article history is tracked in #423.
Plan
- Show the existing count in the dashboard, labeled "Supplied as context": #429
- Answer-references storage, with written retention and access decisions: #430
- Record references from the widget, Discord, Agent API and ticket paths: #431
- Inspect an answer's sources and an article's recent answers: #432
The storage issue reuses the content-hash revision helper added in the article event log issue under #423, so land that first.
Principles every issue follows
- Historical counts keep their meaning: "supplied as context".
- Searches and simulations stay separate from production usage.
- Retries and repeated completion callbacks never double-count an answer, and duplicate passages count once per article per answer.
- Editing, re-syncing or deleting an article never silently rewrites what an existing trace represents.
- No question text, answer text or visitor identity is stored with references.
- Unassessed means unassessed, never "unused". Contribution claims always show their method and evidence, and ambiguous results stay inconclusive.
- Each issue updates
content/docs/product/knowledge-base.mdxand adds regression tests.
Related: #423 covers who added and verified an article. Freshness policy, such as product-version stamps and downweighting outdated articles, is a separate design: an old article may be correct, and a frequently supplied one may be outdated.
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
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 92/100
lingdojo/kana-dojo#34545 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
blocklist addition
难度 1/5 1 小时以内 新手友好度 82/100
MetaMask/eth-phishing-detect#315455 ·
维护者通常 1 天内回复
-
area: telegram bug
难度 2/5 1-3 小时 新手友好度 76/100
griffinwork40/agent-afk#5275 ·
维护者通常 1 天内回复
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reached未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
getopenscreen/openscreen#1667 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
erkamyaman/rust-anything#371 ·
维护者通常 1 天内回复