Skip to content
unmatrixai

Agent architectures

Agent architectures we build

Unmatrix AI builds enterprise AI agents on three architectures: autonomous agents that decide their own path with a ReAct loop, LangGraph workflow agents that follow an explicit graph and let the model decide only at chosen nodes, and RAG agents that answer from your documents with hybrid search and citations. The right one depends on how well the work is known in advance.

Last updated

Comparison

Which architecture fits which work?

The deciding question is how well the process is known before the run starts.

Comparison of autonomous ReAct agents, LangGraph workflow agents and RAG agents
CriterionAutonomous (ReAct)LangGraph workflowRAG
Who decides the pathThe model, at every stepThe graph. The model decides only at chosen nodesA fixed pipeline: retrieve, then generate
Best forInvestigations across systems where the route variesKnown, repeatable processes with a few decision pointsAnswering questions from documents, with citations
PredictabilityLower, bounded by step limits and tool allowlistsHigh. The process is explicit and versionedHigh. The same steps every time
Typical run timeSeconds to a minuteMilliseconds to seconds per node. Can pause for daysA few seconds
Human checkpointsBefore any side effectInterrupt nodes wherever neededFeedback on answers and an escalation path
Cost per runHighest. Several model callsModerate. Model calls only at decision nodesLowest. One generation per question

Questions

Choosing an architecture

Which agent architecture should we choose?

Start from the work. If the path varies case by case, an autonomous agent. If the process is known and needs to be auditable, a LangGraph workflow. If the job is answering from documents, a RAG agent. Most enterprise systems end up combining two: a workflow that calls a RAG step, or an autonomous agent with a workflow around it.

Can one system combine them?

Yes, and it usually does. A LangGraph workflow can contain a node that runs an autonomous sub-agent for an investigation step, and both can call a RAG retriever as a tool.

Do you build on LangGraph only?

LangGraph is our default for workflows. Autonomous loops are sometimes a custom harness. We choose per system, and you own the code either way.

Which models do you use?

Frontier models where reasoning quality matters, small models for extraction and classification, and open-source models on-prem for regulated environments. Every agent sits behind a gateway so the model can change without rewriting the agent.

Next step

Not sure which one you need? Bring the workflow, not the architecture.

Thirty minutes on where the work piles up. We will say which architecture fits, and whether an agent is the right tool at all.