SafeRAG
Local RAG for learning: less weight, less memory
Created on 26th July 2026
•
SafeRAG
Local RAG for learning: less weight, less memory
The problem SafeRAG 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
-
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. -
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. -
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.
Tracks Applied (3)
Accio Relevance - Build with Actian VectorAI Database
Actian
