Field Intelligence Agent
An offline agent on rugged laptops combining text and imagery.
| Industry | Level | Difficulty | Recommended mode |
|---|---|---|---|
| Government & defence | 4 of 5 | Expert | sq8 |
The problem
Section titled “The problem”- Field teams lack connectivity.
- Information spans text and images.
- Power is unreliable.
How SrvDB powers Field Intelligence Agent
Section titled “How SrvDB powers Field Intelligence Agent”- Multimodal embeddings put text and images in SrvDB.
- The agent answers and recalls field notes offline.
- Crash-safe
persist()survives power loss. - One database per classification level.
What changes
Section titled “What changes”| Today | With Field Intelligence Agent on SrvDB |
|---|---|
| Paper notes | Searchable field memory |
| No connectivity | Fully offline |
| Data loss on power cuts | Crash-safe storage |
How it works
Section titled “How it works”- Preload reference data.
- Capture notes and images.
- Embed locally.
- Query and recall.
- Sync when back at base.
SrvDB features it uses
Section titled “SrvDB features it uses”- Fully offline: SrvDB runs in-process and never opens a network connection.
- Crash-safe
persist(): after it returns, data survives a crash or power loss and reopens exactly as committed. - Several databases: each database is a directory, so different data types or tenants stay separate.
- SQ8 compression (
sq8): stores each value in one byte, 4× smaller than full precision.
Use cases
Section titled “Use cases”- Field reports
- Equipment identification by photo
- Translation memory
- Mission notes
- Logistics lookups
- After-action reviews
Core code
Section titled “Core code”embed() is your embedding model (for example sentence-transformers, or a function that turns your records into feature vectors).
import jsonimport srvdb
db = srvdb.Database("./field-intelligence-agent-db", dimension=512, mode="sq8")
def ingest(items): """items: list of (id, text, metadata dict)""" db.upsert( ids=[i for i, _, _ in items], embeddings=[embed(t) for _, t, _ in items], metadatas=[json.dumps(m) for _, _, m in items], ) db.persist() # crash-safe checkpoint
def field_recall(note, k=5): hits = db.search(embed(note), k) return [(json.loads(db.get(i)), round(score, 3)) for i, score in hits]Limits and honest notes
Section titled “Limits and honest notes”- Handle data per classification rules.
Build roadmap
Section titled “Build roadmap”- Prototype: load a sample of real data with
flatmode and check that searches return what an expert expects. - Measure: if you move to an approximate mode, compare its results with
flaton the same queries (recall). - Pipeline: add continuous
upsertand decide when to callpersist(). - Harden: test restarts and crashes, add logging, review every output path with domain experts.
- Deploy: ship the database directory with the application or service.
All Government & defence projects
Section titled “All Government & defence projects”| Level | Project | What it does |
|---|---|---|
| 1 · Beginner | Doctrine Assistant | Air-gapped question answering over manuals and doctrine. |
| 2 · Intermediate | Citizen Service Bot | Answers citizens’ questions from official public guidance. |
| 3 · Advanced | Report Linker | Links related reports and requests across departments. |
| 4 · Expert | Field Intelligence Agent (this page) | An offline agent on rugged laptops combining text and imagery. |
| 5 · Frontier | Sovereign AI Stack | A fully reviewed, air-gapped AI stack with a published SBOM. |
See also: Use cases · Live examples (coming soon)