Writing

Building RAG with .NET: thank you, and how to get the code [Slides download below]

Andrew Cheeseman

Thank you to everyone who came along to Brighton Dev.AI on Wednesday evening. It was a full room, the questions were sharp, and the conversation afterwards ran on long after the last slide. A big thank you as well to Gavin Badcock and the organisers for having me back.

What the talk covered

Building RAG with .NET, Jev and other stuff was a worked example of retrieval-augmented generation, built end to end in C#. The data was something I know well: 385 videos from two YouTube poker-coaching channels, Hungry Horse Poker and Live Poker Guide. With thanks to both coaches.

The pipeline runs in six steps, each with one job:

  1. Get the captions out of YouTube.
  2. Sort the videos into five buckets with Jev, TypeSafe AI's decision model, which returns a typed answer with a confidence score.
  3. Cut the transcripts into chunks on natural pauses, and add a line of context to each.
  4. Embed the chunks and store them in Amazon S3 Vectors: 14,254 of them.
  5. Give Claude a search tool over MCP, filtering first and returning one hit per video.
  6. Let Claude coach from what it finds, citing the video to the second.

The part I most wanted people to take away was the measuring. I built a set of 20 questions with known answers before tuning anything, and it changed my mind more than once:

  • A famous recipe made it worse. Contextual retrieval, applied exactly as published, dropped recall from 95% to 80%. Moving the context line to after the chunk brought it back.
  • The "biggest single win" didn't win. A reranker gave no measurable gain on this data, so it is switched off.
  • It is cheap. Sorting all the videos cost 12 cents, embedding about 10 cents, and an answer costs around 8 to 12 cents.

Then about 20 minutes of live demos on the real data: a weekly refresh run, the Jev quiz, search on its own in MCP Inspector, and the app answering with RAG switched off and then on.

If you want the longer version of why retrieval matters more than the model, I wrote it up on Wednesday: Your AI has read the internet. It hasn't read your price list.

Want the code?

I promised on the night to share the repositories. Send me an email at andrewc@cheesesharp.com with your GitHub username, and I'll add you to them. That covers the pipeline and MCP search server, the app, and the transcript fetcher.

Thanks again for coming. See you at the next one.

The way in

One day. £1,500. A written answer.

I spend a day inside your systems and write back what I found, what I would change, and what it would cost. You keep the document whether or not we ever work together again.

£1,500

Ex VAT. No minimum term.

Book

Tell me where you are stuck.

A short conversation costs nothing and usually gets further than a written brief. Tell me what is in the way and I will tell you what I would do about it.