Skip to content

hedon-ai-road/rag-from-scratch

Repository files navigation

RAG from Scratch

This is a simple implementation of a RAG (Retrieval-Augmented Generation) system from scratch using Rust.

Run

Backend(Python)

cd rag-backend-py
uv sync
uv run main.py

Frontend

cd rag-web
npm install
cargo tauri dev

Helps

Use camelot to extract tables from pdfs

brew install ghostscript
mkdir -p ~/lib
ln -s "$(brew --prefix gs)/lib/libgs.dylib" ~/lib
uv add camelot-py
uv add ghostscript

About

Rag-from-scratch is a front and back end framework that implements the entire rag process, built from scratch using rust and python.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors