Urgent.News

What's breaking now, across thousands of outlets.

AI

The Model's JSON Was Almost Valid. I Made It Grade Its Own Homework for 48 Hours.

Every extraction pipeline I have ever pointed at a language model shares the same dirty secret: the JSON comes back almost valid. Almost is where the bugs live, because almost passes your eyes and then fails your schema at midnight. So I built a loop where the model grades its own homework, then let it run for 48 hours on a free server to see what breaks. The experiment The idea was simple: take…

The experiment aimed to test a language model's ability to self-correct JSON payloads that were almost valid. The JSON often came back nearly correct, but the errors were hidden until they triggered validation failures. The workflow involved feeding the model a prompt that asked it to return specific fields as JSON. After generating the JSON, a validator checked it against a predefined schema.

If the validation failed, the model received the original payload, the incorrect JSON, and the error details for a second attempt. All actions, both successful and unsuccessful, were recorded in a JSON Lines log. The process ran for 48 hours on a free server using a free model, with both passes utilizing the free model access. The setup was designed to expose the bugs that often hide in almost valid JSON responses.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Connect Amazon Bedrock AgentCore to cross-account knowledge bases

Learn how Amazon Bedrock AgentCore agents in one account can generate answers from an Amazon Bedrock knowledge base backed by Amazon Redshift Serverless in another account, without copying source…

  • AgentCore enables AI agents at scale across frameworks and models
  • Agents retrieve answers from governed knowledge bases in separate AWS accounts
  • Sample GitHub provides deployment procedures for two AgentCore orchestration models

Radar makes podcasts searchable — and usable by AI agents

Particle’s new podcast intelligence platform transcribes and analyzes more than 130,000 podcasts, making their conversations searchable on the web and accessible to AI agents through an API and MCP.

  • Particle, an AI newsreader startup, pivots to podcast search engine Radar
  • Radar transcribes over 130,000 podcasts with speaker labels and metadata
  • Hedge funds and AI search platforms are top-paying customers for Radar API

More from Wednesday 26 August →