Repository navigation
Keep documents without an Aktenzeichen apart as sources - #299
Merged
Merged
Conversation
88 indexed documents (Aktueller Begriff, PE, short EU papers) have no Aktenzeichen, and sources were keyed on it, so any two of them in one answer became a single source sharing one [n]. Documents are now keyed by Aktenzeichen, or by file where there is none: in the numbering the model reads, the sources an answer returns, and the document search's list. The debug payload's chunks carry source_file, so the harness numbers retrieved documents the same way.
Contributor
Author
Other infos
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes #280
88 of the 1936 locally indexed documents have no Aktenzeichen: 70 Aktueller Begriff, 10 short "Europa" papers (EU-05-25 and similar) and 8 PE papers. Sources were keyed on the Aktenzeichen, so any two of them retrieved for one question became one source: one card, one
[n], the second cited under the first one's title.document_key(hit)is the Aktenzeichen, or the file name where there is none. It is now used for the numbering the model reads ([Quelle n: …], which names the file for such documents), for the sources an answer returns, and for the result list of "Dokumente finden", which merged them the same way. Two files of the same paper still share an Aktenzeichen and stay one source.source_file, so the harness's count of retrieved documents an answer ignored numbers them the way SENTRA does. Older stored payloads without it keep counting by Aktenzeichen.Not changed: the external-links search (UC#6) still groups by Aktenzeichen, because it looks documents up by it. Documents without one cannot be a test case's reference either (#257), since that check matches on the Aktenzeichen. Both would need such documents to get an identifier of their own, for example from the file name pattern ("AB 04-24"), which is a change to their identity in the index.
Correction to the issue: it said the EU ones "should have" an Aktenzeichen and their extraction failed. They are short papers without an
EU n - 3000 - …Aktenzeichen anywhere in the text; nothing failed.🤖 Generated with Claude Code