rig_core/embeddings/mod.rs
1//! Provider-agnostic embedding abstractions.
2//!
3//! Embeddings are numerical representations of text or other inputs. Rig uses
4//! [`EmbeddingModel`] to generate vectors, [`Embed`] to select which text from a
5//! Rust value should be embedded, and [`EmbeddingsBuilder`] to batch embedding
6//! requests for vector stores or retrieval workflows.
7
8pub mod builder;
9pub mod embed;
10pub mod embedding;
11pub mod tool;
12
13pub mod distance;
14pub use builder::EmbeddingsBuilder;
15pub use embed::{Embed, EmbedError, TextEmbedder, to_texts};
16pub use embedding::*;
17pub use tool::ToolSchema;