rig-core 0.44.0

An opinionated library for building LLM powered applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Mistral's embedding model identifiers and its batching cap.
//!
//! ```no_run
//! use rig_core::providers::mistral;
//! let model = mistral::from_env()?.embedding(mistral::MISTRAL_EMBED, None);
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```

pub const MISTRAL_EMBED: &str = "mistral-embed";
/// Codestral embedding model with configurable output dimensions.
pub const CODESTRAL_EMBED: &str = "codestral-embed";

/// Maximum input count per embedding request.
pub const MAX_DOCUMENTS: usize = 256;