@ai16z/eliza v0.1.6-alpha.4 / embed
Function: embed()
embed(
runtime
,input
):Promise
<number
[]>
Gets embeddings from a remote API endpoint. Falls back to local BGE/384
Parameters
• runtime: IAgentRuntime
The agent runtime context
• input: string
The text to generate embeddings for
Returns
Promise
<number
[]>
Array of embedding values
Throws
If the API request fails