llm 1.3.8

A Rust library unifying multiple LLM backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::llm_builder::LLMBuilder;

impl LLMBuilder {
    /// Sets the encoding format for embedding outputs.
    pub fn embedding_encoding_format(mut self, format: impl Into<String>) -> Self {
        self.state.embedding_encoding_format = Some(format.into());
        self
    }

    /// Sets the dimensions for embedding outputs.
    pub fn embedding_dimensions(mut self, embedding_dimensions: u32) -> Self {
        self.state.embedding_dimensions = Some(embedding_dimensions);
        self
    }
}