Content prompt harness
Persona, GREP, RAG/context, deterministic tools, optional online search, imports, response traces, and grading hooks around each Gemma 4 response.
Around the base model we wrap repeatable harnesses for prompt safety, privacy, search, document processing, knowledge extraction, research graphs, synthetic data, fine-tuning, judging, and report export. The core content harness is the visible chat path: safety rules, tools, and context packs grounded to a jurisdiction and version.
The chat harness is only one part of DueCare. The same codebase also has harnesses for private search, knowledge intake, graphing, training, evaluation, and evidence export.
Persona, GREP, RAG/context, deterministic tools, optional online search, imports, response traces, and grading hooks around each Gemma 4 response.
Redacts private facts, generalizes outbound queries, and blocks external search when a safe query cannot be produced.
Turns source bundles, civil-society updates, and local evidence into reviewable knowledge objects before they feed RAG or reports.
Extracts documents, entities, edges, timeline events, risk signals, locations, and amounts from local research bundles.
Generates and polishes SFT/DPO rows, filters unsafe or uncited content, creates LoRA jobs, saves checkpoints, and reloads adapters.
Combines deterministic rules with a local or external LLM judge, then exports JSON, Markdown, HTML, traces, scores, and activity logs.
The prompt-response harness uses these pieces whenever DueCare answers a chat, comparison, or benchmark prompt.
Hard, human-readable rules that gate the system. Inputs that ask for prohibited outputs are refused; outputs that violate a rule are caught before return.
The narrow set of functions the model can call when it needs more than the prompt: pack lookup, advisory search, anonymization, verification. Every call is logged and inspectable.
Versioned, signed bundles of public source material (laws, advisories, embassy notices) scoped to a corridor and frozen at a known date. The pack is what the answer gets cited against.