Available on crate feature
ollama
only.Expand description
This module provides integration with Ollama
’s API, enabling the use of language models and
embeddings within the Swiftide project. It includes the Ollama
struct for managing API clients
and default options for embedding and prompt models. The module is conditionally compiled based
on the “ollama” feature flag.
Re-exports§
pub use openai::Options;
pub use openai::OptionsBuilder;
pub use openai::OptionsBuilderError;
Modules§
Type Aliases§
- Ollama
- The
Ollama
struct encapsulates anOllama
client and default options for embedding and prompt models. It uses theBuilder
pattern for flexible and customizable instantiation. - Ollama
Builder - Ollama
Builder Error