LESSON 158 / 215·2 min readAdvanced

Two complete request walkthroughs

Must knowConcept lesson
01 Understand02 Recall03 Prepare

Words made simple

A few useful meanings before you read the explanation.

LLM
A model trained to work with language. It can write or summarize text, but its answer still needs checking against reliable information.
RAG
Find relevant information first, then give it to a model to help answer the question. The answer is only as reliable as the information and checks used.
Deterministic
Following steps or rules defined by code. The model does not decide which step should run next in a deterministic workflow.
More words from this lesson
Authorization
Checking what that identity is allowed to read or do. Being logged in does not grant access to every record.
Tenant
A customer or organization whose data must stay separate from other customers in a shared application.
Trace
A linked record of the steps in one request, including model calls, retrieval and tools. It helps locate delays or failures.

A. “Check claim C42.”

  1. Node verifies the user and tenant.
  2. A route or bounded classifier selects claim status.
  3. The claim tool verifies customer ownership, reads canonical status, and returns a safe projection.
  4. A template or LLM explains awaiting_documents using the returned required-document types.
  5. The backend checks that the answer does not invent a payout or completion date.
  6. The UI receives safe text and the verified status. The trace records lookup outcome and usage.

No RAG is required to read live status. If the user asks why a document is required, retrieve the applicable instructions separately and cite them.

B. “File a claim for yesterday's accident.”

  1. Verify policy ownership and obtain the current product-specific intake rules.
  2. Use extraction to propose date, location, description, and claim type; clarify missing or ambiguous values.
  3. Upload and securely process supporting documents; preserve originals and field evidence.
  4. Validate the draft with deterministic calendar/product/business rules.
  5. Store an immutable draft version and render exact details for customer review.
  6. Record approval against that draft's hash; corrections invalidate it.
  7. Start a deduplicated submission operation. Revalidate current permissions and rules at commit time.
  8. Claim service creates one canonical claim and records its receipt. Publish notifications through an outbox.
  9. If a timeout leaves outcome unknown, reconcile by operation key before retrying.
  10. Explain only the verified receipt/status. Review/adjudication remains in the authorized claims process.
PAUSE & RECALL

Can you explain it without the notes?

Two complete request walkthroughs

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

A. “Check claim C42.”

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: Failure handling, evaluation, and operational review

Adapted from 13_AI.MD · “Two complete request walkthroughs”. Examples are study fragments; framework behavior can depend on your version.