ragit

Crates.ioragit
lib.rsragit
version0.4.3
created_at2024-10-20 14:35:14.546414+00
updated_at2025-09-15 15:35:23.562788+00
descriptiongit-like rag pipeline
homepage
repositoryhttps://github.com/baehyunsol/ragit
max_upload_size
id1416249
size1,600,077
(baehyunsol)

documentation

https://docs.rs/ragit

README

RAGIT

RAGIT (rag-it) is a git-like software that turns your local files into a knowledge-base. The main goal of this project is to make knowledge-bases easy-to-create and easy-to-share.

rag init;
rag add --all;
rag build;
rag query "What makes ragit special?";

Why another RAG framework?

RAGIT is very different from the other RAG frameworks.

  1. It adds a title and summary to every chunks. The summaries make AIs very easy to rerank chunks.
  2. It uses tfidf scores instead of vector searches. It first asks an AI to generate keywords from a query, then runs tfidf search with the keywords.
  3. It supports markdown files with images.
  4. It supports multi-turn queries (experimental).
  5. You can clone/push knowledge-bases, like git.

Platform support

Ragit is primarily supported on Linux (x64) and Mac (aarch64). It goes through a full test process before each release, on Linux and Mac. It is primarily developed on Linux and Mac.

Ragit works on Windows, but it's not perfect.

Other than those 3 platforms, I haven't tested ragit on any platform.

More documents

Interactive documents

cargo install ragit;
rag clone https://ragit.baehyunsol.com/sample/ragit;
cd ragit;

# The default model is groq's llama.
# If you have groq api key, you can use the model.
export GROQ_API_KEY=YOUR_API_KEY;

# If you want to use another model, you can change the model like this.
rag config --set model gpt-4o;
export OPENAI_API_KEY=YOUR_API_KEY;


rag query "How do I contribute to ragit?";
Commit count: 869

cargo fmt