SafeRAG

Local RAG for learning: less weight, less memory

HexaFalls 2Shipped July 26, 2026#general#ai#depin
Repo
SafeRAG banner

About

## The problem it solves

The Problem It Solves

When an aircraft lands with an active fault, maintenance engineers must manually cross-reference FAA manuals, historical incident reports, and inspection images across disconnected PDFs and legacy systems — often in hangars with no reliable Wi-Fi, and under ITAR/data-sovereignty rules that forbid sending sensitive maintenance data to the cloud. This manual context-switching eats into tight turnaround windows, and under FAA/EASA Part 145, any AI output that can't be traced back to real evidence is unusable.

Who Can Use It & How

Built for aircraft maintenance engineers, MRO technicians, and airline maintenance crews — especially operators who can't afford, or aren't allowed, cloud-dependent proprietary tools.

How to use it:

Start an investigation

Enter a fault code and a short description Optionally upload an inspection image Receive a full Investigation Summary in seconds — evidence, hypothesis, recommendation, and confidence rating — all traceable, all offline

How It Solves the Existing Problem

Instead of an engineer manually flipping through FAA manuals, old incident logs, and inspection photo archives one by one, AeroSage AI automates that correlation end-to-end:

Ingestion (offline): Real, public FAA AMT Handbook excerpts and Airworthiness Directives, plus historical incident reports, are embedded with Qwen3-Embedding; inspection images are embedded with DINOv2. Storage: Stored in Actian VectorAI using named vectors (per modality) and metadata filters (Aircraft, Engine, ATA Chapter). Retrieval: The query is filtered by metadata, searched across text + image named vectors in parallel, and fused server-side via Reciprocal Rank Fusion (RRF) — no custom fusion logic in the app layer. Synthesis: A small local LLM, Qwen3-4B-Instruct (via Ollama), summarizes only the retrieved evidence — it never invents a procedure or diagnosis. Output: An Evidence Used panel, a root cause hypothesis, a recommended action, and a Retrieval Confidence (High/Medium/Low) rating based on the number of corroborating sources — never a fabricated percentage — with every claim linked to a clickable citation.

Why size matters: Most RAG deployments assume a connection to a large hosted model. AeroSage AI runs its entire inference stack on a ~1.1-billion-parameter local model — a fraction the size of typical cloud-scale LLMs, which often run 100B+ parameters — small enough to run on local/edge hardware with zero data leaving the site. Cerebras is used only during setup, to generate non-safety-critical synthetic supporting content — never at inference time, and never for procedural content.

Net result: a slow, error-prone, multi-system manual search becomes a single evidence-first workflow that's faster, fully auditable, and safe for regulated, offline environments.

## Challenges we ran into

1. Fusing text and image retrieval without custom logic Correlating FAA documents, incident reports, and inspection images without writing brittle manual scoring code was a challenge. We solved this using Actian VectorAI's server-side RRF and named vectors, letting the database handle multimodal fusion instead of the app layer.

2. Preventing the LLM from inventing details In a regulated maintenance context, a confident but unverified answer is worse than none. We fixed this with strict low-temperature RAG prompting and a hard fallback: if evidence is weak or missing, the system outputs "No supporting evidence found" instead of guessing.

3. Slow local document ingestion

Since everything runs offline for data-sovereignty compliance, embedding FAA manuals and incident reports through Qwen3-Embedding on local hardware was initially slow, making iteration painful. We fixed this by batching ingestion and caching embeddings so we didn't re-embed the same documents on every test run.

Screenshots

SafeRAG screenshot 1SafeRAG screenshot 2SafeRAG screenshot 3SafeRAG screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Onchor.ai

Solidity security copilot with persistent memory. Learns from every audit, anchors findings onchain.