A high-performance Retrieval-Augmented Generation (RAG) web application engineered with Rust, HTMX, and Groq. This system transforms local documents into an interactive knowledge base with autonomous agentic capabilities.
all-MiniLM-L6-v2 via HuggingFace Candle.search_documents tool to query the local index before synthesizing answers.This system is designed to handle the constraints of the Groq Free Tier gracefully:
openai/gpt-oss-20b for tasks.retry-after headers and performs jittered retries (up to 10 times) before failing.tool_use_failed errors from the API.2c, 1a) for precise lookup.You can access the hosted version of the system here: https://agentic-rag-n4wm.onrender.com/
First, download the project to your local machine:
git clone https://github.com/MarkCockerill12/RAGsystem.git
cd RAGsystem
cargo and rustc 1.85+).rusqlite.sudo apt-get install pkg-config libssl-dev build-essentialbrew install openssl pkg-configCreate a .env file in the project root:
GROQ_API_KEY=gsk_your_key_here
PORT=3000
cargo run --release
Access the dashboard at http://localhost:3000.
The system is optimized for containerized environments like Render.
Dockerfile pre-downloaded the embedding model, ensuring sub-second cold starts.This project is open-source and intended for professional demonstration and educational purposes.
12 commits
Rust
80.2%
HTML
17.6%
Dockerfile
2.2%
A high-performance Retrieval-Augmented Generation (RAG) web application engineered with Rust, HTMX, and Groq. This system transforms local documents into an interactive knowledge base with autonomous agentic capabilities.
all-MiniLM-L6-v2 via HuggingFace Candle.search_documents tool to query the local index before synthesizing answers.This system is designed to handle the constraints of the Groq Free Tier gracefully:
openai/gpt-oss-20b for tasks.retry-after headers and performs jittered retries (up to 10 times) before failing.tool_use_failed errors from the API.2c, 1a) for precise lookup.You can access the hosted version of the system here: https://agentic-rag-n4wm.onrender.com/
First, download the project to your local machine:
git clone https://github.com/MarkCockerill12/RAGsystem.git
cd RAGsystem
cargo and rustc 1.85+).rusqlite.sudo apt-get install pkg-config libssl-dev build-essentialbrew install openssl pkg-configCreate a .env file in the project root:
GROQ_API_KEY=gsk_your_key_here
PORT=3000
cargo run --release
Access the dashboard at http://localhost:3000.
The system is optimized for containerized environments like Render.
Dockerfile pre-downloaded the embedding model, ensuring sub-second cold starts.This project is open-source and intended for professional demonstration and educational purposes.
12 commits
Rust
80.2%
HTML
17.6%
Dockerfile
2.2%