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

Function embed_image_bytes

crates/embedding/src/image.rs:72–74  ·  view source on GitHub ↗

Generate a semantic embedding for an image (bytes should be an encoded image). Use `embed_image_bytes_with_model` if you need a specific vision model.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

70///
71/// Use `embed_image_bytes_with_model` if you need a specific vision model.
72pub fn embed_image_bytes(bytes: &[u8]) -> anyhow::Result<Vec<f32>> {
73 embed_image_bytes_with_model(bytes, DEFAULT_IMAGE_MODEL)
74}
75
76/// Generate a semantic embedding for an image using a specific fastembed vision
77/// model.

Callers 6

reembed_image_vectorsFunction · 0.85
reembed_svg_imagesFunction · 0.85
runFunction · 0.85
build_image_recordFunction · 0.85
build_image_recordFunction · 0.85

Calls 1

Tested by 1