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