tt-retrieval 0.1.0

RAG / context compression: chunking, embedding, HNSW retrieval, <retrievable> tag substitution.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum RetrievalError {
    #[error("embedding HTTP: {0}")]
    Embedding(String),
    #[error("store: {0}")]
    Store(String),
    #[error("tag parse: {0}")]
    Tag(String),
    #[error("malformed: {0}")]
    Malformed(String),
    #[error("non-finite embedding (NaN/Inf)")]
    InvalidEmbedding,
}