Skip to content

Integrations

Rig connects to the outside world through model providers (LLM and embedding APIs), vector stores (databases for semantic search and RAG), and a few other integrations such as MCP tools and recording. Lightweight integrations ship in rig-core; anything with heavy dependencies lives in a companion crate that the rig facade exposes as a module behind a cargo feature of the same name:

[dependencies]
rig = { version = "0.44.0", features = ["lancedb", "bedrock"] }

You only compile the integrations you enable.

Built-in providers are thin clients over each vendor’s HTTP API. They ship with rig-core and need no feature:

use rig::prelude::*;
use rig::providers::openai::{self, OpenAI};
let agent = AgentBuilder::new(OpenAI::from_env()?.completion(openai::GPT_5_5))
.preamble("You are a helpful assistant.")
.build();
KindProviders
Own API formatOpenAI, Anthropic, Google Gemini, Cohere, Ollama, Voyage AI (embeddings and rerank), GitHub Copilot
OpenAI-compatibleAzure OpenAI, DeepSeek, Doubleword, Groq, Hugging Face, Hyperbolic, llama.cpp, MiniMax, Mira, Mistral, Moonshot, OpenRouter, Perplexity, Together AI, Venice, xAI, Xiaomi MiMo, Z.AI, ChatGPT (subscription sign-in)

Companion crates add providers that need an SDK or run locally:

ProviderFeatureModule
Amazon Bedrockbedrockrig::bedrock
Google Vertex AIvertexairig::vertexai
Google Gemini over gRPCgemini-grpcrig::gemini_grpc
Candle (local CPU inference: Llama, SmolLM2, Qwen3)candlerig::candle
FastEmbed (local embeddings)fastembedrig::fastembed

See Providers & Clients for constructing clients, and Model Providers for per-vendor pages.

Every store implements the same traits from rig-core: VectorStoreIndex for similarity search and InsertDocuments for writes, so RAG pipelines and dynamic-context agents work the same whichever database backs them. An in-memory store (InMemoryVectorStore) ships with rig-core for prototyping and tests.

StoreFeatureModule
HelixDBhelixdbrig::helixdb
LanceDBlancedbrig::lancedb
Milvusmilvusrig::milvus
MongoDB Atlasmongodbrig::mongodb
Neo4jneo4jrig::neo4j
PostgreSQL (pgvector)postgresrig::postgres
Qdrantqdrantrig::qdrant
Amazon S3 Vectorss3vectorsrig::s3vectors
ScyllaDBscylladbrig::scylladb
SQLite (sqlite-vec)sqliterig::sqlite
SurrealDBsurrealdbrig::surrealdb
Cloudflare Vectorizevectorizerig::vectorize

See Vector Stores for the shared concepts and per-store pages.

IntegrationFeatureModule
Model Context Protocol toolsrmcprig::tool::rmcp
Conversation-memory policies (sliding window, token budget, compaction)memoryrig::memory
Recording and replay of runscassetterig::cassette