fix: combine modelName + modelNumber for specs search query
Model numbers from OCR often have character errors (G→6, O→0 etc). Using both fields together lets the human-readable name anchor the search even when the model number is slightly wrong. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b8dd64eeba
commit
4515911b27
1 changed files with 4 additions and 1 deletions
|
|
@ -39,7 +39,10 @@ final class SpecsResearchHandler
|
|||
return;
|
||||
}
|
||||
|
||||
$searchSubject = $message->modelNumber !== '' ? $message->modelNumber : $message->modelName;
|
||||
// Combine name + number so the human-readable name anchors the search
|
||||
// even when the OCR'd model number contains character errors (e.g. G→6).
|
||||
$parts = array_filter([$message->modelName, $message->modelNumber]);
|
||||
$searchSubject = implode(' ', $parts);
|
||||
|
||||
try {
|
||||
$specsText = $this->specsAgent->research(
|
||||
|
|
|
|||
Loading…
Reference in a new issue