CASE STUDY 01 / 16 · AGENTIC AISOURCE-GROUNDED IMPLEMENTATION RECORD

Cascade.

The master agent for an operations team. Ask in plain language and Cascade picks the agent, pulls the data and writes the answer, all on a private local model.

VIEW THE SYSTEM DESIGN
DOCUMENTED DELIVERY STAGEIn build

In build. The routed workflow and answers are an intended MVP, not a proven production capability.

CORE OPERATIONAL PROBLEMOperational answers sit in documents, databases and people’s heads, and internal data cannot be handed to a cloud AI tool.
MY CONTRIBUTIONDesigning and building a private agent router, the first integrations with Glyph and DocHawk, and the checkable analysis path.
TECHNOLOGY STACKPython / FastAPI / Ollama / Local LLM / RAG / Text-to-SQL / pandas / SQLite
01 / THE CHANGE

BEFORE
& AFTER.

01 — BEFORE

The manual / previous workflow

Operators search across documents, shipment databases and colleagues to construct one answer.

02 — AFTER / TARGET

What changed

Proposed: one chat entry point chooses document retrieval, read-only data queries or code-computed analysis; the answer links back to its source.

IMPLEMENTATION BOUNDARY In build. The routed workflow and answers are an intended MVP, not a proven production capability.

02 / SYSTEM DESIGN

UNDER
THE HOOD.

Built from source-described project workflows. Arrows retain execution and data dependencies.

SYSTEM ARCHITECTURECascade / PROCESS GRAPH
↓ SVG
Flow n_user->n_router n_router->n_rag n_router->n_sql n_router->n_sum n_rag->n_docs retrieve n_sql->n_db query n_sum->n_calc n_docs->n_llm n_db->n_llm n_calc->n_llm n_llm->n_out n_user A team member asks in chat n_router Cascade picks the right capability n_rag Document Q&A n_sql Database answers n_sum Summaries and analysis n_docs Document store n_db Glyph database, read-only n_calc SQL and pandas compute the numbers n_llm Local model on Ollama writes the answer n_out Answer in chat, dashboards above
PROCESS / STORE AGENT HUMAN APPROVAL NOT YET COMPLETE

Follow the workflow

STEPS / 10
  1. 01

    A team member asks in chat

    There is no agent picker. The question is typed in plain language.

  2. 02

    Cascade picks the right capability

    Routing decides between documents, database and analysis, then calls the right agent.

  3. 03

    Document Q&A

    Retrieves the relevant passages and answers from them.

  4. 04

    Database answers

    Writes a read-only SQL query from the question.

  5. 05

    Summaries and analysis

    Plans the analysis. The numbers are never guessed by the model.

  6. 06

    Document store

    Extracted documents, searchable by meaning.

  7. 07

    Glyph database, read-only

    Shipment records and bill of lading data.

  8. 08

    SQL and pandas compute the numbers

    Figures come from code, so they can be checked.

  9. 09

    Local model on Ollama writes the answer

    Runs on my own hardware. No cloud model sees internal data.

  10. 10

    Answer in chat, dashboards above

    The reply appears under live control tower dashboards.

03 / ENGINEERING

WHY THIS
DESIGN.

DESIGN DECISION

Technology with a specific job.

Keep SQL read-only and let SQL/pandas calculate figures. The language model explains results rather than inventing calculations.

TOOLS IN CONTEXT
PythonFastAPIOllamaLocal LLMRAGText-to-SQLpandasSQLite

System integrations and capabilities follow the maturity statement above; the diagram is not proof that every stage is deployed.

04 / THE EVIDENCE

IMPACT,
WITHOUT
GUESSWORK.

DOCUMENTED EVIDENCE

MVP design and documented stack; no measured answering time or production accuracy yet.

REALIZED AED CASH SAVINGSAWAITING MEASUREMENTNo project-specific realized AED figure supplied.
THE NEXT MEASURE

Analyst minutes per sourced, checked answer to an identical set of shipment questions.

RECORDS NEEDED TO VERIFY

Timestamped question set, source links, reviewer accuracy checks, analyst time logs and comparable baseline.

Capacity released, avoided future expenditure and actual cash reductions are distinct. Do not allocate the portfolio-wide 20+ hours/week or 22% result to this individual case without supporting measurement.

OPEN THE AED SCENARIO CALCULATOR
05 / CONNECTED WORK

THE SYSTEM
IS CONNECTED.