Free JYnapse Knowledge Base · Cheat Sheet
Beyond chat — how retrieval, tools and agents fit together, when each is the right build, and how to keep an autonomous system on a leash. Vendor-neutral.
| Chatbot | Answers from training memory |
| RAG | Answers from your documents |
| Agent | Takes actions to reach a goal |
Rising order of power, cost and risk. Most business needs stop at RAG — reach for an agent only when the task genuinely requires doing, not just answering.
It's retrieval, not training. A new document is a re-index, not a retrain — and every answer can cite where it came from.
A loop, not a single reply:
while not done:
think → decide the next step
act → call a tool
observe → read the result
repeat → until the goal is met
The model plans, uses tools, sees what happened, and adjusts — the reason–act–observe loop (aka ReAct).
Tools are how an agent touches the real world. You describe a function; the model chooses when to call it and with what arguments.
{
"name": "get_order_status",
"description": "Look up an order by ID",
"parameters": { "order_id": "string" }
}
Good tools are narrow, well-described and validated. Vague tools = an agent that flails.
| Single agent | One model + tools. Start here. |
| Orchestrator | A "manager" routes to specialists |
| Workers | Each owns one job (research, write, check) |
Split into multiple agents only when roles are genuinely distinct. More agents = more coordination overhead and more ways to fail.
| Chain | Fixed A→B→C steps |
| Router | Pick the path by input |
| Manager/worker | Delegate & gather |
| Reflection | Draft → critique → revise |
| Human-in-loop | Approve before acting |
If the steps are fixed, that's automation with AI steps — not an agent. Cheaper and more reliable; use it.
The Model Context Protocol is an open standard for connecting models to tools & data sources through one common interface.
Useful once you have several tools and more than one app that needs them.
| Context window | Short-term — this conversation |
| Vector store | Long-term — recall by meaning |
| State / scratchpad | The task's working notes |
Context isn't free — it costs tokens and dilutes focus. Retrieve what's relevant; don't dump everything into the prompt.
| Fixed format, on a schedule | Automation |
| Q&A over your docs | RAG |
| Query your database | SQL agent (read-only) |
| Many chained judgements | Agentic system |
Ask: "How many genuine judgement calls are in this workflow?" One or two → automation with an AI step. Five or six that depend on each other → an agent, and a much larger bill.
JYnapse Knowledge Base · Free to read and print. Vendor-neutral; concepts apply across OpenAI, Anthropic, Google and open-weight stacks. Available in English, Bahasa Melayu and 中文 on request.