A minimal RAG (Retrieval-Augmented Generation) system in Rust. Built with rig-core, libsql, and kreuzberg.
Read the full blog series: The Crab Island RAG Expedition
Pull the required models:
ollama pull nomic-embed-text
ollama pull deepseek-r1Download the PDF files used in the blog series:
curl -LO https://google.github.io/comprehensive-rust/comprehensive-rust.pdf
curl -LO https://rust-unofficial.github.io/patterns/rust-design-patterns.pdfIngest documents:
cargo run --bin rag-sync -- comprehensive-rust.pdf rust-design-patterns.pdfChat with your documents:
cargo run --bin rag-chat