fix(control-pipeline): anchor finder uses direct Qdrant search instead of Go SDK

The Go SDK RAG proxy returns 401 (Qdrant API key mismatch). Switch
AnchorFinder to use direct Qdrant vector search + embedding service,
same approach as the main pipeline. No dependency on Go SDK anymore.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-21 18:13:12 +02:00
parent 7cb79dacd5
commit b29dc33708
2 changed files with 99 additions and 34 deletions

View File

@@ -1125,8 +1125,7 @@ async def _run_anchor_backfill(req: AnchorBackfillRequest, backfill_id: str):
db = SessionLocal()
try:
rag_client = get_rag_client()
finder = AnchorFinder(rag_client=rag_client)
finder = AnchorFinder()
# Find controls without anchors
states = "('draft', 'needs_review')" if req.include_needs_review else "('draft',)"