Skip to content

docs(retrieval): document authoritative context fit exception - #136

Merged
WilliamAGH merged 2 commits into
devfrom
detail/fix-docs/docs-retrieval-document-authoritative-context-fit-9adfc9
Jul 29, 2026
Merged

docs(retrieval): document authoritative context fit exception#136
WilliamAGH merged 2 commits into
devfrom
detail/fix-docs/docs-retrieval-document-authoritative-context-fit-9adfc9

Conversation

@detail-app

Copy link
Copy Markdown
Contributor

The truncation algorithm in docs/retrieval-pipeline.md claimed that when system prompt + current query exceed the budget, a minimal prompt is returned. Commit 9593c39 introduced requireAuthoritativeContextFits, which throws AuthoritativeContextDoesNotFitException when authoritative (HIGH-priority) context is present and no segment fits the remaining budget — before the minimal-prompt fallback is reachable.

A developer debugging a guided-learning failure (e.g. large lesson sections under a tight budget) would consult this doc expecting a graceful minimal-prompt fallback and instead encounter an unexplained exception, sending them down the wrong path.

Introduced by commit 9593c39 (@WilliamAGH)


Doc Drift PRs can be configured here.

# Conflicts:
#	docs/retrieval-pipeline.md
@WilliamAGH
WilliamAGH merged commit 9e226f3 into devJul 29, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@WilliamAGH