llm_embedding/lib.rs
1//! Embedding capability for the llm-suite group.
2//!
3//! Provides a provider trait plus an OpenAI-compatible HTTP implementation
4//! covering every OpenAI-compatible endpoint (OpenAI, Gemini, Azure, Ollama).
5//! Query preprocessing (Nomic/Stella task prefixes) is ported from linkrs.
6//!
7//! This crate intentionally has no feature flags: the HTTP call and provider
8//! presets carry little extra complexity, so a single implementation path is
9//! preferred. Token-budget batching stays out on purpose: it needs a
10//! tokenizer that would couple this leaf crate to engine code.
11
12pub mod config;
13pub mod error;
14pub mod openai_compatible;
15pub mod preprocessor;
16pub mod provider;
17pub mod service;
18
19pub use config::EmbeddingConfig;
20pub use error::{EmbeddingError, Result};
21pub use openai_compatible::OpenAICompatibleProvider;
22pub use preprocessor::{PreprocessorConfig, PreprocessorImpl};
23pub use provider::{EmbeddingProvider, EmbeddingResult};
24pub use service::EmbeddingService;