ConstTransformers.js embedder — lazy-loads the model on first ingest/query call. Defaults to Xenova/all-MiniLM-L6-v2 (English, ~23 MB, dim 384). Throws TRAGarError("EmbedderLoadFailed") if the module or model fails to load.
In-memory store — no persistence, ideal for tests and the tracer bullet.
OPFS store — persists corpus data in the browser's Origin Private File System. Falls back to IndexedDB when OPFS is unavailable (Safari < 16, locked-down WebViews) and emits onWarn("StoreFallback") when it does.
Optionalopts: {
Custom embedder — wraps a caller-supplied embed function. Use for tests, examples, and offline development.