Laravel & AI

Watch and track your favorite playlist.

Curated by: Laravel News (16 videos)


Currently Playing: Search Entire PDFs with Zero Search Logic - Ship AI with Laravel EP6

Episode 6 of Ship AI with Laravel, a series on Laravel News where we build a full AI platform using Laravel 13 and the Laravel AI SDK. Last episode we built semantic search from scratch with embeddings and pgvector. Great for FAQ articles and full control over the data. But what if your documentation is bigger than that? Hundreds of pages of policies, product manuals, full PDFs? In this episode we use the other approach. Upload your docs to the AI provider, let them handle the chunking and embedding, and use the SDK's FileSearch tool to query it. No similarity math on our side. Just upload and search. I build an Artisan command that creates a vector store called "SupportAI Knowledge Base" and uploads five markdown documents covering return policy, shipping, billing FAQ, account security, and product warranty. The store ID gets saved to .env and config so the rest of the app can reference it. We add FileSearch to the support agent alongside the KnowledgeSearch tool from Episode 5 so the agent has both options. Then we update the instructions so it picks the right one. KnowledgeSearch for quick FAQ-style questions, FileSearch for detailed policy lookups. I test it with a question about damaged items and the agent pulls the exact 48-hour reporting requirement from the actual policy doc. Then I throw a combined question with an order number and a policy question, and the agent uses OrderLookup and FileSearch in the same response. One thing to know before you ship this to production: FileSearch is token-heavy and requires billing credits with the provider since they're hosting and querying the vectors for you. ⭐ GitHub: https://github.com/harris21/ship-ai-with-laravel 👉 Full series playlist: https://www.youtube.com/playlist?list=PLsmlCYEtWNI_plnKPPO13XjfDJoMIfhLN 👉 Timestamps 00:00 Recap and Goal 00:30 DIY vs Hosted Vector Stores 01:06 Command to Create Store 01:44 Uploading Docs and Indexing 02:55 Create Sample Markdown Files 04:04 Run Setup and Save Store ID 05:12 Add File Search Tool 06:38 Update Agent Instructions 07:44 Build a Test Route 09:02 Rate Limits and Billing Credits 09:34 Policy Answer Demo 10:11 Multi Tool Order Plus Policy 11:21 Updating the Vector Store 11:55 Wrap Up and Next Episode ---------------------------------------------------------------------- ➫ Business Inquiries: hello@laravel-news.com ---------------------------------------------------------------------- JOIN OUR WEEKLY LARAVEL NEWSLETTER 👉 https://laravel-news.com/newsletter ----------------------------------------------------------------------


Tracks in this Playlist