llama_cpp_bindings/error/
embeddings_error.rs1#[derive(Debug, Eq, PartialEq, thiserror::Error)]
3pub enum EmbeddingsError {
4 #[error("Embeddings weren't enabled in the context options")]
6 NotEnabled,
7 #[error("Logits were not enabled for the given token")]
9 LogitsNotEnabled,
10 #[error("Can't use sequence embeddings with a model supporting only LLAMA_POOLING_TYPE_NONE")]
12 NonePoolType,
13 #[error("Invalid embedding dimension: {0}")]
15 InvalidEmbeddingDimension(#[source] std::num::TryFromIntError),
16}