Skip to main content

Interface: HnswSidecarConfig

Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:24

Configuration for the memory-specific HNSW sidecar wrapper.

Properties​

autoThreshold?​

optional autoThreshold: 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?​

optional brainId: 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?​

optional efConstruction: number

Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:42

HNSW efConstruction (build quality).

Default​

200

efSearch?​

optional efSearch: number

Defined in: packages/agentos/src/cognition/memory/retrieval/store/HnswSidecar.ts:44

HNSW efSearch (query quality).

Default​

50

m?​

optional m: 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.