rag-toolchain 0.1.9

is a Rust native library designed to empower developers with seamless access to common Gen AI workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// # Retrievers
/// This module contains the retrievers for the different vector databases.
/// Once you have connected to a store you can call as_retriever to get a retriever
/// Which allows you given some input text to search for similar text in the store.
mod traits;

#[cfg(feature = "pg_vector")]
mod postgres_vector_retriever;
#[cfg(feature = "pg_vector")]
pub use postgres_vector_retriever::{
    DistanceFunction, PostgresRetrieverError, PostgresVectorRetriever,
};

pub use traits::AsyncRetriever;

// export the trait mocks for use in testing
#[cfg(test)]
pub use traits::MockAsyncRetriever;