pub async fn retrieve_rules(
index_pool: &SqlitePool,
query: &str,
top_k: Option<usize>,
) -> Result<Vec<ScoredRuleChunk>, CoreError>Expand description
Retrieve rules with confidence-weighted ranking. Final score = hybrid rank score with one final confidence tie-breaker. Rules with confidence < 0.2 are excluded (likely rejected).