MCPcopy Create free account
hub / github.com/acking-you/static_flow / embed_text

Function embed_text

crates/embedding/src/text.rs:103–105  ·  view source on GitHub ↗

Generate a semantic embedding for text using the default language/model. Use `embed_text_with_language` or `embed_text_with_model` if you need a specific language or model.

(text: &str)

Source from the content-addressed store, hash-verified

101/// Use `embed_text_with_language` or `embed_text_with_model` if you need a
102/// specific language or model.
103pub fn embed_text(text: &str) -> anyhow::Result<Vec<f32>> {
104 embed_text_with_language(text, DEFAULT_TEXT_LANGUAGE)
105}
106
107/// Generate a semantic embedding for text using a language-specific default
108/// model.

Callers 1

Calls 1

embed_text_with_languageFunction · 0.85

Tested by 1