Skip to content

Keep documents without an Aktenzeichen apart as sources - #299

Merged
mt0rm0 merged 1 commit into
devfrom
280-sources-without-aktenzeichen
Oct 16, 2026
Merged

mt0rm0 merged 1 commit into
devfrom
280-sources-without-aktenzeichen

Conversation

@mt0rm0

@mt0rm0 mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

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.
  • The debug payload's chunks carry 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

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.
@mt0rm0

mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Other infos

  • Backend offline: 632 passed (6 new, plus one updated test that pins the debug chunk's fields; source_file is a deliberate addition there). Evaluation test_checks.py: 72 passed (1 new).
  • Locally this needs SENTRA_USERS= until Keep a login in backend/.env out of the backend tests #296 is merged; CI does not.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a05fb038-884d-42ec-9fde-638c04a7c910

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mt0rm0
mt0rm0 merged commit 903ca19 into dev Oct 16, 2026
5 checks passed
@mt0rm0
mt0rm0 deleted the 280-sources-without-aktenzeichen branch October 16, 2026 14:57
Sign up for free to 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