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])
| 70 | /// |
| 71 | /// Use `embed_image_bytes_with_model` if you need a specific vision model. |
| 72 | pub 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. |