patch 17d

This commit is contained in:
team 1
2026-05-01 20:46:04 +02:00
parent f98de3c785
commit 7d8b1c9aa2
3 changed files with 71 additions and 3 deletions

View File

@@ -272,6 +272,12 @@ final readonly class NdjsonChunkLookup
/**
* Allows prompts such as "Testomat CAL" to resolve a document titled
* "Testomat 2000 CAL" without also allowing conflicting model numbers.
*
* This is deliberately limited to titles with at least two non-numeric
* anchors and at least one numeric title token. A prompt with its own
* numeric token must match one of the title's numeric tokens; otherwise a
* user asking for e.g. "Testomat 808 CAL" could incorrectly resolve to
* "Testomat 2000 CAL".
*/
private function isConfidentTitleTokenMatchAllowingMissingNumeric(string $normalizedPrompt, string $normalizedTitle): bool
{