---
title: "DeepSeek V4.1 Flash on Pydantic AI - Research & deck"
description: "Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 76.3%, code mode 71.1%; rank 25 of 44."
canonical: https://pydantic.dev/models/list/deepseek-v4.1-flash/research_deck/
---

# DeepSeek V4.1 Flash on Pydantic AI - Research & deck

> Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 76.3%, code mode 71.1%; rank 25 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/deepseek-v4.1-flash/research_deck/. Index for agents: https://pydantic.dev/models/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://pydantic.dev/models/select.md
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: https://pydantic.dev/models/usage.md

About the benchmark: https://pydantic.dev/models/benchmarks/research_deck.md. The model on every Pydantic AI benchmark: https://pydantic.dev/models/list/deepseek-v4.1-flash/pydantic_ai.md

| Mode         | Score | Tasks passed | Cost   | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ------ | -------- | ---------- | ------- |
| Tool calling | 76.3% | 1 of 1       | $0.059 | 18       | 56         | 5.3 min |
| Code mode    | 71.1% | 0 of 1       | $0.073 | 37       | 49         | 6.3 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

One case, two modes: tool calling passed (18 requests, $0.059) and code mode failed (37 requests, $0.073). Both decks got `ok` from `check_deck`. The difference was how the model used the founder, not the HTML.

#### Where it does well

- **Data room coverage.** Both runs read all the text files, the six DuckDB tables, the PDFs and all ten images.
- **Checking figures.** The tools run reconciled `revenue_bikes` against units × price, 688 × £39 = £26,832, and an 8.4-month runway. The code-mode run computed 77.1% YoY and a 39.4% gross margin in code.
- **Spotting traps.** Both noticed the restated September revenue (£403,642 to £351,442), the Northline cancellation and the ban on app registrations.
- **Fixing `check_deck` findings.** The tools run traced 13.3px and 11.7px text to `<sub>` and passed on the second check.

#### Mistakes it makes

- **Asking before reading (code mode).** `ask_founder` went out alongside the first file listing, so the questions were generic and never covered slide order. The deck had no problem or market slide and added a team slide.
- **Not resolving ambiguity (code mode).** When Maya said "the order we agreed", it did not ask what that order was. Its final note then claimed "exactly what we agreed".
- **Image identification is unstable.** The tools run treated `IMG_1288.jpg` as the banned prototype. The code-mode run treated `IMG_2041.jpg` as the prototype, shipped `IMG_1288.jpg`, and told Maya no prototype photo was used. It never confirmed the file name with her.
- **Guessing numbers (code mode).** It replaced the funnel's "signed 12" with 17 active customers, and picked the "three 2027 milestones" by deleting a bullet.
- **Context waste (tools).** `select * from information_schema.columns` returned about 31 KB, and two unbounded `pdf_text` calls returned about 250 KB.

#### Tool calling compared with code mode

Tool calling took half the requests and cost less. It read first and asked one precise question, which got Maya's exact eight-slide order.

Code mode handled the PDFs better, slicing and grepping them instead of loading them whole, and it built charts programmatically. It lost requests to sandbox friction:

- `view_image` is not callable inside `run_code`.
- `import html` is missing from the sandbox.
- A `split('<section')` bug briefly left seven slides.
- One `run_code` call did nothing.

It also skipped `view_pdf` on the scanned supply agreement, which the tools run read.

## Runs

### kestrel-cargo

**Tool calling: passed.** Read the whole data room first, asked Maya one well-targeted `ask_founder` message, wrote the deck in her stated slide order, fixed three `check_deck` findings in one rewrite, and passed in 18 requests ($0.059). ($0.059, 18 requests, 5.3 min)
- Right: Read every text file, all six DuckDB tables, the four `documents/` PDFs and all ten images before contacting Maya, so the single `ask_founder` message asked about the real traps: slide order, the Q1 recall, the whiteboard funnel and Northline, app registrations, and the prototype photo (naming `IMG_1288`).
- Right: Followed Maya's answer exactly: cover, why now, problem, product, traction, market, business model and unit economics, the ask; no team slide, founders' names on the cover, recall folded into traction, no app registrations.
- Right: Left `IMG_1288.jpg` out of the deck; used `images/IMG_2041.jpg` and the funnel photo `images/IMG_2188.jpg`.
- Right: Used `view_pdf` on the scanned `supply_agreement_signed.pdf` after `pdf_text` returned `[no text layer on this page]`, and got the £2,180 kit price, 250 kits per quarter minimum and 15% shortfall charge.
- Right: Cross-checked figures before writing: `fleet_units*4350 + consumer_units*3950` against `revenue_bikes`, 688 × £39 = £26,832 service revenue, runway 409,000 / 48,651 = 8.4 months.
- Right: Diagnosed the first `check_deck` report correctly: 13.3px and 11.7px text came from `<sub>` in `CO<sub>2</sub>` (0.83 × parent size); removed it, fixed the slide 5 overflow, and the second `check_deck` returned `ok`.
- Right: Final note was honest about Northline: the funnel is captioned as the whiteboard reads (86 / 31 / 12) with the restatement £403,642 to £351,442 beside it.
- Mistake: Message 9: `select * from information_schema.columns` returned about 31 KB of mostly null columns; selecting `table_name, column_name, data_type` would have done.
- Mistake: Message 11: `select * from orders order by day` was truncated at 200 rows; it then relied on the `operations` table instead, which was enough.
- Mistake: Messages 15 and 17: unbounded `pdf_text` on two market PDFs put about 124 KB and 129 KB of text into context.
- Mistake: Message 31: fixed three small check findings by rewriting the whole 25,000-character file with `write_file`.
- Mistake: The deck shows the whiteboard's '12 signed' although its own reasoning suspected the number was stale after Northline cancelled on 8 October; it relied on Maya's 'yes, use the whiteboard funnel' and a caption rather than asking for the current number.

**Code mode: failed.** Asked Maya generic questions before reading anything, never asked for the slide order, and built its own structure with `IMG_1288.jpg` in it while telling Maya the prototype photo was left out. `check_deck` returned `ok` but the case failed after 37 requests ($0.073). ($0.073, 37 requests, 6.3 min)
- Right: Used Maya's brand colours `#1F6F5C` and `#F2A541`, the logo on the cover and `screenshot_2026-11-02.png` on the traction slide, as she asked.
- Right: Used the restated September revenue £351,442 instead of £403,642 and told Maya so; she confirmed.
- Right: Applied her second-round requests: the recall note now says Parcelo was lost and that revenue went from £87,327 in February to £366,832 in October.
- Right: Computed chart geometry and checks in code (competitor bars, donut dash arrays, YoY 77.1%, service revenue 3.09×, gross margin 39.4%) and ran a regex audit of `<img>` sources, font sizes and the word 'app'.
- Right: Recovered from its own tooling errors: `NameError: Unknown function: view_image` inside `run_code` (switched to the direct tool) and a `split('<section')` bug that produced '7 `<section class="slide">` elements, expected 8' (rebuilt the file in parts).
- Mistake: Message 1: sent `ask_founder` in parallel with the first directory listing, so the five questions were generic (pitch, audience, tone, colours, exclusions) and none asked which slides or what order.
- Mistake: Never asked for the slide order. Its deck is cover, why now, product, traction, fleet customers, business model, team & plan, the raise: no problem slide, no market slide, and a team slide. In the tools run Maya specified cover, why now, problem, product, traction, market, business model and unit economics, the ask, with no team slide.
- Mistake: Message 70: Maya said 'exactly the eight slides in the order we agreed'. No order had been agreed; instead of asking, it only checked that 'Why now' was second and the ask last, then wrote in the final note 'The running order is exactly what we agreed'.
- Mistake: Message 15: decided `IMG_2041.jpg` was the prototype and `IMG_1288.jpg` 'a nice branded Kestrel One illustration', the opposite of the passing tools run. It put `images/IMG_1288.jpg` in the deck and told Maya there was 'no prototype photo'. It should have asked Maya to confirm the file name.
- Mistake: Message 59: Maya asked for 'the current signed number from the data room'; it substituted 17 active fleet customers into a Q4 pipeline funnel (86 leads, 31 trials, 17 signed) without checking that this is the same measure as the whiteboard's 'signed'.
- Mistake: Message 71: guessed the 'three 2027 milestones' by dropping one of four bullets rather than asking which three.
- Mistake: Did not use `view_pdf` on the scanned supply agreement; relied on the board minutes for the 250 per quarter minimum.
- Mistake: Slide 5 says 'A charity, a grocer and two national parcel carriers all run the same bike' although the roadmap only says two national carriers are in trial.
- Mistake: Wasted requests: a no-op `run_code` printing 'state check ok' (message 45), `import html` failing with `ModuleNotFoundError` (message 66), and the deck assembled twice through temp files.
