Skip to main content

create_embedding

Function create_embedding 

Source
pub fn create_embedding(
    config: &EmbeddingConfig,
) -> Result<Arc<dyn EmbeddingClient>>
Expand description

Create an embedding client from config. All OpenAI-compatible providers (OpenAI, Ollama, vLLM, LM Studio, DeepSeek, etc.) share the same client.