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