appwrite
ModuleAppwrite's embedding service.
Contents
use utopia_agents::Appwrite;Rust
pub struct AppwriteEmbeddings from Appwrite's embedding service (no API key), several texts
per request. It does not chat: Adapter::send fails.
Rust
use utopia_agents::{Adapter, Appwrite, adapters::appwrite};
let adapter = Appwrite::with_model(appwrite::MODEL_ALL_MINILM)?;
assert_eq!(adapter.name(), "appwrite-embedding");
assert_eq!(adapter.embedding_dimension()?, 384);Also implements
Default.use utopia_agents::adapters::appwrite::dimension;Rust
pub fn dimension(model: &str) -> Option<i64>The size of a model's embeddings.
Rust
pub const ENDPOINT: &str = "http://appwrite-embedding:11434/embed"The embed endpoint of the embedding service.
Rust
pub const MODEL_ALL_MINILM: &str = "all-minilm"all-MiniLM-L6-v2: small and fast.
Rust
pub const MODEL_BGE_SMALL: &str = "bge-small"BGE Small EN v1.5: small, English.
Rust
pub const MODEL_EMBEDDING_GEMMA: &str = "embedding-gemma"EmbeddingGemma 300M.
Rust
pub const MODEL_NOMIC_EMBED_TEXT: &str = "nomic-embed-text"Nomic Embed Text v1.5: general purpose (the default).
Rust
pub const MODELS: &[&str] = &[MODEL_NOMIC_EMBED_TEXT, MODEL_EMBEDDING_GEMMA, MODEL_ALL_MINILM, MODEL_BGE_SMALL]Every model.