The How-To Guy
The How-To Guy
  • 66
  • 233 924
How to Get Structured Outputs with Ollama [Pydantic Models]
In this video, we'll explore how Ollama now supports structured outputs, making it possible to constrain a model's output to a specific format defined by a JSON schema.
[00:00:10] What is structured output and how does it relate to day-to-day development?
[00:00:24] Ollama blog post about structured outputs
[00:00:31] Explanation of structured outputs
[00:00:56] Use cases
[00:01:48] Coding examples and explanation
[00:01:51] Pydantic models explanation
[00:02:15] Pydantic models in code
[00:02:27] Chat portion
[00:03:29] Parsing response and generating output
[00:03:50] Running code
[00:04:49] Checking the results
[00:06:39] More advanced example
[00:07:53] Pydantic models code for advanced example
[00:08:49] Pass info into the chat model
Join this channel to get access to perks:
ua-cam.com/channels/ApiD66gf36M9hZanbjgNaw.htmljoin
Переглядів: 712

Відео

Build Your Own Local PDF RAG Chatbot (Tutorial)
Переглядів 4,9 тис.Місяць тому
In this tutorial, we'll explore how to create a local RAG (Retrieval Augmented Generation) pipeline that processes and allows you to chat with your PDF file(s) using Ollama and LangChain. We will also create a Streamlit app for the UI. ✅ We'll start by loading a PDF file using the "UnstructuredPDFLoader" ✅ Then, we'll split the loaded PDF data into chunks using the "RecursiveCharacterTextSplitt...
How to Install and Run LLAMA 3.1 8B model on your LAPTOP with OLLAMA
Переглядів 2,8 тис.5 місяців тому
In this video, we'll walk through setting up Ollama and pulling the new Llama 3.1 8B model! TIMESTAMPS: 0:00 - Intro 0:34 - Download Llama 3.1 8B from Ollama 1:22 - Chat with Llama 3.1 8B locally 1:50 - Create a Python pong game with Llama 3.1 8B 3:16 - Run the Python pong game 4:35 - Outro LINKS: 🔗 Meta announcement: ai.meta.com/blog/meta-llama-3-1/ 🔗 Ollama: ollama.com/ 🤗 Join this channel to...
Running GPT-4o Mini on Google Colab (And You Can Too!)
Переглядів 1 тис.5 місяців тому
#OpenAI released GPT-4o-mini today! 🚀 This video will give you a quick overview of what it is and how to use the model through an API key. We'll run the model on a @Google Colab Notebook. The model performs better than similar smaller models on several benchmarks and is much cheaper, so you can swap out your models today! TIMESTAMPS: 0:00 - Intro 0:09 - GPT-4o-mini benchmark performance overvie...
Chat with CSV files using LangChain Agent [GPT-4o]
Переглядів 3,1 тис.5 місяців тому
In this video, we'll use the @LangChain CSV agent that allows you to interact with your data through natural language queries. Here's what we'll cover: ✅ Quick introduction to LangChain ✅ Setting up the environment and installing necessary libraries ✅ Loading and preprocessing multiple CSV files ✅ Implementing the LangChain CSV agent for intelligent data analysis ✅ Demonstrating querying and ex...
How to build a Streamlit UI for Local PDF RAG [Ollama models]
Переглядів 7 тис.6 місяців тому
In this tutorial, we'll take our local Ollama PDF RAG (Retrieval Augmented Generation) pipeline to the next level by adding a sleek Streamlit UI! 🚀 We'll build on our previous PDF RAG project and create an interactive web application that allows users to upload a PDF, ask questions, and get accurate, context-aware answers. Here's what we'll cover: ✅ Quick recap of our previous RAG pipeline usin...
How to build a ROBUST AI Agent stack [CrewAI + YouTube API + Ollama + Groq + AgentOps]
Переглядів 10 тис.7 місяців тому
In this video, we'll discuss how to create #AI agents that interact with the UA-cam Data API to extract comments from any given video and generate actionable insights. Based on user feedback, these agents can help you understand and create better content. What you will learn: ✅ Installation & Setup: How to get UA-camYapperTrapper up and running with step-by-step instructions. ✅ Configuring Agen...
How to create the ULTIMATE Ollama UI app with Streamlit
Переглядів 16 тис.8 місяців тому
In this tutorial, we'll build a full-fledged Streamlit app user interface to interact with our local model using Ollama! I chose Streamlit because it is easy to get started and very composable. Before starting, download [Ollama](ollama.com/) on your local machine. Enjoy, and please leave your feedback in the comments! TIMESTAMPS: 0:00 - Introduction 0:47 - Preface 1:44 - Code directory walkthro...
How to chat with your PDFs using local Large Language Models [Ollama RAG]
Переглядів 134 тис.8 місяців тому
In this tutorial, we'll explore how to create a local RAG (Retrieval Augmented Generation) pipeline that processes and allows you to chat with your PDF file(s) using Ollama and LangChain! ✅ We'll start by loading a PDF file using the "UnstructuredPDFLoader" ✅ Then, we'll split the loaded PDF data into chunks using the "RecursiveCharacterTextSplitter" ✅ Create embeddings of the chunks using "Oll...
How to stream CrewAI Agent steps and thoughts in a Streamlit app [Code Included]
Переглядів 8 тис.9 місяців тому
In this video, I walk through creating a callback handler to stream the CrewAI agent's thoughts/steps on a Streamlit app under the `st.status` container! I used an example app where we have AI Travel Agents to whom we give our current location, destination, and time range for vacation, and they generate an itinerary for 7 days! You no longer have to use the REPL to monitor the agent process! 😃 ...
How to build the FASTEST AI chatbot with Groq and Streamlit
Переглядів 4,8 тис.9 місяців тому
Learn how to build a Streamlit AI chatbot using Groq, the fastest LLM inference API. We will go over the code for building the app to include a menu option to select the model type and also a slider to choose the tokens. LINKS Streamlit app used in the demo → groqdemo.streamlit.app/ 👨‍💻 Code in GitHub → github.com/tonykipkemboi/groq_streamlit_demo ♻️ Venv videos ↓ - ua-cam.com/video/xMDh4TYoIB...
Automate upgrading pip in a Python virtual environment [venv]
Переглядів 1,1 тис.11 місяців тому
Automate upgrading pip in a Python virtual environment [venv]
How to use ChatGPT API with Python
Переглядів 518Рік тому
How to use ChatGPT API with Python
What is the Graph protocol?
Переглядів 223Рік тому
What is the Graph protocol?
How to get $ETH for Goerli testnet development
Переглядів 394Рік тому
How to get $ETH for Goerli testnet development
How to create a Python Virtual Environment (Beginner Friendly)
Переглядів 3632 роки тому
How to create a Python Virtual Environment (Beginner Friendly)
How I made $132.10 with 83 lines of Python!
Переглядів 5182 роки тому
How I made $132.10 with 83 lines of Python!
How to get FREE testnet $MATIC tokens for development
Переглядів 6 тис.2 роки тому
How to get FREE testnet $MATIC tokens for development
How to get FREE devnet $SOL (SOLANA) and $USDC from faucets
Переглядів 10 тис.2 роки тому
How to get FREE devnet $SOL (SOLANA) and $USDC from faucets
Fix Jinja2 error in Docker getting started Tutorial
Переглядів 1292 роки тому
Fix Jinja2 error in Docker getting started Tutorial
How to get FREE $ETH tokens on Chainlink faucet for development
Переглядів 6 тис.2 роки тому
How to get FREE $ETH tokens on Chainlink faucet for development
A Decentralized Autonomous Organization Project Demo (KenyaDAO)
Переглядів 882 роки тому
A Decentralized Autonomous Organization Project Demo (KenyaDAO)
How to make a word cloud with Python [Beginner Friendly]
Переглядів 992 роки тому
How to make a word cloud with Python [Beginner Friendly]
How to scrape websites using Python and beautifulSoup
Переглядів 5372 роки тому
How to scrape websites using Python and beautifulSoup
How to Check if Two Strings are Anagram with Python Code 🔥
Переглядів 742 роки тому
How to Check if Two Strings are Anagram with Python Code 🔥
How To Create a MetaMask Wallet (Easy)
Переглядів 1822 роки тому
How To Create a MetaMask Wallet (Easy)
How to Auto Accept Facebook Friend Requests in few lines of JavaScript
Переглядів 7422 роки тому
How to Auto Accept Facebook Friend Requests in few lines of JavaScript
How To Create a Phantom Wallet
Переглядів 2113 роки тому
How To Create a Phantom Wallet
How to Unhide your NFT's on OpenSea
Переглядів 4613 роки тому
How to Unhide your NFT's on OpenSea