| Crates.io | rrag |
| lib.rs | rrag |
| version | 0.1.0-alpha.2 |
| created_at | 2025-08-11 11:35:46.759829+00 |
| updated_at | 2025-08-12 05:19:14.038602+00 |
| description | High-performance Rust framework for Retrieval-Augmented Generation with pluggable components, async-first design, and comprehensive observability |
| homepage | https://rrag.dev |
| repository | https://github.com/leval-ai/rrag |
| max_upload_size | |
| id | 1789981 |
| size | 2,311,589 |
RRAG (Rust RAG) is a high-performance, enterprise-ready framework for building Retrieval-Augmented Generation applications in Rust. Built from the ground up with safety, performance, and developer experience in mind.
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Documents βββββΆβ Processing βββββΆβ Vector Store β
β (Input) β β Pipeline β β (Storage) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Responses ββββββ Agent ββββββ Retriever β
β (Output) β β (rsllm) β β (Search) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
Add RRAG to your Cargo.toml:
[dependencies]
rrag = { version = "0.1", features = ["rsllm-client"] }
tokio = { version = "1.0", features = ["full"] }
use rrag::prelude::*;
#[tokio::main]
async fn main() -> RragResult<()> {
// Create a RAG system
let rag = RragSystem::builder()
.with_rsllm_client("http://localhost:8080")
.with_vector_store(InMemoryStorage::new())
.with_chunk_size(512)
.build()
.await?;
// Add documents
rag.ingest_documents(vec![
Document::new("Rust is a systems programming language..."),
Document::new("RAG combines retrieval with generation..."),
]).await?;
// Query the system
let response = rag.query("What is Rust?").await?;
println!("Response: {}", response.text);
Ok(())
}
Visit docs.rs/rrag for complete API documentation and examples.
[dependencies.rrag]
version = "0.1"
features = [
"rsllm-client", # rsllm integration
"http", # HTTP tools and clients
"concurrent", # Concurrent data structures
"multimodal", # Multi-modal processing
"observability", # Monitoring and metrics
"security", # Authentication and rate limiting
]
This project is licensed under the MIT License.
Contributions welcome! Please see our contributing guidelines for details.