Tracking: source support, explain how well articles support generated answers

Abierto
#100 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
ai, backend

Línea de trabajo

This is a tracking issue, so there is no single change to make. Start with the Plan and Architecture principles sections, and with content/docs/product/knowledge-base.mdx, which each child issue updates. Pick up a child issue only after its listed dependencies, such as #442 for segmentation, have landed. Done means that child's own acceptance criteria and regression tests pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Copied from DeadantCo/answerLoops#90 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/437 — originally opened by @NathanTarbert on 2026-10-22

Tracking issue. The work is split into the issues below, in the order they should land.

This series builds on the answer-sources records (#430, #431, #432) and the supplied count (#429). Those are dependencies, not checklist items here.

Terminology: answer sources (#429 to #432) record what was supplied to each answer. Source support (this series) assesses whether the answer is supported by what was supplied. #447 extends the views from #432 instead of adding second ones.

Purpose

Help a knowledge-base writer see whether a supplied article supports a generated answer, inspect the evidence, and decide what to investigate or improve. Exposure alone is never presented as article value, and an unexplained remainder never implies wasted retrieval. Textual support is not causal influence and not proof the answer is correct.

Plan

  • Decisions on evidence, retention, access, cost and build/defer: #433 (gate for everything below that stores or runs anything)
  • Answer references and their call sites: #430, #431
  • Deterministic segmentation, validation and count reconciliation (no database, no model): #442
  • Assessment storage with separate human flags and evidence expiry: #443
  • Judge contract, similarity check and human-labeled evaluation set: #444
  • Bounded post-reply assessment runner: #445
  • Shadow run and calibration, with a go/no-go decision: #446
  • Dashboard buckets, evidence drill-down and flag-a-finding: #447 (also needs #429)
  • Recurring questions with no supporting article: #452 (needs #443 and a "go" on #446)

#442 can start now. #444 can start once #442 lands (mocked models, no stored data). #443 waits for #430, #433 and #442. #445 waits for #431, #433 and #442 to #444. #447 and #452 do not ship to customers without a "go" on #446.

Architecture principles

  1. The model never writes evidence. Code splits the answer into numbered claims and each article into numbered passages. The judge sees only that frozen snapshot, with no tools or retrieval, and returns ids and enum labels. Code copies the quoted text from the snapshot by id, so a fabricated quote cannot exist, and unknown ids are rejected.
  2. Failures only go downward. Bad output, a timeout, a budget limit or a skip never becomes "supporting" or "no evidence". It becomes inconclusive or stays not assessed.
  3. A model label is not enough for "supporting". It must also pass an independent similarity check, and the whole method is measured against human labels before any number is shown.
  4. Article, answer and question text are data, never instructions.
  5. Generation-time content only. Findings refer to the article revision supplied at the time. Current article text is never substituted, and edits, deletion or evidence expiry never rewrite a finding.
  6. No durable queue, no stored conversations. Assessment runs after the reply while its inputs are still in memory, and stores only ids and bounded excerpts under the approved retention. If it does not run, the answer is shown as not assessed.
  7. Execution state and findings are separate. Failed, pending, disabled and budget-limited checks are visibly unassessed, and the five buckets always sum to the supplied total, with explicit denominators.
  8. Human corrections stay separate from automated findings and never overwrite them.
  9. No confidence percentages, no extrapolation from samples, and "unused" is never a state. High exposure with little support prompts a look at the article, never automatic deletion or ranking penalties.
  10. Searches, simulations and failed generations stay separate from completed-answer rates, and historical aggregate counts are a labeled legacy period.

Decisions #433 must record before storage or runner work starts

  • Evidence stored: ids and bounded excerpts (proposed up to about 300 characters, about one sentence, never full answers), stored only when the workspace opts in to excerpt storage (off by default, disclosed where enabled), retention (the single window is stated in #433), owners and admins only, deletion on article and workspace removal.
  • How recurring unsupported questions (#452) are grouped without stored conversations, and whether any question text is kept under the same opt-in and retention.
  • Assessment runs in-process after the reply, with no durable queue (proposed), and what that means for coverage.
  • Budget, sampling rate and enabled surfaces per workspace.
  • Precision target for "supporting", tolerated false-positive and false-negative rates, abstention behavior and per-answer cost ceiling.
  • A build, defer or drop recommendation.

Worked example

Take 100 supplied answer/article pairs in a period. The assessment finds 20 with supporting evidence, 35 with no supporting evidence found, 5 inconclusive, and 40 not assessed (skipped, failed, disabled or over budget). The four buckets sum to 100.

The support rate is stated with its denominator: 20 of 60 completed assessments (20 + 35 + 5), not 20 of 100. The 40 not assessed are shown separately and never counted as "no supporting evidence found" or "unused".

Out of scope

Proving internal model reasoning, automatic removal of articles based on this metric, product-version freshness policy, and counterfactual reruns as a default production cost. Source support complements article authorship and verification history (#423); it replaces neither.

Each issue updates content/docs/product/knowledge-base.mdx and adds regression tests, including keyboard and 375px checks for UI.

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DeadantCo/answerLoopsdev

Todos los issues de DeadantCo/answerLoopsdev

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.