EmbeddingFactory
Only available on the extension & web implementations
Methods
capabilities
async capabilities(options) =>
EmbeddingCapabilities
Get the capabilities of the on-device language model.
Options (optional)
model optional string
The id of the model to use, undefined to use the default. The extension version also accepts a direct link to a HuggingFace GGUF file.
Returns a new capabilities object
create
async create(options) =>
Embedding
Creates a new embedding session
Options (optional)
model optional string
maxTokens optional number
flashAttention optional boolean
contextSize optional number
signal optional AbortSignal
Returns a new Embedding session that can be prompted with the pre-provided configuration
Last updated