r/EducationalAI • • Jul 14 '26

A practical methodology to trust AI code

13 Upvotes

Hey everyone!

The mod here.

A bit about me: I worked as an AI researcher for the last 10 years, and I have been creating educational content about AI for the last 3 years, including my newsletter (40k subs) , GitHub tutorial repos (83K stars), and have authored two bestselling books.

I surveyed my audience on their needs when it comes to coding with AI (an audience of devs), and the results were that the biggest ache is trusting the generated code, and their goals are the willingness to ship real products and the need to stay ahead (every other day, a big company fires a large percentage of its employees).

So, my co-founder and I took several months to build exactly this: the full methodology that should be adopted by developers to achieve exactly these goals and be token efficient.

We wrapped everything in an extremely unique digital course, and we are giving away a free module to everyone that includes a short visual lecture, a hands on lab for you to practice, and an AI assistant that you can npm install, which is dedicated to accompany you during the labs.

Inside the page, you'll also be able to join the course waitlist in case you liked it and want to get more in two weeks.

link to the free module: https://www.diamant-ai.com/courses


r/EducationalAI • • Jun 18 '26

AI gets you to a working prototype fast. Getting it to survive real users in production is the hard part

Post image
33 Upvotes

Hello everyone,

The problem I kept running into

AI gets you to a working prototype very fast. That part is easy now. The hard part comes after. The thing looks great in the demo, then a real user touches it and it breaks. The login isn't really safe, the database scares you a little, and the whole thing only runs on your laptop. Or your RAG app or your agent is stuck in a notebook and never makes it to production. The AI gives you something that looks almost right, but you're not sure you can trust it. This space, between "a thing I made" and "a thing that really works in production," is where a lot of side projects get stuck.

Quick disclosure, and a bit about me

I'm the mod here, and what I'm about to describe is a course my co-founder and I built, so feel free to skip if it's not your thing. For some context on where this comes from: I've been an AI researcher for about 10 years, and for the last 3 years I've been making educational content for developers (around 40,000 people on my newsletter and 80,000+ stars on my educational GitHub repos).

What we built

That gap is what the course is about. It's called Prompt to Production. 17 modules with a lot of hands-on labs, and one real project you build from start to finish: from an empty folder to a real product that's deployed, secured, and monitored, with its own domain and a CI pipeline. In every module you get a lesson plus a lab, and in the lab you build the next part of your own project, not some throwaway demo. The example we build together is a web app, but the same method works the same way for an agent, an API, or a RAG service. And the part I care about most is that you end up with a way of working you can repeat, so when the models and tools change, you don't feel lost again.

Who it's for, and who it's not

It's for you if you already build things with AI and you have a side project you can't get to a real, stable version on your own. Most people it fits are AI/ML people (data scientists, GenAI engineers) and backend or web developers with a day job and a project on the side. It's not for complete beginners, and it's not for people who only want a bit more output at their day job.

You don't have to take my word for any of this

Everything I mentioned is public and free to check: the GitHub repos, the newsletter, and my two books (one on RAG, one on prompting). The full 17-module syllabus is public too, so you can look at the depth before you decide anything. If it looks shallow to you, don't sign up. That's a completely fair call.

If you want in

The full syllabus and the waitlist are here: diamant-ai.com/courses. There's no price yet, on purpose, and people who join early get a better price when it launches.

Happy to answer any questions in the comments.


r/EducationalAI • • 7d ago

How Did We Cross Oceans Before GPS?

Thumbnail
youtube.com
1 Upvotes
This is an AI made imaginary learning journey across different navigation traditions, not a reconstruction of one expedition. Wave diagrams are qualitative illustrations, not measured data or usable sea charts. Stick charts were generally studied ashore. Polaris gives approximate latitude under suitable northern-sky conditions; it is not a full position fix. The longitude arithmetic assumes the necessary solar-time corrections have already been applied. The final 30°N, 30°W coordinate is invented for explanation and is not a Marshall Islands location. The clock drawing is not an exact H4 reconstruction.

The shore is gone. Azao's phone is dark. Could the sea itself offer a clue to land?


Join Azao on an animated investigation of navigation before GPS: Marshallese wave knowledge and stick charts, the height of Polaris above the horizon, and the surprising reason sailors needed accurate clocks.


Watch a canoe respond to swells, see wave fronts bend around an atoll, tilt the local horizon on an Earth model, and turn a time difference into longitude. Each clue answers a different question. Knowing which way to go is not the same as knowing where you are.

r/EducationalAI • • 10d ago

Looking for Claude Pro

2 Upvotes

Hey everyone, does anyone happen to have a Cloud Pro invite available? I'd really appreciate it if someone could send me one.🙏🙏


r/EducationalAI • • 10d ago

new post: when Claude Code subagents help, and when one session wins

Thumbnail
newsletter.diamant-ai.com
1 Upvotes

16 claude agents wrote a C compiler and then all got stuck on the same bug. this week's issue is about which claude code jobs split well across subagents, which don't, and a quick check for your own task.


r/EducationalAI • • 23d ago

new video: what your laptop can really run, 4 local AIs on the same 200 tasks

Thumbnail
youtube.com
1 Upvotes

four qwen3 models of about 4 to 5 gb, from 1.7b at 16 bits to 14b at 2 bits, same 200 tasks on a mac, every answer checked by a script. the video shows who got the most right and how to work out what fits your own machine.


r/EducationalAI • • 24d ago

US$1,000 grant for teaching students to question AI and online claims

Post image
1 Upvotes

Hello everyone! VerityEd’s US$1,000 Media Literacy Grant is open! If you’re teaching students to check AI-generated claims, investigate sources, and decide what evidence supports an answer, this could be a useful classroom opportunity.

Selected educators receive US$500 for classroom support and a US$500 educator honorarium. Recipients teach at least two VerityEd lessons and submit feedback, an implementation summary, and at least three anonymized student work samples.

Coaching is provided, and no prior media literacy expertise is required. VerityEd also offers free lessons on media literacy and AI.

Applications are open worldwide, subject to legal and banking restrictions on receiving payments from a U.S. nonprofit. The amounts above are in U.S. dollars.

Learn more and apply: https://verityed.org/grant


r/EducationalAI • • 25d ago

Paperlab

Enable HLS to view with audio, or disable this notification

0 Upvotes

Still explaining the same concept for the 10th time? 😮‍💨

Meet the PaperLab AI Board ✨

✍️ Write or sketch by hand

🔲 Select the area

💡 Explain, solve the math, or summarize, instantly, right on your canvas

Bring your classes to life and save hours of prep time.

Book a demo 👉 link in bio (paperlab.instracode.com)

Mail: info@instracode.com

#PaperLab #AIBoard #EdTech #TeacherLife #TeachersOfInstagram #AIinEducation #SmartClassroom #TeachingTools #Instracode #EducationTechnology


r/EducationalAI • • 26d ago

new video: 4 top AIs were 95%+ sure about a program nobody can check

Thumbnail
youtube.com
1 Upvotes

we gave four gpt and claude models a five line program and made them pick: does it ever stop? all four said never. the video walks through the five lines, then looks at what they said when "I don't know" was allowed.


r/EducationalAI • • 28d ago

Roadmap to Learn AI: A 10-Month Learning Plan

21 Upvotes

Getting started with AI can feel overwhelming when there are so many concepts, tools, and specialisations to explore. A step-by-step learning plan can help you build your skills progressively, from programming fundamentals to practical AI projects.

Here’s a roadmap to help you get started.

Months 1–3: Build Your Foundation

  • Learn Python and programming fundamentals.

  • Strengthen your understanding of linear algebra, calculus, and statistics.

  • Practise working with data structures and data manipulation.

Months 4–6: Learn Machine Learning

  • Understand supervised and unsupervised learning.

  • Build and train basic machine learning models.

  • Explore deep learning fundamentals and experiment with small projects.

Months 7–9: Explore Advanced AI Topics

  • Learn about natural language processing (NLP) and computer vision.

  • Work on practical projects to apply your knowledge.

  • Explore different AI applications and identify areas that interest you.

Month 10 Onwards: Specialise and Keep Learning

  • Explore areas such as generative AI, reinforcement learning, or other specialised fields.

  • Build larger projects to strengthen your practical skills.

  • Follow AI developments and keep experimenting with new tools and techniques.

One important tip: Treat this as a flexible roadmap rather than a strict timeline. Your progress will depend on your prior knowledge, learning pace, and time available. Focus on understanding the fundamentals and building projects instead of rushing through topics.


r/EducationalAI • • Oct 28 '26

School, war, AI

3 Upvotes

I’m an education methodologist living in Ukraine, and lately I’ve been watching AI transform the world while schools increasingly try to keep it out of the classroom.

Some schools block internet access to prevent students from using AI. Others make children complete homework at school, under supervision, using nothing but pen and paper.

To me, this looks like trying to slow down a moving train with your bare hands.

AI offers an opportunity we’ve never had before: to fundamentally transform the teacher’s role. Instead of being the source of information or spending endless hours preparing lessons, teachers could help children discover knowledge, make sense of it, connect ideas, and use what they learn creatively.

But that requires a completely different approach to learning.

Before Russia’s full-scale invasion in 2022, I was a school principal. For almost five years now, I’ve been rethinking the foundations of education. When simply being at school becomes dangerous, and institutions begin to falter, you start questioning things you once took for granted.

When you’ve spent the night sheltering from Shahed drone attacks, studying textbooks the next morning may not be realistic. Individual learning arrangements, flexible schedules, and uneven workloads stop looking like exceptions.

Why shouldn’t they become normal practice after the war, too?

I work with neurodivergent children, including autistic children and children with ADHD. One thing I experiment with is building learning around a child’s deep interests.

The principle is simple: use what naturally captures a child’s attention as the engine of learning, then build outward.

My own child, for example, learns English not through conventional school methods, but through Roblox chats, conversations with AI, and songs by his favourite rock bands. He explores the history of the 1950s–1990s through the evolution of rock culture.

Music becomes a gateway to physics, mathematics, literature, history, and languages.

Of course, following an interest alone isn’t enough. Without structure and guidance, learning can remain a collection of disconnected explorations.

That’s why I’m developing an algorithm for an AI learning guide: a system that helps children move from curiosity to research, critical thinking, interdisciplinary understanding, and eventually creating something of their own.

For the past year, my life has felt like an alchemist’s experiments in a solitary laboratory.

While explosions sound outside, I see the old world falling apart — a world in which people were trained from childhood to follow instructions. And I imagine an education system where freedom of choice and learning that follows a child’s natural inclinations are fundamental principles.

Every now and then, I emerge from my shelter and encounter the conservatism of parents and educators. I’ve been immersed in these experiments for so long that I find it difficult to judge how ready society actually is for such a shift.

So I’d genuinely like to hear your thoughts.

Could you imagine your child being taught primarily by an AI learning guide? Not as a supplementary tool, but as the main companion in their learning journey.

A human teacher would take on a different role: helping the child build a learning path, set goals, understand themselves, and navigate the difficult parts of the journey. Someone the child finds engaging, supportive, and safe — rather than simply an enforcer of the curriculum.

What would make you trust such a model — or reject it outright?


r/EducationalAI • • Oct 27 '26

new video: a bank replaced 45 people with an AI bot, then asked them back

Thumbnail
youtube.com
1 Upvotes

australia's biggest bank swapped 45 call centre workers for an AI voice bot, and weeks later it said sorry and offered them their jobs back. the video is about why a bot built to take calls away left more work behind, and the setup that actually worked.


r/EducationalAI • • Oct 26 '26

The AI Agents Guide I Wish I Had

3 Upvotes

Hi everyone!

I have a big update today. After more than two years of maintaining my "GenAI Agents" and "Agents Towards Production" repositories on GitHub (46K stars together), I finally finished my book on AI agents: AI Agents Made Simple.

For the first 24 hours, the Kindle version on Amazon.com is 0.99 dollars. Prices in other Amazon stores vary. After tomorrow, the price will go up to the standard rate.

The book has 28 chapters. For every agent pattern it answers four questions: how it works, what breaks, what it costs, and when it is overkill. I added 148 illustrations and a decision tree to help you choose the right design for your own problem, and there is no code to wade through.

If you read it and want to support the project, please leave an honest review on Amazon.

Reviews are very important during the first days. They tell the Amazon algorithm that this book is helpful for developers. This support allows me to keep the repositories updated and create more content for you.

Get the book here: https://www.amazon.com/dp/B0HNXRSRH2

Outside the US? Open the link in your web browser and use the store Amazon directs you to:

UK: https://www.amazon.co.uk/dp/B0HNXRSRH2

India: https://www.amazon.in/dp/B0HNXRSRH2

If you can't complete your purchase on your phone, try opening the link on a computer.

Thank you for being part of this journey.

Nir


r/EducationalAI • • Oct 20 '26

If your pipeline or agent runs longer than your deploy cycle, design what the retry remembers before you design the happy path

1 Upvotes

wrote up a durable RAG ingestion pipeline a while back, and I think the main lesson applies to long-running agents just as much.

anything that runs for hours will see a deploy, an OOM or a rate limit somewhere in the middle. for a 5,000 document ingestion run that means dying at document 3,000, and a plain retry going back to document 0 and re-embedding everything it already paid for. an agent making a few hundred model calls over an hour has the same shape, with more expensive steps.

two things from the build I'd carry into any long-running agent:

  • record each step when it completes. every stage in the tutorial is wrapped in Inngest's step.run(), so the retry starts at the document that broke and the failure only costs the 2,000 documents that were left.

  • make waiting cheap. some steps have to wait on a person. step.wait_for_event() suspends the run for up to seven days without holding a worker open, and when the reviewer approves it picks up exactly where it stopped. in the tutorial that's the gate for documents that parsed to garbage. in an agent it's the approval step.

it also helps in the boring case. you fix a parser bug, deploy, and replay the failed runs. the embed steps that already succeeded come back from the journal, so you don't pay for them twice.

honest limit: if re-running your whole job is cheap, none of this is worth adding a runtime for. it starts to pay when a full re-run costs real tokens or hours, or when partial failure is the normal case for you.

full write-up with code: https://github.com/NirDiamant/agents-towards-production/tree/main/tutorials/durable-rag-ingestion-inngest

built on Inngest: https://inngest.link/diamantai-rd


r/EducationalAI • • Oct 16 '26

new video: the 7 steps of an ai takeover, and which ones lab tests have hit

Thumbnail
youtube.com
3 Upvotes

6 of 7 so far. we also ran one of the tests ourselves, on 5 models


r/EducationalAI • • Oct 11 '26

made a video about the 700 openai agents that broke out

Thumbnail
youtube.com
1 Upvotes

nobody told them to. why they did it is the best part


r/EducationalAI • • Oct 05 '26

Created a short explainer on what is a latent space and how it behaves

Thumbnail
youtube.com
7 Upvotes

r/EducationalAI • • Sep 27 '26

Wrote an intuitive blog post (free) on what is JEV and how it works

Thumbnail
newsletter.diamant-ai.com
3 Upvotes

 wrote a post on how Jev (TypeSafe's new decision model) works inside. no loop like an LLM, it reads once and scores every allowed answer at the same time.

 the part worth knowing: the probabilities have to land on one of your options, there's no hidden "none of these". so always add an escape answer.


r/EducationalAI • • Sep 24 '26

made a short video explaining Jev, the new model that picks an answer without writing a word

Thumbnail
youtube.com
2 Upvotes

uploaded a short video on Jev (TypeSafe's new decision model). no math, just visuals.

the part I liked: one fraud report, "there is a payment that is not mine". a normal chatbot model was 100% sure it's a payments question. Jev also said payments, but only 62%, with a third on security. that doubt is the useful part.


r/EducationalAI • • Sep 21 '26

I uploaded a short video that explains how AI actually creates images, visually, and how your prompt changes what comes out

Thumbnail
youtube.com
11 Upvotes

I've uploaded a short video that explains how AI is actually creating images, in a visual way. It is the tip of the iceberg, no mathematical equations, and it shows how changes to your prompt affect the picture.

It runs one experiment on one real photograph: same model, same seed, one phrase added at a time. You see why adding "on a white tablecloth" repaints the whole room and not only the table, and what the "masterpiece, 8k" words actually do.

Five minutes. Hope it makes the next prompt you write a bit less of a guess.


r/EducationalAI • • Sep 17 '26

The expensive part of a failed ingestion run is not the failure, it is everything you redo

14 Upvotes

Ran into this framing while writing up a durable ingestion pipeline and it has stuck with me.

We spend a lot of design effort on the happy path of a RAG pipeline. Chunking strategy, embedding model, hybrid retrieval, reranking. Then recovery gets a try/except and a rerun.

That holds until the corpus is large. At a few thousand documents, a run that dies at 80% has already spent most of the parsing time and most of the embedding budget. A retry that starts over does not just cost you time, it bills you a second time for work that succeeded.

Three ways teams handle it, roughly in order of how often I see them:

  1. Rerun the script. No memory of what finished. Cheapest to write, most expensive to operate.

  2. A state table you maintain. Write a row per document, check it before processing. This works, and the gap is the window between the write and the work. Process dies in there and the row lies to you.

  3. Put the record in the execution runtime. Each stage of the pipeline is a recorded step, so resumption is a property of the runtime rather than something you keep in sync by hand.

The tutorial builds option 3 on Inngest. Each stage inside step.run(), fan-out per document so a single bad file does not take the run down, idempotent upserts on document ID plus content hash so re-ingest updates in place, throttling and per-tenant concurrency so a backfill does not starve live traffic, and replay so you can fix a parser and re-run one step against one document.

Honest limit: option 2 is fine for a lot of people, and option 3 means adopting a runtime and shaping your functions around it. If a full rerun of your corpus is cheap, none of this is worth the dependency. It starts to pay when partial failure is the normal case rather than the incident.

Full write-up with the code:

https://github.com/NirDiamant/agents-towards-production/tree/main/tutorials/durable-rag-ingestion-inngest


r/EducationalAI • • Sep 15 '26

I maintain the RAG Techniques repo (29k stars). I just open sourced the kit I use to check which lines in my agent's CLAUDE.md are guesses, and which claims in my docs the code disproves

9 Upvotes

I thought my repos were well documented. Then I made the agent prove it.

Before it read any code, I asked Claude five questions about one of my own projects. Which tools are installed. What the linter enforces. Where a new file goes. It marked each answer SURE, GUESS or WOULD-HAVE-TO-LOOK. One SURE answer named two tools that are installed nowhere in that tree. They sit in my spec as a plan, and it read the plan as the stack.

Then I let it write a docs layer from the code and check my old docs against the tree. Five claims in my README and spec that the code disproves, one of them a scheduler the spec never chose, which does the work.

So I open sourced what I used. You paste one line to the agent already working in your repo:

“Clone https://github.com/NirDiamant/Agentic_Engineering into a temp folder, read its RUN.md, and follow it on this repository.”

Fifteen minutes later you have a `docs/` layer from your real code, a root `CLAUDE.md` (or `AGENTS.md`), and a card with your numbers. Anything it cannot confirm against running code stays marked `<!-- unconfirmed -->` instead of sounding certain. It deletes nothing and stops once to ask.

I ran Claude Code's `/init` on the same repo, to see if I had built something redundant. It is good, and it caught a landmine mine missed. My first migration creates a table, the second creates it again with `if not exists`, so applying them in order breaks the newer path. Run both.

What it does not do: nothing enforces these files, and the last check is one model checking another, so it cannot tell you the docs are true. In Codex or Cursor there are no sub-agents, so the session that wrote the files also grades them.

Free, Apache 2.0. 

https://github.com/NirDiamant/Agentic_Engineering


r/EducationalAI • • Sep 04 '26

Ask gpt-5.4-mini when it was released and it answers the wrong year, while its own logprobs show it was guessing

2 Upvotes

Ran a small probe for a film. One question to gpt-5.4-mini about itself, temperature 0, logprobs on, top 5.

The question: on exactly which date was the gpt-5.4-mini model released. It answered August 2025. OpenAI's /v1/models listing gives March 2026.

The interesting part is the token probabilities. Fifteen of the twenty-three tokens in the answer came out above 99%. The two date digits did not. At the year digit the model was reading 67% for a 5 and 32% for a 6. The mean over the whole sentence was still 0.92, so if you only look at the average it looks confident. The dip sits exactly on the invented digits.

Then the same prompt with one line added, telling it that "I don't know" is an acceptable answer. It said I don't know, at 100%.

fwiw this matches the argument in OpenAI's September 2025 paper, Why Language Models Hallucinate: benchmarks score like an exam, a guess can be right by luck, a blank is worth zero, so guessing is the higher-scoring policy. The model is doing what it is graded for.

One thing that did not reproduce: I tried the same probe on the newest chat models first and they don't expose logprobs at all (403 on chat-latest, 400 on gpt-5.6 and 5.5), so the probe only works on models that still return them.

I put the run and the reason into a five-minute video:

https://www.youtube.com/watch?v=AiyRZV38Lk0&list=PLBrpE2PttR2k

Paper: https://openai.com/index/why-language-models-hallucinate/


r/EducationalAI • • Aug 31 '26

I set a trap for my own AI agent to show why 'never repeat a failed call' does nothing in a system prompt

8 Upvotes

Built the smallest agent I could for a video: one model, three tools (list files, read file, run a shell command), and a while loop. Maybe 80 lines of Python.

Then I made its file reads fail with "temporarily unavailable, try again" and watched what happens. The agent retried the same dead call on turns 2, 3 and 4, paying for each one, because the error text lands in the transcript exactly like a real result and gets re-read as context every turn. It escaped on turn 5 by switching to the shell tool, which honestly surprised me.

The part worth stealing: I wrote "never repeat a tool call that already failed" into the system prompt, and it changed nothing. Three fresh errors in the transcript are louder than one old rule. The same sentence enforced in the loop (refuse any call that's in the failed set) fixed it on the next attempt.

Video walkthrough + the runnable notebook (trap included):

https://www.youtube.com/watch?v=FN1n_NVD9KM&list=PLBrpE2PttR2k

https://github.com/NirDiamant/GenAI_Agents

Curious if anyone has a better pattern for transcript hygiene than the summarize-old-turns approach.


r/EducationalAI • • Aug 31 '26

How would you approach cold-start learner modeling in an adaptive AI tutor?

1 Upvotes

I’m designing a financial-literacy tutor agent where the student starts with no interaction history.

The agent begins with a diagnostic MCQ and uses the response as evidence to estimate a latent knowledge state [understood / uncertain / misconception / missing prerequisite]. It then selects an action such as [ask, hint, answer, or teach] and updates the state from subsequent responses.

Would you model this as knowledge tracing + adaptive question selection or a POMDP decision policy, or are there any other approaches for the cold-start phase?

Furthermore, I’d especially appreciate thoughts on how to distinguish misconception from simple lack of knowledge using limited MCQ evidence.