EmbeddingFactory
Last updated
Last updated
async capabilities(options) =>
EmbeddingCapabilities
Get the capabilities of the on-device language model.
Options (optional) |
---|
Returns a new capabilities object
async create(options) =>
Embedding
Creates a new embedding session
Options (optional) |
---|
Returns a new Embedding session that can be prompted with the pre-provided configuration
model optional string
The id of the model to use, undefined to use the default
model optional string
gpuEngine: optional
AICapabilityGpuEngine
maxTokens optional number
flashAttention optional boolean
contextSize optional number
signal optional AbortSignal
monitor optional
AICreateMonitor