embed( )
Generates embeddings for a single text using a specified model.
function embed(params: { modelId: string; text: string }): PromiseDescription
Generates embeddings for a single text using a specified model.
Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
params | \{ modelId: string; text: string \} | ✓ | The parameters for the embedding |
Returns
PromisedownloadAsset( )
Downloads an asset (model file) without loading it into memory. This function is specifically designed for download-only operations and doesn't accept runtime configuration options like modelConfig or delegate. Use this for download-only operations instead of loadModel for better semantic clarity.
getLogger( )
No description available