Skip to main content

aembeddings

AsyncFunction
This function is defined in the extras module.
Async embeddings function (batch)

Signature

async def aembeddings(texts: &[&str], model: Option<&str>) -> crate::error::Result<Vec<Vec<f32>>>

Parameters

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

Returns

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

Uses

  • with_capacity
  • aembed
  • Vec::with_capacity

Source

View on GitHub

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