Repository navigation
fix(archivist): detect a deferral in any language to start the deep dive - #271
Merged
Merged
Conversation
A question whose answer is only in a document's text never got the real answer in a non-English household. The deep dive starts when the first answer defers, and the bot recognised a deferral only by the English phrase "need to read". A German household got the deferral in German, so the archivist posted it as the answer and stopped. The model also answered "no" or "cannot be determined" when a short summary did not mention the detail asked for. - The synthesis prompt asks for a `NEED_TO_READ [N]` line after the deferral sentence, written the same in every language. The bot starts the deep dive on it and removes it before the family sees the answer. The English phrase still counts. - A new prompt rule: a summary that does not mention a detail is a reason to defer, not evidence that the document lacks it. Fixes: e12ade2 ("feat(archivist): natural-language questions get a synthesized answer")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NEED_TO_READ [N]line the prompt now asks for in every language. Before, it only recognised the English "need to read", so a German household got "Ich müsste [1] detailliert lesen…" as the final answer.The 0.4.0 version of #269: the same commit on
release/0.4.0, which the rig runs. The touched files are identical on both branches.Squash merge: one change.
Still open: the rig check on a German stack (
ssh famstack-e2e, Documents Room as Marge). Whether Qwen3.5-9B writes the marker line and defers on the policy question is not yet verified. Questions to ask:The three replies go in a comment here.
Known gap: if the model writes only the marker line without a sentence and the deep dive also defers, the answer line is empty above the sources.