Skip to main content

aembed

AsyncFunction
This function is defined in the extras module.
Async embedding function

Signature

async def aembed(text: &str, model: Option<&str>) -> crate::error::Result<Vec<f32>>

Parameters

text
&str
required
No description available.
model
Option<&str>
required
No description available.

Returns

Returns
crate::error::Result<Vec<f32>>
The result of the operation.

Uses

  • embed

Source

View on GitHub

praisonai/src/parity/extras.rs at line 532