ReadonlydimensionsEmbedding dimension (nomic-embed-code: 768)
ReadonlymaxMaximum sequence length (nomic-embed-code: 512)
ReadonlymodelModel identifier
StaticcreateCreate from a model file. The tokenizer.json is expected alongside the model.
StaticcreateCreate from the embedded model in this package's models/ directory.
Embed a single text → 768d Float32Array
Embed a batch with concurrency control + progress + backpressure
Optionaloptions: BatchOptionsRelease ONNX session / buffers
IEmbedder — code embedding abstraction.
All platforms (Node/Web) implement this interface. Consumers depend only on IEmbedder, never on platform specifics.