first fix tag search

This commit is contained in:
team 1
2026-02-26 11:26:16 +01:00
parent e890d38bc8
commit ec22f8bbbd
3 changed files with 3 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ def search_tags(req: SearchRequest):
continue
results.append({
"chunk_id": tag_ids[idx],
"tag_id": tag_ids[idx],
"score": float(score),
})

View File

@@ -32,6 +32,7 @@ final class TagRoutingService
}
$hits = $this->tagSearch->search($query, self::DEFAULT_TOPK);
if (!is_array($hits) || $hits === []) {
return null;
}

View File

@@ -62,7 +62,7 @@ final readonly class TagVectorSearchClient
continue;
}
$tagId = (string)($row['chunk_id'] ?? '');
$tagId = (string)($row['tag_id'] ?? '');
$score = $row['score'] ?? null;
if ($tagId === '' || !is_numeric($score)) {