fix methods and ndjson

This commit is contained in:
team 1
2026-04-24 20:54:38 +02:00
parent 9312562dd8
commit 2f28ad0416
2 changed files with 38 additions and 329 deletions

View File

@@ -357,6 +357,25 @@ final class NdjsonHybridRetrieverConfig
{
return $this->stringList('looks_like_device_words', self::LOOKS_LIKE_DEVICE_WORDS);
}
/**
* Effective retrieval vocabulary as a dedicated structure for diagnostics and config dumps.
*
* @return array<string, array<int, string>>
*/
public function vocabularyToArray(): array
{
return [
'generic_product_tokens' => $this->genericProductTokens(),
'important_short_model_tokens' => $this->importantShortModelTokens(),
'family_descriptor_tokens' => $this->familyDescriptorTokens(),
'looks_like_reagent_tokens' => $this->looksLikeReagentTokens(),
'looks_like_safety_docs' => $this->looksLikeSafetyDocs(),
'looks_like_reagent_words' => $this->looksLikeReagentWords(),
'looks_like_document_words' => $this->looksLikeDocumentWords(),
'looks_like_safety_words' => $this->looksLikeSafetyWords(),
'looks_like_device_words' => $this->looksLikeDeviceWords(),
];
}
/**
* @return array<string, mixed>