Tracking: trace answers to the knowledge-base articles supplied to them

オープン
#88 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
sql, typescript
領域
analytics, backend

調査の方向性

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 の本文から書いたものです。

説明

backend enhancement frontend help wanted

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 @NathanTarbert on 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.mdx and 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeadantCo/answerLoopsdev のほかの issue

DeadantCo/answerLoopsdev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。