The Reflection Workflow

How we achieve Hallucination-Resistance using multi-model consensus and truth-state enforcement.

1. User Input

"Draft a contract based on our standard NDA."

> Input received via WebUI / CLI

2. AMGL Guard Check

Pre-inference security scan. Checks for prompt injection, jailbreaks, and PII leakage.

AMGL_STATUS: PASS

3. Vault Retrieval (RAG)

Query local vector store for "Standard NDA". Fetch context from your filesystem.

4. Generation (Model A)

Primary model (e.g., Claude 3.5 Sonnet) generates the draft.

5. Reflection (Model B)

Secondary model (e.g., GPT-4o or Local Llama 3) critiques the output against the retrieved context.

? Truth Check: VERIFYING...
Compliance: MATCH

6. Final Output

Validated response presented to user. Signed with SHA256 hash.