pub struct StorageSection {
pub backend: String,
}Expand description
S5.1: storage / retrieval backend configuration.
Controls which RetrievalBackend implementation is used for memory
candidate generation. The broker (scoring, floors, rerank, compression)
is backend-agnostic and is NOT affected by this setting.
#[serde(default)] keeps every pre-S5 project.toml loading cleanly
(they get backend = "flat", which is exactly today’s FTS + usearch-ANN
behaviour).
Fields§
§backend: StringWhich retrieval backend to use.
| Value | Behaviour |
|---|---|
"flat" | FTS + usearch HNSW ANN (default) |
"graph-lite" | flat, plus 2-hop BFS over memory_edges with hop decay |
"graph" | petgraph backend (feature graph; remote server only) |
Unknown values fall back to "flat" with a warning.
All three are implemented in kimetsu_brain::backend. Note that
graph-lite only differs from flat once the edge table has
non-supersedes edges in it — run kimetsu brain graph build first,
or it degenerates to flat retrieval. The published BEAM 100K figure
(73.3%, vs 62.3% flat) was measured on graph-lite with edges built.
Trait Implementations§
Source§impl Clone for StorageSection
impl Clone for StorageSection
Source§fn clone(&self) -> StorageSection
fn clone(&self) -> StorageSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more