sciencespo-binary-wave-cover.png
SCIENCES PO
INTRODUCTORY AI COURSE · SESSION 6
From Model to Agent, and Where AI Goes Next
Session 6 · Retrieval, tools, loops, and consequences
PRESENTED BY
Evan Dufraisse
27 August 2026
Thinking Models? Example of Qwen3-235B-A22B (2025)
REASONING & AGENTS SESSION 6 Thinking Models? Example of Qwen3-235B-A22B (2025) Benchmark Domain Thinking Non-thinking MMLU-Redux Broad academic knowledge and reasoning 92.7 89.2 GPQA-Diamond Graduate-level science questions 71.1 62.9 MATH-500 Competition-level mathematics 98.0 91.2 AIME ’24 Advanced high-school mathematics 85.7 40.1 AIME ’25 Advanced high-school mathematics 81.5 24.7 LiveCodeBench v5 Recent competitive-programming problems 70.7 35.3 BFCL v3 Function and tool calling 70.8 68.0
Let’s think step by step (2022)
REASONING & AGENTS SESSION 6 Let’s think step by step (2022) Eliciting forms of reasoning makes the model able to answer correctly.
Reasoning Training is Also Done Through RL
REASONING & AGENTS SESSION 6 Reasoning Training is Also Done Through RL
Reasoning Training is Also Done Through RL
REASONING & AGENTS SESSION 6 Reasoning Training is Also Done Through RL Reasoning is particularly useful in long-horizon agentic tasks , where the model must plan, use tools, interpret observations, and adapt its next actions.
Problem: The Model's Knowledge Is Frozen
REASONING & AGENTS SESSION 6 Problem: The Model's Knowledge Is Frozen An LLM’s episodic memory is the conversation context available to it . To simulate long-term memory , relevant information must be stored in an external database. The model cannot update its weights.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Not Everything Fits in the Context
A screenshot of a computer

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
More Context Is Not Always Better
More tokens
You can include more material, but the model must still find what matters.
Higher cost
Higher latency
More distraction
Better selection
A smaller, relevant context can outperform a giant noisy prompt.
Cheaper
Faster
Easier to ground
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
More Context Is Not Always Better - Cost
A screenshot of a graph

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Needle in a Haystack
Solution: Retrieve Only What Is Relevant
REASONING & AGENTS SESSION 6 Solution: Retrieve Only What Is Relevant
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
The Retrieval Augmented Generation (RAG) Pipeline: Two Phases
A screenshot of a computer

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
The RAG Pipeline - Ingestion
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
The RAG Pipeline - Retrieval
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
RAG Changes the Context, Not the Model
The system becomes better informed at inference time, but the underlying weights stay the same.
No retraining is required
The gain comes from external evidence
Grounding is assembled, not baked in
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
COMPARISON
A Fixed Database Is Not the Live World
Fixed corpus
Useful when the source set is known and curated.
Live environment
Needed when the answer depends on current conditions.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Get the Weather for Tomorrow?
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
PIPELINE
The Program Executes the Operation
Prompt
The task arrives
Tool call
The model emits arguments
Agent Program
The program validates and runs
Observation
The result comes back
Reply
The model responds again
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Making a Web Search
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Beyond Information Retrieval
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
What tools can an AI model call?
A diagram of a model

AI-generated content may be incorrect.
From Tool-Calling to Agentic – React pattern
REASONING & AGENTS SESSION 6 From Tool-Calling to Agentic – React pattern « Reasoning and acting » We set a goal to the model and it loops until the solution is found
Agentic Inception – Agents can be tools
REASONING & AGENTS SESSION 6 Agentic Inception – Agents can be tools
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Agentic Inception – Agents can be tools
Context windows are limited, and long contexts are expensive.
Models generally perform better when focused on a single goal.
The main model needs only the final result or action feedback. Not the process used to produce it.
Motivations:
A diagram of a company

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Agentic Inception – Agentic Harness
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
COMPARISON
Level of Autonomy is A Choice
Human-gated
The system suggests, asks, or waits for approval.
Higher oversight
Slower throughput
Easier audit
Self-directed
The system acts within defined limits.
More speed
More risk
Needs stronger controls
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
DEFINITION
Errors Compound Across Steps
At 95% reliability per step, twenty correct steps in a row happen only about 36% of the time.
Why it matters
0.95^20 ≈ 36%
Small errors become large workflow risk
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
TAKEAWAY
Producing the File Is Not Enough
A capable system must verify the artifact it created rather than treating file existence as success.
Render the output
Inspect the result
Revise if needed
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
COMPARISON
Multimodality Inside the Loop
Text-only loop
The system can describe what it intended to make.
Weak visual verification
Harder artifact checking
Vision-enabled loop
The system can inspect the rendered artifact it actually produced.
Check layout
Spot missing elements
Revise from evidence
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
How a Multimodal LLM Connects Different Modalities?
A screenshot of a computer

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Other AI Active Development – Image Generation
A screenshot of a diagram

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Other AI Active Development – World Models
A screenshot of a diagram

AI-generated content may be incorrect.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Wrapping Up
Agentic and Reasoning systems extend language models with context, tools and feedback, allowing to complete complex tasks
EXTENDING THE MODEL
AGENCY & RELIABILITY
REASONING CAN BE TRAINED
Prompting and reward signals improve multi-step problem solving.
RAG TO ADD OFFLINE INFORMATION
RAG selects external evidence without retraining the model.
TOOLS CONNECT MODELS TO THE WORLD
Programs fetch live information and execute validated actions.
AGENTS LOOP TOWARD A GOAL
Reasoning, action and observation let a system adapt across steps.
THE HARNESS SETS AUTONOMY
Permissions, memory, subagents and approval gates bound what can happen.
VERIFICATION CLOSES THE LOOP
Errors compound, so systems must inspect outputs and revise from evidence.
sciencespo-logo-white.png
REASONING & AGENTS
SESSION 6
Thank You!