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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user