Skip to content

ilaborie/mini-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-rag

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

Prerequisites

  • Rust 1.91.1+ (edition 2024)
  • Ollama running locally
  • pdfium library installed for PDF extraction

Pull the required models:

ollama pull nomic-embed-text
ollama pull deepseek-r1

Sample documents

Download 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.pdf

Usage

Ingest documents:

cargo run --bin rag-sync -- comprehensive-rust.pdf rust-design-patterns.pdf

Chat with your documents:

cargo run --bin rag-chat

About

Code & Blog for mini RAG implementation in Rust with Kreuzberg, Rig, Ollama, ...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors