Interface: HnswSidecarConfig
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:24
Configuration for the memory-specific HNSW sidecar wrapper.
Properties
autoThreshold?
optionalautoThreshold:number
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:38
Auto-build threshold. Below this count, brute-force is used.
Default
1000
brainId?
optionalbrainId:string
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:34
The brain whose vectors the index holds. A database can hold several
brains and a directory several databases, so with a brain id the index is
<database file name>.<digest>.hnsw, the digest a SHA-256 of the
database file name and the brain id: no two brains or databases share an
index file. Without one the index is brain.hnsw, one per directory.
dimensions
dimensions:
number
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:36
Embedding dimensions.
efConstruction?
optionalefConstruction:number
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:42
HNSW efConstruction (build quality).
Default
200
efSearch?
optionalefSearch:number
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:44
HNSW efSearch (query quality).
Default
50
m?
optionalm:number
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:40
HNSW M parameter (connections per node).
Default
16
sqlitePath
sqlitePath:
string
Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:26
Path to brain.sqlite — the HNSW files are written in the same directory.