What RAG solves
Retrieval-augmented generation (RAG) lets the model look things up before answering:
- Search company documents, contracts and manuals
- Put the relevant fragments into the prompt
- Generate answers with sources
It solves “the model does not know your company’s business”.
What RAG does not solve
- Cannot calculate: amounts, tax rates and inventory need deterministic computation
- Cannot change: after finding a problem it cannot update the status
- Cannot guarantee: does the result comply with business rules? RAG itself does not validate
So RAG suits “question answering” and “advice”, not “getting things done”.
Add two more layers: logic and action
Bring in the other two:
- Logic: prediction models, optimisers and business rules, offered to AI as tools
- Actions: business operations under permission control, such as changing delivery dates, sending notifications and creating work orders
With data (objects) + logic (tools) + action (controlled execution) all connected, AI can take part in the whole decision.
An example
Customer service:
- A client asks “when will my order arrive” → retrieve the order object and logistics records (data)
- An estimate is needed → call the ETA model (logic)
- The address needs changing → call the “change address” action (action, requires permission)
- Uncertain → hand over to a person
Every step can be checked separately, and problems can be located.
Transparency
A good implementation lets users see:
- Which objects it looked up
- Which tools it called
- What the basis was
- Why it gave this suggestion
Looking only at the final answer, you cannot judge whether it is right.
Risks and boundaries
- Actions need permissions: who can execute, in what state, where it is written back
- Rehearse in a sandbox first: run changes in a scenario first and see the downstream impact
- Human review: high-risk actions are confirmed by a person by default
- Rollback: every execution has a log and can be undone
How a small team uses it
- Do RAG first: let AI look things up in your own material
- Pick one or two high-frequency, low-risk actions (send a reminder, log a follow-up, generate a draft)
- Write down the permissions and completion criteria for each action
- Keep human confirmation for high-risk operations
- Record every execution and review it regularly
Checklist
- AI can look up trusted data (RAG)
- Calculation tasks are handed to tools
- Actions have permissions, validation and rollback
- The lookup and call process is visible
- High-risk actions are confirmed by a person
- There is an execution log
Reference: key points adapted from Palantir’s official blog posts “Building with Palantir AIP: Data Tools for RAG / OAG” and “Logic Tools for RAG/OAG”, rewritten for small-team scenarios.
Questions
What are the limits of RAG?
RAG only solves looking things up: it can retrieve relevant text and generate an answer, but it cannot perform calculations, change data, or guarantee the result matches business rules.
Why not just let AI change data directly?
It can, but changes should be converged into controlled actions: who can execute, in what state, where it is written back, and how to roll back on error. Operating on raw data directly is risky.
Does a small team need OAG-style approaches?
No complex platform is needed, but the idea can be borrowed: let AI look things up first (RAG), then turn a few high-frequency operations into controlled actions, such as changing delivery dates, sending reminders and logging follow-ups.