second_brain_api/lib.rs
1pub mod eval;
2
3/// Extract the entity names a query refers to, using the same gazetteer
4/// extraction the ingest path applies to transcripts. Matching extractors on
5/// both sides is what lets query entities resolve to stored entity ids, so the
6/// graph term in recall is conditioned on the query rather than raw
7/// connectedness. Shared by the live recall route and the eval harness so both
8/// measure the same ranking.
9pub fn link_query_entities(text: &str) -> Vec<String> {
10 second_brain_adapters::claude_code::extract_entities(text)
11 .into_iter()
12 .map(|e| e.name)
13 .collect()
14}