Free 15-minute callFree 15-minute call →
艾维禾砺Vibe Coding LabIvheli · 1:1 coaching
Engineering deep dives

What comes after RAG

A read-only AI is an adviser; an AI that can execute controlled actions is a colleague. The difference is whether logic and action are handed over too.

Updated 2026-11-112 min readFree guides · 31/96

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:

  1. A client asks “when will my order arrive” → retrieve the order object and logistics records (data)
  2. An estimate is needed → call the ETA model (logic)
  3. The address needs changing → call the “change address” action (action, requires permission)
  4. 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

  1. Do RAG first: let AI look things up in your own material
  2. Pick one or two high-frequency, low-risk actions (send a reminder, log a follow-up, generate a draft)
  3. Write down the permissions and completion criteria for each action
  4. Keep human confirmation for high-risk operations
  5. 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.

Want to apply this to your own work?

Read next

Share this article

Where should your idea start?

Bring an idea or a question to a free 15-minute call. Confirm the conversation language and time when booking.

Book a free 15-minute call

Where should your idea start?

Free 15-minute call →Free guides

Book a free 15-minute call

Contact

Booking formEnterprise AI implementation & system developmentSee enterprise services (official site)
Add us on WeChat, mention Vibe Coding and tell us what you want to do
Add us on WeChat, mention Vibe Coding and tell us what you want to do