← Back to blogYouTube Video

Published November 6, 2026

How Semantic Caching Works and How to Use It

Can't play the video or having issues? Here's the direct link.

Description

Book a call: https://calendly.com/itshassanaziz/discuss-a-project ==== ==== ==== WHAT'S THIS VIDEO ABOUT? If your chatbot keeps answering "how do I reset my password" over and over, you're paying for the same LLM response every time. This video shows how semantic caching fixes that: an embedding model turns each question into a vector, a vector database (pgvector, Pinecone, Chroma) checks whether a similar question was already answered, and the cached reply goes back to the user without calling the LLM. I also cover pairing it with prompt caching, and why it works well for support and FAQ agents but is a poor fit for coding agents. Like, subscribe, & leave me a comment if you have a specific request. Thanks. ==== ==== ==== RESOURCES My Prompt Caching Video: https://youtu.be/oEJuPIljJ3k TIMESTAMPS 00:00 The Repeat Question Problem 00:40 Who Should Use Semantic Caching 01:35 Semantic Caching Flow Example 03:32 Exact vs Semantic Caching 04:16 Embeddings & Semantic Similarity 06:15 How It Works Under the Hood 08:13 Building Your Caching Layer 09:21 Combining With Prompt Caching 11:06 Best Use Cases for Caching 12:28 Quick Recap & Wrap-Up WATCH THESE NEXT https://www.youtube.com/watch?v=MKUXfWmhBXc https://www.youtube.com/watch?v=HxrrgbRI8_U https://www.youtube.com/watch?v=2TVhf3UvhBw ==== ==== ==== WHY LISTEN TO ME? Hey everyone, I'm Hassan. I run an AI/Automation and Software Development agency at hassandev.me. I've built custom workflows that save clients 20+ hours every week. I've helped businesses solve CRM issues that directly led to an increase of $430k CAD in quotations. I've scaled platforms to 100,000 users and beyond. I also enjoy making content and sharing what I learn with the world. I love to yap on YouTube, as you can see. I'm very active here, and on X, so if you want to reach out to me, leave a comment or DM me on X. MY LINKS Website: https://www.hassandev.me Portfolio: https://www.hassandev.me/work YouTube: https://www.youtube.com/@itshassanaziz?sub_confirmation=1 My Book: https://www.hassandev.me/designing-websites X / Twitter: https://x.com/intent/user?screen_name=nothassanaziz Instagram: https://www.instagram.com/hassansdev/ LinkedIn: https://www.linkedin.com/in/hassan-aziz-web

Share this article

Hassan Aziz pointing up

Dude, you’re at the bottom of my landing page.

Just book a call already if you’re that interested.

You scrolled all the way here.