rig-vectorize 0.2.5

Cloudflare Vectorize vector store implementation for the Rig framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types for the Vectorize client.

/// Errors that can occur when interacting with Cloudflare Vectorize.
#[derive(Debug, thiserror::Error)]
pub enum VectorizeError {
    #[error("HTTP request failed: {0}")]
    HttpError(#[from] reqwest::Error),

    #[error("Vectorize API error (code: {code}): {message}")]
    ApiError { code: u32, message: String },

    #[error("JSON serialization error: {0}")]
    SerializationError(#[from] serde_json::Error),

    #[error("Unsupported filter operation: {0}")]
    UnsupportedFilterOperation(String),
}