YourTechBud Codes
YourTechBud Codes
  • 47
  • 143 560
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
Переглядів: 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!!
Dagger: The Universal CI/CD Tool
Переглядів 3,7 тис.2 роки тому
Dagger: The Universal CI/CD Tool
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?!
We Have Been Using Hasura WRONG!!!
Переглядів 1,5 тис.2 роки тому
We Have Been Using Hasura WRONG!!!
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!!!
3 REASONS to start USING ISTIO!!!
Переглядів 1,2 тис.2 роки тому
3 REASONS to start USING ISTIO!!!
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!!!

КОМЕНТАРІ

  • @IdPreferNot1
    @IdPreferNot1 9 годин тому

    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

  • @YourTechBudCodes
    @YourTechBudCodes 2 дні тому

    "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! 🙃"

  • @YourTechBudCodes
    @YourTechBudCodes 2 дні тому

    "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! 🙃"

  • @juliovac2113
    @juliovac2113 2 дні тому

    bro such a good, useful deepdive! Subscribed :)

  • @satyasanthijayam3487
    @satyasanthijayam3487 2 дні тому

    Wow, Perfect explanation, Great talent

  • @private-talkshow
    @private-talkshow 3 дні тому

    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.

    • @YourTechBudCodes
      @YourTechBudCodes 2 дні тому

      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.

  • @VenkatT-w8x
    @VenkatT-w8x 3 дні тому

    Great video, loved it!! But I still don't understand why Pydantic (for the love of god) calls the LLM AFTER a tool call!

    • @YourTechBudCodes
      @YourTechBudCodes 3 дні тому

      I swear. Hoping and praying that the PR gets merged soon!

  • @jeffrey5602
    @jeffrey5602 3 дні тому

    proabably easiest to just declare a Literal of the allowed options instead of leaving the intent as str

    • @jeffrey5602
      @jeffrey5602 3 дні тому

      but good to show result_validators

    • @YourTechBudCodes
      @YourTechBudCodes 3 дні тому

      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.

  • @Draco78767
    @Draco78767 3 дні тому

    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

    • @YourTechBudCodes
      @YourTechBudCodes 3 дні тому

      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

  • @kenchang3456
    @kenchang3456 3 дні тому

    Another great video, thanks for sharing. I really like your presentation style.

    • @YourTechBudCodes
      @YourTechBudCodes 3 дні тому

      Awww... I really appreciate your kind words. I'm glad you found the video to be helpful!

  • @jozefmatus7929
    @jozefmatus7929 4 дні тому

    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.

  • @andydataguy
    @andydataguy 5 днів тому

    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

  • @andydataguy
    @andydataguy 5 днів тому

    Thank you for being a bright personality brother! Been going through a dark time and it's inspiring to see your enthusiasm.

    • @YourTechBudCodes
      @YourTechBudCodes 4 дні тому

      I'm sorry to hear that. But I'm glad I could help.

  • @heythere6390
    @heythere6390 5 днів тому

    Irritating

  • @big4ca
    @big4ca 5 днів тому

    Amazing explanation. I am a non tech guy and trying to build agents. This is really helpful 😍

  • @ajinkyapuranik9377
    @ajinkyapuranik9377 5 днів тому

    Bro you could have a drinking game where everyone takes a shot every time you say 'task' 😂

  • @ajinkyapuranik9377
    @ajinkyapuranik9377 5 днів тому

    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!

    • @YourTechBudCodes
      @YourTechBudCodes 5 днів тому

      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!

  • @recker6433
    @recker6433 5 днів тому

    crewAI has type-safety too, and it has a router method for triggering diff functions...soooo why pydantic and not crew?

    • @YourTechBudCodes
      @YourTechBudCodes 5 днів тому

      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?

    • @danielblanco8519
      @danielblanco8519 5 днів тому

      Yes I would like to see this comparison

    • @YourTechBudCodes
      @YourTechBudCodes 5 днів тому

      Absolutely. Have added it to my discord!

  • @awakenwithoutcoffee
    @awakenwithoutcoffee 6 днів тому

    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.

    • @YourTechBudCodes
      @YourTechBudCodes 5 днів тому

      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!

    • @awakenwithoutcoffee
      @awakenwithoutcoffee 5 днів тому

      @@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!

  • @UTube-nigga
    @UTube-nigga 8 днів тому

    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.

  • @Noumaan_Ahamed
    @Noumaan_Ahamed 9 днів тому

    This channel will blow up. Trust me ❤

    • @YourTechBudCodes
      @YourTechBudCodes 8 днів тому

      This makes me happy! Thanks a ton for the kind words, bud!

  • @thingX1x
    @thingX1x 10 днів тому

    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

  • @mukukamulenga6269
    @mukukamulenga6269 10 днів тому

    extremely helpfull video

  • @Sanjay54251
    @Sanjay54251 10 днів тому

    i am getting sam eproblem please help

    • @YourTechBudCodes
      @YourTechBudCodes 10 днів тому

      Im so sorry to hear that. What problem would that be?

  • @SHEMBOBKIPRUTO
    @SHEMBOBKIPRUTO 11 днів тому

    You need to tell people that the Agents are not free tho.

  • @Kashiskthakur
    @Kashiskthakur 12 днів тому

    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.

    • @YourTechBudCodes
      @YourTechBudCodes 11 днів тому

      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.

    • @Kashiskthakur
      @Kashiskthakur 11 днів тому

      @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.

  • @YourTechBudCodes
    @YourTechBudCodes 12 днів тому

    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! 😜

  • @ex3aliber
    @ex3aliber 16 днів тому

    Semantic Satiation

    • @YourTechBudCodes
      @YourTechBudCodes 11 днів тому

      Hey, that ain't no reason for forgetting how to spell Pikachu!

  • @Unkoshermeatovski
    @Unkoshermeatovski 21 день тому

    is this english?

  • @AlkaKumariTech
    @AlkaKumariTech 23 дні тому

    Great video! 🤗But honestly, you should rename the chapter 'Why is RAG so important' to 'Guide to Pikachu's Attack Types'! 😆

  • @Brichijs
    @Brichijs 25 днів тому

    Froooonteeeeend

    • @YourTechBudCodes
      @YourTechBudCodes 23 дні тому

      oh yeah! I have something cool in mind for this, but it will probably take a lil time.

  • @Farm2Code
    @Farm2Code 27 днів тому

    You kind of over reactor, this is needed to attract people grow great bro

    • @YourTechBudCodes
      @YourTechBudCodes 25 днів тому

      I'm not sure if I'm supposed to take that as a compliment. But thanks.... I guess?

  • @personofearth1541
    @personofearth1541 Місяць тому

    Bro, less movement in the vid!

  • @AlexanderGrauKardan
    @AlexanderGrauKardan Місяць тому

    Wait...how do you know about my uncle!

  • @Ian-t6n9h
    @Ian-t6n9h Місяць тому

    Great Video!

  • @NationalIntern
    @NationalIntern 2 місяці тому

    Helped a lot ! Thanks :)

  • @rsjain1978
    @rsjain1978 3 місяці тому

    Hi, very nice tutorial, would you do a follow up to show can the data can be passed across agents ?

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Yeah. I've been thinking about doing something on that. Is there any specific use case you are trying to achieve?

  • @bikachu_
    @bikachu_ 3 місяці тому

    Nice shirt (and video too) ❤🎉

  • @kavishshah6441
    @kavishshah6441 3 місяці тому

    Big fan Would love to work with you Please give job 🙏🏻

  • @dilshadjr8889
    @dilshadjr8889 3 місяці тому

    Omg I am a huge fan of you 🎉🎉 ur whole videos are something else to define ...

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Thanks for your kind words. I'm glad you like these videos.

    • @dilshadjr8889
      @dilshadjr8889 3 місяці тому

      @@YourTechBudCodes thanks for your reply..... Can we expect a live youtube video on building a good microsservice arch... Project 🙂🙂

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Mahn thats a tough one. Anything specific you are looking for?

    • @dilshadjr8889
      @dilshadjr8889 3 місяці тому

      @@YourTechBudCodes understood that.... iam expecting a good system design of one project in micro service arch with better solution from your side 🙂

  • @einfacherkerl3279
    @einfacherkerl3279 3 місяці тому

    acting acting acting so you communicate in real life like this?

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      It's a childhood dream of mine. Just can't let go of it.

  • @einfacherkerl3279
    @einfacherkerl3279 3 місяці тому

    if you do less acting and focus more on content.

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      I'm afraid that is not possible... sorry about that

  • @AlkaKumariTech
    @AlkaKumariTech 3 місяці тому

    Great breakdown of agent design patterns and yet its so fun to watch! 😀

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Haha. I'm glad my cringe-worthy jokes haven't gotten to you yet.

    • @AlkaKumariTech
      @AlkaKumariTech 3 місяці тому

      ​@@YourTechBudCodes Give it time! It would be amazing to see code walkthrough videos as well though!

  • @rishabhchoudhary0
    @rishabhchoudhary0 3 місяці тому

    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?

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      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!

  • @swatiraikwar5105
    @swatiraikwar5105 3 місяці тому

    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!

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Wow. Really appreciate the kind words. This helps me keep going. Thanks!

  • @abhishekkhanna1349
    @abhishekkhanna1349 3 місяці тому

    This is soo very intuitive!!

  • @annuralli5300
    @annuralli5300 3 місяці тому

    Amazing!

  • @ianng8243
    @ianng8243 3 місяці тому

    I need part 2!!

    • @YourTechBudCodes
      @YourTechBudCodes 3 місяці тому

      Haha. Glad you liked it. I just posted a part two last week. Do check it out and let me know your thoughts.

    • @ianng8243
      @ianng8243 2 місяці тому

      @@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?

    • @YourTechBudCodes
      @YourTechBudCodes 21 день тому

      The openai sdk is annoying. it forces you to provide one. Just put a dummy key and you'll be fine.