Skip to main content

Crate second_brain_api

Crate second_brain_api 

Source

Modules§

associate
eval
heap
Allocator residency accounting for /v1/status.
ingest
maintenance
The drain thread: applies the index outbox every few seconds and, when the outbox is quiet and the interval has passed, repairs the store with the writable indexes it owns. On-demand repairs arrive over a channel so the same thread services them; two writers never exist.
mentions
near_duplicates
repairs
One-off data repairs, each idempotent: a second run finds nothing left to change, so running one again after a partial failure is always safe.
routes
watcher

Structs§

AppState

Functions§

link_query_entities
Extract the entity names a query refers to, using the same gazetteer extraction the ingest path applies to transcripts. Matching extractors on both sides is what lets query entities resolve to stored entity ids, so the graph term in recall is conditioned on the query rather than raw connectedness. Shared by the live recall route and the eval harness so both measure the same ranking.