refactor: make adapter .tier the single source of truth for ranking

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-10 19:07:58 +02:00
parent fbd6a056a4
commit d3bec2ee10
6 changed files with 14 additions and 19 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ def run_pipeline(
found: list[Candidate] = []
for adapter in adapters:
for c in adapter.search(target):
found.append(replace(c, confidence=score_confidence(target, c)))
found.append(replace(c, source_tier=adapter.tier, confidence=score_confidence(target, c)))
_persist_candidates(conn, job_id, found)
# 3. rank