pub enum EmbeddingMode {
Local {
model_path: String,
},
Ollama {
base_url: String,
model: String,
},
ZeroClaw {
base_url: String,
api_key: String,
},
LlmProvider {
base_url: String,
api_key: String,
model: String,
},
}Expand description
Embedding mode enum.
Variants§
Local
Local ONNX model (requires local-embeddings feature).
Ollama
Ollama server.
ZeroClaw
ZeroClaw remote embedding provider.
LlmProvider
OpenAI-compatible /v1/embeddings endpoint.
Trait Implementations§
Source§impl Clone for EmbeddingMode
impl Clone for EmbeddingMode
Source§fn clone(&self) -> EmbeddingMode
fn clone(&self) -> EmbeddingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddingMode
impl RefUnwindSafe for EmbeddingMode
impl Send for EmbeddingMode
impl Sync for EmbeddingMode
impl Unpin for EmbeddingMode
impl UnsafeUnpin for EmbeddingMode
impl UnwindSafe for EmbeddingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more