feat(ai-sdk): authority-aware re-ranking for legal RAG (Phase 1) #31
Reference in New Issue
Block a user
Delete Branch "feat/authority-rerank"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Authority-aware re-ranking in the Go ai-sdk legal RAG retrieval path (Phase 1, no contract change). Binding law from the matching jurisdiction and domain now ranks above guidance, foreign and off-domain law, without dropping anything (guidance stays as interpretation context). Internal-only: the response schema is unchanged, so every consumer benefits without a contract change.
Test plan
Phase 2 (separate PR): confidence/abstention safety fields (contract change) and interpretation-intent (guidance may be Top-1 for questions that explicitly ask for interpretation).