EmbeddingFactory
Last updated
Last updated
async capabilities(options) =>
Get the capabilities of the on-device language model.
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
async create(options) =>
Creates a new embedding session
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
gpuEngine optional
dtype web optional
monitor optional