Evidence is fragmented
Requirements, verification plans, tests, QA records, and traceability data live in separate artifacts.
Customer Demo | Local AI Compliance Review
A local-first workflow for aerospace software document review: ingest, index, retrieve, review, and report without sending sensitive documents to a cloud AI service.
Requirement has weak verification wording and missing traceability evidence.
Run of show
Customer problem
Requirements, verification plans, tests, QA records, and traceability data live in separate artifacts.
Engineers repeatedly ask the same checklist questions and chase the same evidence paths.
Engineering and supplier documents may be proprietary, regulated, or contractually restricted.
Premai focuses on local evidence retrieval and review assistance, not replacing expert judgment.
Positioning
NASA GCS study case
Demo inputs
SWR-002: The software shall quickly detect unusual vibration.
SWR-004: The software shall enter degraded mode as needed
when sensor data is unreliable.
id: REQ_QUALITY_002
title: Verifiable requirement wording
severity: high
retrieval_queries:
- unverifiable requirement wording
- verification method requirement
The system links vague requirement language to concrete checklist criteria.
Input -> progress -> output
Step 1
make up
go run ./cmd/premai migrate up
go run ./cmd/premai init nasa-gcs-demo \
--description "NASA GCS compliance review demo"
applied 000001_init.sql
applied 000002_resume_review_runs.sql
created project
name: nasa-gcs-demo
Step 2
go run ./cmd/premai ingest \
--project nasa-gcs-demo \
--path ./demo/docs
discovered: 4 documents
imported: 4 documents
chunks_created: 7311
go run ./cmd/premai index --project nasa-gcs-demo
chunks_pending: 16
chunks_indexed: 7106
embedding_model: nomic-embed-text
Step 3
go run ./cmd/premai search \
--project nasa-gcs-demo \
--query "requirements without verification method"
1. traceability_matrix_demo.md
SWR-002 | VIBRATION_MONITOR | [missing test]
2. software_requirements_demo.md
"quickly detect unusual vibration"
3. software_requirements_demo.md
"degraded mode as needed"
The key control: retrieval happens first, so findings are anchored in visible evidence.
Step 4
go run ./cmd/premai review \
--project nasa-gcs-demo \
--checklist ./checklists/starter_software_review.yaml
Expected in demo: concise review summary and persisted findings.
Finding detail
SWR-002 uses "quickly" without a measurable threshold, and traceability data has no mapped test case.
Define a measurable vibration threshold, detection time, fault behavior, and a verification method mapped to a test case.
Step 5
go run ./cmd/premai report \
--project nasa-gcs-demo \
--format html \
--out ./out/nasa-gcs-demo.html
go run ./cmd/premai tui
make web
report written: ./out/nasa-gcs-demo.html
Web UI: http://127.0.0.1:8787
Nasa case study findings output
Architecture
The UI surfaces are thin; the core workflow is shared and testable.
Technical detail
CREATE TABLE chunks (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
project_id UUID NOT NULL REFERENCES projects(id),
content TEXT NOT NULL,
content_tsv tsvector,
embedding vector(768),
metadata JSONB NOT NULL DEFAULT '{}'
);
Technical detail
retriever := retrieval.Service{
Store: retrieval.NewSQLStore(database),
Embedder: ollama.EmbeddingClient{BaseURL: cfg.Ollama.BaseURL},
VectorTopK: cfg.Retrieval.VectorTopK,
KeywordTopK: cfg.Retrieval.KeywordTopK,
FinalTopK: cfg.Retrieval.FinalTopK,
}
service := review.Service{
Store: review.NewSQLStore(database),
Retriever: retriever,
Reviewer: runner,
Model: model,
}
summary, err := service.Run(ctx, projectName, loadedChecklist)
The model is only one component; retrieval, persistence, and validation remain explicit Go code.
Quality loop
go run ./cmd/premai eval \
--project nasa-gcs-demo \
--ground-truth ./demo/benchmark/ground_truth.json
--- Quality & Efficiency Report ---
Total Items: 20
Status Accuracy: 75.00%
Average Hit Rate: 82.50%
HTML report saved: out/reports/benchmarks/eval-report-*.html
Live demo safety
This keeps the presentation smooth while preserving executable commands for technical validation.
Customer value
Quickly identify missing verification links and vague requirement wording.
Run a repeatable checklist before formal review meetings.
Persist findings and evidence so teams can revisit why a gap was flagged.
Roadmap
Close
Documents stay local. Evidence comes first. Findings are structured for human review.
make web