Expand description
Embedding contract — pure trait, no backend.
The trait lives in ijima-core so the store, miner, and client can
depend on it without pulling in a heavy ML backend. Concrete
implementations (candle, remote API, …) live in ijima-server
behind feature gates.
§Default dimensionality
DEFAULT_EMBEDDING_DIM is 384 to match pi-mempalace’s
all-MiniLM-L6-v2, so the live memories.db corpus migrates without
re-embedding. Configurable dimensions are a future concern (requires a
re-embed pass on dimension change).
Structs§
- Embedding
- A dense embedding vector for a piece of text.
Constants§
- DEFAULT_
EMBEDDING_ DIM - Default embedding dimensionality — 384, matching pi-mempalace’s
all-MiniLM-L6-v2for migration parity.
Traits§
- Embedder
- The embedding contract every backend implements.