- 47
- 143 560
YourTechBud Codes
Canada
Приєднався 25 гру 2020
I help people build awesome software on the Cloud.
The Cloud and the Serverless space is constantly evolving.
Here are the things I talk about:
1] System Design
2] Backend Development
3] All things Serverless
Content Creator | Quality Tech Videos | UA-camr | Geek | Serverless Junkie | Nerd for Life
The Cloud and the Serverless space is constantly evolving.
Here are the things I talk about:
1] System Design
2] Backend Development
3] All things Serverless
Content Creator | Quality Tech Videos | UA-camr | Geek | Serverless Junkie | Nerd for Life
Should You Adopt Pydantic AI? Deep Dive + Real Use Cases!
Introducing Pydantic AI: The new Agentic Challenger!
--------------------------------
From the Creator:
1] Discord: discord.gg/hP96KbwvHt
Join us to discuss ideas, projects and get started with your journey to AI Mastery.
--------------------------------
What we will be covering?
1] What is PydanticAI?: Get a clear understanding of this revolutionary framework and how it can supercharge your AI projects! 💻
2] How does it work?: We'll take you under the hood to see the magic happen, so you can harness its power for yourself! 🔧
3] Real-World Applications: Be amazed by the cool new features PydanticAI brings to the table and learn how to build practical applications using it! 📈
--------------------------------
References:
1] The Code: github.com/YourTechBud/ytb-practical-guide/tree/master/pydanticai-101
2] Docs: ai.pydantic.dev/
4] Issue to fix the tool calling chaos (Please get this merged): github.com/pydantic/pydantic-ai/pull/142
--------------------------------
Chapters:
00:00 - Introduction
01:47 - What is PydanticAI all about?
03:06 - The project sturcture
04:49 - The humble beginnings
07:41 - Structured responses
13:58 - Validating data in structured responses
19:07 - The magic of dependency injection
23:52 - Tool calling
30:06 - Designing the final solution
36:42 - The final implementation
48:38 - Should we use PydanticAI?
#PydanticAI #GenAI #AIAgents #Python #GenerativeAI #AI
--------------------------------
From the Creator:
1] Discord: discord.gg/hP96KbwvHt
Join us to discuss ideas, projects and get started with your journey to AI Mastery.
--------------------------------
What we will be covering?
1] What is PydanticAI?: Get a clear understanding of this revolutionary framework and how it can supercharge your AI projects! 💻
2] How does it work?: We'll take you under the hood to see the magic happen, so you can harness its power for yourself! 🔧
3] Real-World Applications: Be amazed by the cool new features PydanticAI brings to the table and learn how to build practical applications using it! 📈
--------------------------------
References:
1] The Code: github.com/YourTechBud/ytb-practical-guide/tree/master/pydanticai-101
2] Docs: ai.pydantic.dev/
4] Issue to fix the tool calling chaos (Please get this merged): github.com/pydantic/pydantic-ai/pull/142
--------------------------------
Chapters:
00:00 - Introduction
01:47 - What is PydanticAI all about?
03:06 - The project sturcture
04:49 - The humble beginnings
07:41 - Structured responses
13:58 - Validating data in structured responses
19:07 - The magic of dependency injection
23:52 - Tool calling
30:06 - Designing the final solution
36:42 - The final implementation
48:38 - Should we use PydanticAI?
#PydanticAI #GenAI #AIAgents #Python #GenerativeAI #AI
Переглядів: 4 833
Відео
Python Setup, Simplified: A Complete "uv" Tutorial!
Переглядів 1,1 тис.День тому
Supercharge Your Python Workflows with uv! From the Creator: 1] Discord: discord.gg/hP96KbwvHt Join us to discuss ideas, projects and get started with your journey to AI Mastery. Are you tired of wrestling with Python environments and dependencies? Feeling like setting up your projects is more of a chore than a creative process? Say goodbye to endless setup frustrations and hello to a streamlin...
How to Build Your First RAG Pipeline (Step-by-Step Guide)
Переглядів 1,1 тис.21 день тому
Unlock the power of RAG and build your first functional RAG pipeline! From the Creator: 1] Discord: discord.gg/hP96KbwvHt Join us to discuss ideas, projects and suggest topic for future streams. What’s in it for you? 1️⃣ Get the Scoop on RAG: Dive into what RAG is, how it works, and why it’s the go-to for smarter, context-aware AI. 2️⃣ Build Your Own RAG Pipeline: Follow along as we create a fu...
Helm is Failing You! Why I Switched To KubeVela And You Should Too!
Переглядів 5773 місяці тому
Tired of Helm? Discover how KubeVela can transform your Kubernetes deployments with a more modular and efficient approach! Are you frustrated with Helm slowing down your DevOps process? In this video, I break down why Helm is no longer the best tool for Kubernetes deployments and introduce you to a game-changing alternative: KubeVela. If you've been struggling with Helm’s complexity and limitat...
Make Your AI Agents SMARTER With These Agentic Patterns!!
Переглядів 6913 місяці тому
Learn these Agentic Design Patterns to make you AI apps more reliable. The real value of AI Agents lies in conversations. But how can one model conversations reliably? In this video will look at a few powerful Agentic patterns you can use to make your AI apps more deterministic and reliable. In this video we will: 1] Why letting AI agents converse before answering us helps make AI responses bet...
AI Agents in Action: Solving Real-World Problems with AutoGen Workflows
Переглядів 2,2 тис.4 місяці тому
Explore how you can build AI apps reliable using AUTOGEN Workflows. AutoGen helps simplify the process of creating agentic software. In this video we will create custom workflows/state machines using AutoGen with a Local Model to help me organize my life. In this video we will: 1] Write some python code to make custom workflows using AutoGen. 2] Understand the role of GroupChat and GroupChatMan...
AutoGen DeepDive: Building Conversational Agents for Kubernetes!
Переглядів 2,9 тис.Рік тому
AutoGen DeepDive: Building Conversational Agents for Kubernetes!
I Fixed Kubernetes Autoscaling using Machine Learning | ft. Keda & Prophet
Переглядів 1,4 тис.Рік тому
I Fixed Kubernetes Autoscaling using Machine Learning | ft. Keda & Prophet
SAVE Your Database With REDIS!!! Write Through Cache Explained!
Переглядів 1,4 тис.Рік тому
SAVE Your Database With REDIS!!! Write Through Cache Explained!
Why Istio Ambient Mesh is the Next Big Thing For Microservices !!!
Переглядів 1,7 тис.Рік тому
Why Istio Ambient Mesh is the Next Big Thing For Microservices !!!
I Spent 48 HOURS on Cloud Functions and Discovered THIS!!!
Переглядів 8752 роки тому
I Spent 48 HOURS on Cloud Functions and Discovered THIS!!!
How Cloud Run Can Help You Save A TON OF MONEY?!
Переглядів 9282 роки тому
How Cloud Run Can Help You Save A TON OF MONEY?!
Dapr: The Future of Microservice Communication
Переглядів 2,6 тис.2 роки тому
Dapr: The Future of Microservice Communication
Cut Your K8s Development Time in HALF With TELEPRESENCE!!
Переглядів 7202 роки тому
Cut Your K8s Development Time in HALF With TELEPRESENCE!!
Simplify Database Migrations Using PRISMA MIGRATE!!!
Переглядів 10 тис.2 роки тому
Simplify Database Migrations Using PRISMA MIGRATE!!!
How REDIS Can Save You a Ton Of MONEY?!
Переглядів 2,1 тис.2 роки тому
How REDIS Can Save You a Ton Of MONEY?!
Get Started with ISTIO in 3 Easy Steps!!
Переглядів 1,3 тис.2 роки тому
Get Started with ISTIO in 3 Easy Steps!!
How Traffic Management Works in Istio?!
Переглядів 1,1 тис.2 роки тому
How Traffic Management Works in Istio?!
Why You Shouldn't Use K8s Autoscaling?!!
Переглядів 2,2 тис.2 роки тому
Why You Shouldn't Use K8s Autoscaling?!!
Why your Microservices need ArgoCD?!
Переглядів 1,1 тис.2 роки тому
Why your Microservices need ArgoCD?!
Simple Hack to INCREASE Microservice UPTIME
Переглядів 8022 роки тому
Simple Hack to INCREASE Microservice UPTIME
The RIGHT Way To CONFIGURE Microservices!!!
Переглядів 7632 роки тому
The RIGHT Way To CONFIGURE Microservices!!!
Get started with Kubernetes within 10 mins!!!
Переглядів 1 тис.2 роки тому
Get started with Kubernetes within 10 mins!!!
How Does Kubernetes Work?! K8s Explained!
Переглядів 9143 роки тому
How Does Kubernetes Work?! K8s Explained!
Why your Microservices needs Kubernetes?!
Переглядів 4,6 тис.3 роки тому
Why your Microservices needs Kubernetes?!
Using GraphQL to make Microservices Communicate!!
Переглядів 3,1 тис.3 роки тому
Using GraphQL to make Microservices Communicate!!
These Microservice Patterns Are Absolutely INSANE!!!
Переглядів 3,2 тис.3 роки тому
These Microservice Patterns Are Absolutely INSANE!!!
Look at Simon Willison's use of inline scripting with uv using llms: it means you can AI create and run a script without any project setup etc. This creates the "45 second python project" for any small tasks you need to do... no more searching for web tools etc, no venvs to setup, etc
"Excited about RAG? So am I! 🚀 If you're looking to kickstart your AI journey or connect with a community of like-minded learners, join my Discord: discord.gg/hP96KbwvHt. P.S. Apologies for the video quality on this one-I forgot to hit the record button! 🙃"
"Excited about Pydantic? So am I! 🚀 If you're looking to kickstart your AI journey or connect with a community of like-minded learners, join my Discord: discord.gg/hP96KbwvHt. P.S. Apologies for the video quality on this one-I forgot to hit the record button! 🙃"
bro such a good, useful deepdive! Subscribed :)
Glad you liked it!
Wow, Perfect explanation, Great talent
I'm glad you found it to be helpful.
Hi, has anyone tried to run this video with OpenAI. I run it and an error shown: openai.RateLimitError. I run only with 4o-mini, it's quite strict here. I am changing to Gemini with Google Console due to the lack of computation, but it requires Visa card with quite annoying set up. I will update if there is something soon.
Sorry to hear you are having issues with this. I usually self host all my models so haven't faced this. But I bet this is super annoying. Do let me know what you finally end up using.
Great video, loved it!! But I still don't understand why Pydantic (for the love of god) calls the LLM AFTER a tool call!
I swear. Hoping and praying that the PR gets merged soon!
proabably easiest to just declare a Literal of the allowed options instead of leaving the intent as str
but good to show result_validators
That's a great idea. You should be able to use that for such use cases. The goal was to highlight all the important PydanticAI features I love.
Great post. Trying to run Inferix. File "uvloop/loop.pyx", line 2039, in create_connection File "uvloop/loop.pyx", line 2016, in uvloop.loop.Loop.create_connection ConnectionRefusedError: [Errno 61] Connection refused
I'm sorry to hear that. Do make sure your .env is configured the right way and that the server is running. Inferix does require ollama to be running in the backend
Another great video, thanks for sharing. I really like your presentation style.
Awww... I really appreciate your kind words. I'm glad you found the video to be helpful!
Hi, thanks a lot for amazing content. I've learned so much and it was entertaining! I'm gonna try to implement the same thing as my first agent project.
Go for it!
Would be great to see you do a video about langgraph. Your experience with k8s orchestration would be fascinating to hear your take on multi agent design
Absolutely, Langgraph is coming in next.
@YourTechBudCodes 😍😍😍
Thank you for being a bright personality brother! Been going through a dark time and it's inspiring to see your enthusiasm.
I'm sorry to hear that. But I'm glad I could help.
Irritating
Ayi
Amazing explanation. I am a non tech guy and trying to build agents. This is really helpful 😍
I'm glad I could help!
Bro you could have a drinking game where everyone takes a shot every time you say 'task' 😂
Holy smokes! Why didn't I think of that? Lol!
Great video! I dunno if you take requests, but I've recently been using the ell library for calling models instead of openai sdk and ell is SO much better. It replaces the chatprompttemplate json with a simple ell.system( )/ell.user( )/ell.assistant( ). And it's got a bunch of really cool features to cut down a lot of boat. Would really recommend you check it out!
A friend recently suggested ell as well. I've got to check it out too. My first impression was that it's super minimalistic and doesn't force too many opinions/conventions down your throat. I really like that. But I think I have fallen love with Pydantic's request_validator, dependency injection and the ModelRetry exception. I know. It's just two tiny tiny features, but they are so handy!!! Mahn there is so much going on. Such exciting times!
crewAI has type-safety too, and it has a router method for triggering diff functions...soooo why pydantic and not crew?
I'll come clean for this one, I haven't checkout CrewAI in a really long time so I won't be able to make a fair comparison. But, I do think it's important to have options. Specially when each option comes with it's own opinion. The key is to find the option which resonates with you. I think that's crew ai for you. But how about this? Let me try crewai out and come up with a stream comparing crewai, langgraph and pydantic. Maybe we can throw autogen in there as well?
Yes I would like to see this comparison
Absolutely. Have added it to my discord!
great intro-video but the quality seems stuck at 480p (?). Btw " why not use langchain " is kind off the point of Pydantic-AI : there are little to no abstractions making it very suitable for serious projects. Think oldskool basic legoblocks vs a themed star-wars lego package. The first allows you to build just about anything, starting from the absolute basics (Pydantic AI) while the star-wars one is pre-themed for the most part (LangChain), making it less suitable for custom & reliable solutions. ps. kudos for the LangGraph shoutout. Favorite stack is Pydantic-AI + LangGraph for orchestration.
Sorry about the video quality. I forgot to hit the record button. Still new to this whole streaming business and am trying to figure stuff out. > Why not use langchain? Uhm, I didn't mean to say that. I still use the basic utility functions langchain gives us. It is the best ecosystem out there. This probably got cut out in post. But totally agree with your thoughts there. > kudos, for the Langgraph shout out Oh absolutely. Langgraph is still my favorite. PydanticAI doesn't handle orchestration that well, while Langgraph has no opinion on what you put inside it's nodes. I should probably plan a stream on the differences and how you can use these together. Would love to see you on my streams, I have a feeling you can help me improve the content for everyone!
@@YourTechBudCodes appreciate your response. I'm a dev/enterpreneur building while learning these new paradigm shifts. It can be overwhelmin at times so it's crucial to work together. Ill keep an eye out for your stream cheers!
you make it sound like its such a big issue. installing deps and creating venvs is a one time process. unnecessary hype. niche use cases.
This channel will blow up. Trust me ❤
This makes me happy! Thanks a ton for the kind words, bud!
I came to all the same conclusions in my research haha. I even use structured table formatting with vector embedding in a SQL table, with fine tuning of the model and chunked
pgvector for the win!
extremely helpfull video
Glad you found it helpful
i am getting sam eproblem please help
Im so sorry to hear that. What problem would that be?
You need to tell people that the Agents are not free tho.
Welcome to capitalism!
Hey how about a scenario where we are using our own packages as dependency from our custom private repo (things which happen in a system) will the UV will still be efficient? currently we are using a bash script over pipenv which authorizes the request to download and install the dependencies.
So, uv does support the use of custom registries. Ref: github.com/astral-sh/uv/issues/6421 I don't see how things would slow down when you are using a private registry. Sure, maybe the download speeds wouldn't be as great as using a CDN, but uv's speed gains are not entirely because of the use of a custom registry. Most of the time, you would be using packages from a filesystem cache bypassing the registry altogether. And, there are several more optimizations which make uv so awesome. Would highly recommend checking out Charlie's video (link in the description) to know the deets.
@YourTechBudCodes Thanks for the response! I'll definitely look into it and explore the possibility of moving from pip to UV-it’s a significant leap. A lot of things have been streamlined too, which is exciting. I was actually introduced to UV by @arjanacodes, and it's been a game-changer ever since.
Yikes, the audio on this one got a little rebellious! 🎙😅 But hey, I'm on a mission to tame the tech gremlins and make these streams better every week. 🚀 Catch me live every Tuesday-come hang out and let me know if I'm leveling up or if the gremlins are still winning! 😜
Semantic Satiation
Hey, that ain't no reason for forgetting how to spell Pikachu!
is this english?
Supposed to be... Am I that bad? Ouch!
Great video! 🤗But honestly, you should rename the chapter 'Why is RAG so important' to 'Guide to Pikachu's Attack Types'! 😆
Haha. Priotities!!!
Froooonteeeeend
oh yeah! I have something cool in mind for this, but it will probably take a lil time.
You kind of over reactor, this is needed to attract people grow great bro
I'm not sure if I'm supposed to take that as a compliment. But thanks.... I guess?
Bro, less movement in the vid!
Noted!
Wait...how do you know about my uncle!
Haha. That shall remain a mystery!
Great Video!
Glad you enjoyed it
Helped a lot ! Thanks :)
I'm glad you found it helpful.
Hi, very nice tutorial, would you do a follow up to show can the data can be passed across agents ?
Yeah. I've been thinking about doing something on that. Is there any specific use case you are trying to achieve?
Nice shirt (and video too) ❤🎉
Priorities!!!
Big fan Would love to work with you Please give job 🙏🏻
Sure. Once I reach 50k subscribers. Lol
Omg I am a huge fan of you 🎉🎉 ur whole videos are something else to define ...
Thanks for your kind words. I'm glad you like these videos.
@@YourTechBudCodes thanks for your reply..... Can we expect a live youtube video on building a good microsservice arch... Project 🙂🙂
Mahn thats a tough one. Anything specific you are looking for?
@@YourTechBudCodes understood that.... iam expecting a good system design of one project in micro service arch with better solution from your side 🙂
acting acting acting so you communicate in real life like this?
It's a childhood dream of mine. Just can't let go of it.
if you do less acting and focus more on content.
I'm afraid that is not possible... sorry about that
Great breakdown of agent design patterns and yet its so fun to watch! 😀
Haha. I'm glad my cringe-worthy jokes haven't gotten to you yet.
@@YourTechBudCodes Give it time! It would be amazing to see code walkthrough videos as well though!
Hey, Can you suggest some courses and resources to master the concept. I am in final year B. Tech and this is what I want to pursue further. Also tell what are the future career prospects in Agentic AI?
Deeplearning.ai has some short courses on Autogen and some other tools you might find helpful. But things are evolving too fast to rely on a bunch of courses. You gotta put on the hat of a researcher. Always remember, these are just tools to help solve a problem. Get into the art of solving problems using the tools available at your disposal. That's what will help grow your career. All the best, buddy!
Absolutely LOVED the video! Super informative and had me hooked from start to finish. The visuals were on point-especially that planner agent giving some serious Optimus Prime vibes 😎. Oh, and FYI, already liked, shared, and hit that subscribe button! Can’t wait for the next one to dive even deeper into this awesomeness!
Wow. Really appreciate the kind words. This helps me keep going. Thanks!
This is soo very intuitive!!
I'm glad you found it helpful
Amazing!
Glad you liked it.
I need part 2!!
Haha. Glad you liked it. I just posted a part two last week. Do check it out and let me know your thoughts.
@@YourTechBudCodes thank you! I will check it out. I realized that we need our own Open AI key, may I ask why do we need it if we are running our own inference server and open source model?
The openai sdk is annoying. it forces you to provide one. Just put a dummy key and you'll be fine.