Skip to main content

Module injection

Module injection 

Source

Structs§

InjectionEngine
InjectionState

Enums§

InjectionPhase
Which phase produced the current injection state.

Constants§

PREFETCH_WAIT_WINDOW
How long a caller may block waiting for the semantic prefetch to land before proceeding with the deterministic baseline (Feature C). Kept short on purpose: the whole point is that the request is never held hostage by embedding latency.

Functions§

ngram_window_from_env
Conversation n-gram window (Feature D): how many recent observed turns build the recency-weighted retrieval key. Overridable via MEMVAULT_CONTEXT_NGRAM_WINDOW; invalid/zero values fall back to 5.