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

Offen
#88 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
12/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
sql, typescript
Bereich
analytics, backend

Rechercherichtung

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".

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DeadantCo/answerLoopsdev

Alle Issues in DeadantCo/answerLoopsdev

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.