embedding • Rust AI Agent SDK

embedding: Synchronous embedding function (alias)

embedding

Function

</div>

This function is defined in the extras module.

Synchronous embedding function (alias)

Signature

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

Parameters

ParamField &str

No description available.

ParamField Option&lt;&str&gt;

No description available.

Uses

  • embed

Source

View on GitHub

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


Related Documentation