3 -> 2 candidates
All checks were successful
Build and Push Agent Docker Image / build (push) Successful in 2m26s
Build and Push Web Docker Image / build (push) Successful in 9m15s

This commit is contained in:
2025-12-26 02:22:34 +01:00
parent 337540496a
commit f6891d231f

View File

@@ -74,7 +74,7 @@ def search_caving_documents(query: str, priority_prefixes: list[str] | None = No
query_embedding = embed(query, 'search_query')
# Fetch more candidates for reranking
top_n = 3
top_n = 2
candidate_limit = top_n * 4
rows = conn.execute(
'SELECT * FROM embeddings WHERE embedding IS NOT NULL AND role = ANY(%s) ORDER BY embedding <=> %s::vector LIMIT %s',