Description
Rig empowers developers to build powerful and scalable LLM applications directly within the Rust ecosystem. This production-ready, open-source library provides a modular framework designed for efficiency and performance, leveraging Rust's strengths for AI development.
At its core, Rig offers a unified interface that abstracts away the complexities of interacting with numerous AI model providers. Developers can seamlessly switch between more than 20 different providers, including OpenAI, Anthropic, Google, Cohere, and AWS Bedrock, without altering their core application logic. This flexibility extends to vector stores, with integrations for over 10 options like MongoDB, Qdrant, and LanceDB, facilitating robust RAG (Retrieval-Augmented Generation) applications.
The library is built with performance and scalability in mind, making it suitable for production-grade AI products. Rig supports full WASM (WebAssembly) compilation, allowing AI applications to run efficiently in various environments, from browsers and edge devices to servers. This broad deployment capability enhances the reach and applicability of AI solutions built with Rig.
Rig's design emphasizes idiomatic Rust, enabling developers to write clean, maintainable, and type-safe code for sophisticated AI applications. The library provides advanced AI workflow abstractions, simplifying the creation of complex agents, streaming RAG pipelines, and data processing workflows. Its community-driven nature, evidenced by a rapidly growing ecosystem and numerous contributors, ensures continuous development and support.
Developers can utilize Rig to build a wide range of AI applications, including AI-powered coding assistants, intelligent search and Q&A systems over documents, large-scale data analysis pipelines, and embedded AI solutions. The project is MIT licensed, making it freely accessible for commercial and non-commercial use, fostering innovation in the AI development landscape.
Rig's Core Features
Unified interface for 20+ LLM model providers
Seamless integration with 10+ vector stores
Full WASM support for cross-platform deployment
Production-ready and battle-tested library
Type-safe and idiomatic Rust APIs
Modular and scalable architecture
Open-source and community-driven
Supports building AI agents and RAG pipelines
Enables embedded AI applications
Facilitates LLM-powered data pipelines
How to use Rig?
Add Rig to your Rust project: cargo add rig-core
Configure your LLM provider and vector store
Build AI agents with preambles and prompts
Implement RAG pipelines for document Q&A
Deploy AI applications via WASM or server
Explore examples for coding agents and data pipelines
Rig's Use Cases
- Build AI Agents
- Explore RAG Applications
- Process Data Pipelines
- Embed AI in Applications
- Unified LLM Interface
- Scalable AI Development








