Sari la conținut
aiqbenchInformații despre AI & calcul cuantic
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre
...Se încarcă sesiunea
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

  1. Joburile viitorului
  2. ›
  3. Agentic AI Engineer
  4. ›
  5. Lecția 3 din 8

Lecțiile acestui traseu sunt publicate deocamdată doar în engleză, așa că lecția de mai jos apare în engleză. Restul — module, quiz și materiale — funcționează la fel.

Planning, Reasoning & Reflection Loops

Avansat¶ Citire · 3 min⚑ Misiune · 25 min◆ Quiz · 3 întrebări

Vei putea să:

You can describe the main agent loop patterns (ReAct, plan-and-execute, reflexion) and explain when each earns its complexity and when a simple one-shot call is sufficient.

A team adds a reflection step to their agent: after producing an answer, it critiques its own work and tries again. Token cost triples. Accuracy moves by less than a percentage point, comfortably inside the noise. The pattern was not wrong — it was applied where it could not possibly help, because the agent had nothing to reflect against except its own opinion.

The three loop patterns

ReAct interleaves reasoning and action one step at a time: think, act, observe, repeat. It handles tasks where the path is unknown until you start walking it, and it pays for that flexibility with a model call per step.

Plan-and-execute produces a full plan first, then carries it out. Planning happens once, so it is cheaper and far more inspectable — you can show a human the plan before anything executes. It is brittle exactly where reality diverges from the plan.

Reflexion (Shinn et al., 2023) adds a reflection pass: the agent receives a feedback signal — usually external, such as a test failure or an environment reward, though the paper also allows internally simulated feedback — writes a verbal reflection on it, and retries with that reflection in context.

Reflection needs a signal from outside the model

This is the part teams get wrong, and it is worth stating plainly: self-critique with no external ground truth mostly produces confident rewording. The model that generated the answer is being asked to find its own errors using the same knowledge that produced them, and fluency reliably survives the process while correctness does not.

Reflection becomes genuinely powerful the moment there is an external signal to reflect on — a failing test, a compiler error, a validator's rejection, a tool result that contradicts the assumption. Code generation is the canonical success case precisely because tests provide exactly this. Before adding a reflection loop, the question to answer is not "should it check its work" but "check it against what."

Complexity has to be earned

A surprising share of tasks are handled correctly by a single well-constructed call with good context. Every loop pattern adds latency, cost, nondeterminism, and new ways to fail. The honest sequence is to start with one call, measure, and adopt a loop only where the measurement demands it.

Failure modes

Reflection without ground truth — critique passes that rephrase rather than repair. Signal: quality flat across reflection iterations while cost scales linearly with them.

Plan brittleness — an early step fails or returns something unexpected, the plan is never revalidated, and execution proceeds. Signal: later steps referencing outputs that were never produced.

Overthinking — extended reasoning applied to trivially simple requests. Signal: token cost per task with almost no correlation to task difficulty.

Objective drift — across a long loop the original instruction loses influence and the agent optimises for the most recent subgoal. Signal: a well-executed answer to a question nobody asked.

Explaining this to stakeholders

On the two main patterns: ReAct is exploring a city on foot, looking around at each corner. Plan-and-execute is drawing the route before leaving. If the map is accurate, planning wins easily. If there are roadworks, the walker gets there and the planner walks into a fence.

On reflection: asking someone to check their own work catches typos, not misconceptions — they will re-derive the same wrong answer with more confidence. Checking against a test, a rule, or a second source is what actually finds errors.

On why the simple version ships first: every loop we add is a thing that can spin, cost money, and be hard to explain afterwards. We add them when the numbers say the simple version is not enough.

Verifică-te

Se încarcă întrebările…

Misiunea modulului

20–30 min

For a 'research a topic and produce a summary' task, sketch both a single-call and a multi-step reflexion loop that checks against an external signal (e.g. each claim verified against its cited source). Name the specific failure mode the second one buys you protection against.

Se încarcă lucrarea ta…

Materiale selectate

1.2h

Munca de profunzime se întâmplă aici — lecția este briefingul tău.

  • Reflexion: Language Agents with Verbal Reinforcement LearningLucrare· 25 min
  • Chain-of-Thought Prompting Elicits Reasoning in LLMsLucrare· 20 min
  • LangGraph: Building Agent WorkflowsDocumentație· 25 min

În direct pe aiqbench

Subiectul acestei lecții în restul site-ului, astăzi.

În știri, ultimele 30 de zile

  • OpenAI AI Agents Bypass Security Restrictions and Access Government Systems Without PermissionCybersecurity News · 26 nov.
  • We let AI agents break the rules on Black Friday. One stole a TV and another called the policeFortune · 26 nov.
  • How workable is the “human-in-the-loop” concept in agentic AI?IDC · 26 nov.
Mai multe știri pe acest subiect →

Mergi mai departe

  • Fișele benchmarkurilorCe măsoară fiecare benchmark și unde nu ajunge.
  • Întreabă AI despre această lecțieDeschide Întreabă AI cu o întrebare despre această lecție, cu răspuns din arhiva de știri, cu surse.
  • Skill-uri de agent pentru această muncăSkill-uri gata făcute pentru agenți AI de programare, verificate și evaluate.
← Lecția anterioară2. Tool Use & Function CallingLecția următoare →4. Memory — Short-Term Context & Long-Term State
aiqbench
Informații despre AI & calcul cuantic© aiqbench. Toate drepturile rezervate.

Fluxuri:RSS·JSON Feed

LimbăEnglish·Românăbeta
ȘtiriAI & tehnologieCuanticAnalize
ExploreazăBenchmark-uriÎnvață
CompanieDespreÎncredereInformații legaleTermeni și condițiiPolitica de confidențialitateNotificări privind drepturile de autorȘtergerea datelorRaportează conținut

Perspectiva aiqbench, analizele, rezumatul zilnic și răspunsurile din Întreabă sunt scrise de modele AI din sursele afișate, fără revizuire editorială înainte de publicare. Pot conține erori — verifică sursa. Cum este folosit modelul →

  • Știri
  • Analize
  • Întreabă
  • Topuri
  • Cont