Cargo Features

[dependencies]
rag-toolchain = { version = "0.1.9", default-features = false, features = ["pg_vector", "openai", "anthropic"] }

For integration tests
cargo test --test *

For unit tests
cargo test --lib

default = anthropic, openai, pg_vector

These default features are set whenever rag-toolchain is added without default-features = false somewhere in the dependency tree.

pg_vector default

Enables pgvector

Postgres Vector

openai default

Enables eventsource-stream and reqwest-eventsource

reqwest-eventsource:

OpenAI

anthropic default