Transforming API Output Quality with Assertions // Vikram Rangnekar // MLOps Podcast #259 clip
Key Takeaways
The video discusses using assertions to transform API output quality with Large Language Models (LLMs), ensuring outputs adhere to specified data types and enabling early failure detection and correction.
Full Transcript
I didn't quite understand the idea of these assertions and building out the API basically being able to validate the type yes and how you said all right well one abstraction is what they were doing with DSP but another abstraction is saying this can now be an API and so when we give whatever output to someone it comes in inherent with the idea of it's going to be in the type that you specify is that what I understand yes so there are two types of assertions one is you put them um you assert a type essentially you say you know while you're creating the function signature you just say this output type is string or string array or number or Boolean or whatever or you know and and the second type of assertion is like a custom function where you you want to like like actually do something with the output you might just you might actually call another llm if you really want you be like hey is this is this good enough if not throw like a error you know essentially and then the first LM can correct itself right so it's it's it's a function called on this input output value and uh and this can be done either when the whole value is available you can wait till the end of value you might have like multiple key values that are outputed so you know in which case then you know you might want to look at the whole value or you can do it as the value streaming out because it's not Json it if you can somehow validate it maybe you know you're looking for some prefix or something before so you can chop up every line that's coming wait for a line to come in then then kind of look at it with the regx and saying you know sorry you know you're messing up sort of thing yeah and this early failure is is great because now firstly the assertions concept makes it easy to code cuz now you have all of this like captured within your uh dpy program and when you initially put in the examples and you run the bootstrap all of this gets engaged right so the error correction all that's so your outputs all the traces are high quality in between because the assertions have ensured so in production less of the stuff happens right so cuz youve already fine-tuned it down to the correct what you need in terms of code you're not saying please add a dash in front of you know like you have an assertion it's explained that so you got high quality examples you just save those in there and the LM knows oh I know what this guy needs [Music] TR
Original Description
Ax a New Way to Build Complex Workflows with LLMs // MLOps Podcast #259 with Vikram Rangnekar, Software Engineer at Stealth.
Vikram explains the concept of assertions, which ensure that outputs adhere to specified data types like strings, arrays, numbers, or booleans. He further elaborates on the flexibility of custom functions within assertions to perform real-time checks and automatic error handling. This means that developers can streamline their coding process, significantly reduce bugs, and maintain high-quality output by embedding these checks right within their development cycle.
// Abstract
Ax is a new way to build complex workflows with LLMs. It's a typescript library based on research done in the Stanford DSP paper. Concepts such as prompt signatures, prompt tuning, and composable prompts help you build RAG and agent-powered ideas that have till now been hard to build and maintain. Ax is designed for production usage.
// Bio
Vikram builds open-source software. Currently working on making it easy to build with LLMs. Created Ax a typescript library that abstracts over all the complexity of LLMs, it is based on the research done in the Stanford DSP paper. Worked extensively with LLMs over the last few years to build complex workflows. Previously worked as a senior software engineer with LinkedIn on Ad Serving.
// MLOps Jobs board
https://mlops.pallet.xyz/jobs
// MLOps Swag/Merch
https://mlops-community.myshopify.com/
// Related Links
The unofficial DSPy framework. Build LLM-powered Agents and "Agentic workflows" based on the Stanford DSP paper: https://axllm.dev
All the Hard Stuff with LLMs in Product Development // Phillip Carter // MLOps Podcast #170: https://youtu.be/DZgXln3v85s
--------------- ✌️Connect With Us ✌️ -------------
Join our slack community: https://go.mlops.community/slack
Follow us on Twitter: @mlopscommunity
Sign up for the next meetup: https://go.mlops.community/register
Catch all episodes, blogs, newsletters, and more: https://
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from MLOps.community · MLOps.community · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Our 1st MLOps Meetup // Luke Marsden // MLOps Meetup #1
MLOps.community
Remote Collaboration as a Data Scientist
MLOps.community
MLOps Manifesto with Luke Marsden from Dotscience
MLOps.community
MLOps lifecycle description
MLOps.community
What Does Best in Class AI/ML Governance Look Like in Fin Services? // Charles Radclyffe // MLOps #2
MLOps.community
Life purpose and too many spreadsheets
MLOps.community
Explainability, Black boxes and EU white paper on reproducibility
MLOps.community
Hierarchy of Machine Learning Needs // Phil Winder // MLOps Meetup #3
MLOps.community
Automatically Retrain Machine Learning Models? Are best practices worth it?
MLOps.community
Building an MLOps Team? Key ideas to keep in mind
MLOps.community
Hierarchy of MLOps Needs
MLOps.community
Bare necessities for getting an ML model into production
MLOps.community
MLOps and Monitoring
MLOps.community
How Phil Winder got into Data Science and Software Engineering
MLOps.community
Provenance and Reproducibility in Machine Learning; what is it and why you need it?
MLOps.community
Friction Between Data Scientists and Software Engineers
MLOps.community
MLOps Problems in different size companies
MLOps.community
ML tooling in large companies
MLOps.community
ML Platforms - The build vs buy question
MLOps.community
ML Services Gateway at SurveyMonkey
MLOps.community
Message buses, Async and sync architecture
MLOps.community
MLOps #4: Shubhi Jain - Building an ML Platform @SurveyMonkey
MLOps.community
Hybrid Data Science Teams @SurveyMonkey
MLOps.community
How do you handle ML version control at SurveyMonkey
MLOps.community
Doing ML with Personal Information
MLOps.community
Evolution of the ML feature store @SurveyMonkey
MLOps.community
Developing a Machine Learning Feature Store
MLOps.community
Auto retrain ML models is not the question
MLOps.community
3 key parts to Machine Learning monitoring
MLOps.community
MLOps Meetup #6: Mid-Scale Production Feature Engineering with Dr. Venkata Pingali
MLOps.community
MLOps meetup #5 High Stakes ML: Active Failures, Latent Factors with Flavio Clesio
MLOps.community
MLOps: Airflow Pros and Cons
MLOps.community
Specific challenges in Machine Learning
MLOps.community
Current State Of Machine Learning
MLOps.community
Humans in the Loop are a defining factor in Machine Learning
MLOps.community
Learning from real life Machine Learning failures
MLOps.community
Survivorship Bias in machine learning tutorials
MLOps.community
Swiss Cheese model in Machine Learning
MLOps.community
Resume driven development in Machine learning & software engineering
MLOps.community
Who has the highest standards in ML?
MLOps.community
Venkata Pingali of Scribble Data Thoughts on the Current State of Machine Learning
MLOps.community
Dependable data and being able to Trust in your Data with Venkata Pengali of Scribble Data
MLOps.community
Speed, Trust, Evolution and Scale in MLOps
MLOps.community
More difficult transition for data scientists to become ML engineers
MLOps.community
How many models in prod til I need a dedicated ML platform?
MLOps.community
Deeper thinking from data scientists around platform blackholes
MLOps.community
Checkpointing, metadata, and confidence in your data
MLOps.community
Adjacent usecases and multistep feature engineering
MLOps.community
Standardization of Machine Learning tools like in Software Engineering with Venkata Pingali
MLOps.community
Reproducability flaws in end to end Machine Learning debugging
MLOps.community
3rd wave of data scientists
MLOps.community
MLOps meetup #7 Alex Spanos // TrueLayer 's MLOps Pipeline
MLOps.community
MLOps Meetup #8 Optimizing Your ML Workflow with Kubeflow 1.0
MLOps.community
Are Kubeflow and Airflow complementary?
MLOps.community
Why Kubeflow gained so much traction=open community
MLOps.community
Who decides the dirrection of Kubeflow
MLOps.community
What do Kubeflow and Arrikto do and how do they work together?
MLOps.community
Versioning your ML steps with Kubeflow
MLOps.community
Machine Learning Lifecycles//Perception vs Reality
MLOps.community
Kubeflow vs SageMaker in Machine Learning
MLOps.community
More on: LLM Engineering
View skill →Related Reads
📰
📰
📰
📰
OpenAI Agents SDK: Building Production AI Agents (2026)
Dev.to · Carlos Oliva Pascual
NestJS Agent Skills for Claude Code and Codex
Dev.to · amir taherkhani
How to Build a Production AI Agent That Won't Delete Your Database
Dev.to · Abdul Rehman
AI Agents in Production: Why 88% of Enterprise Pilots Fail (2026)
Dev.to · Carlos Oliva Pascual
🎓
Tutor Explanation
DeepCamp AI