Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

How to Search PDFs Without Writing Search Logic in Laravel

Laravel News 1 min read

In the sixth episode of the Ship AI with Laravel series, Laravel News and Harris Raftopoulos demonstrate how to enable full-text search across PDF documents without building traditional search logic. The tutorial explores using vector stores and embeddings to index and query PDF content directly from a Laravel application.

The episode covers:

  • Comparing DIY vs hosted vector store options
  • Creating a store with a simple Artisan command
  • Uploading documents and automatically indexing them
  • Generating sample Markdown files for testing
  • Setting up and saving the store ID
  • Adding a file search tool to the AI agent
  • Updating the agent's instructions to leverage the new capability

By the end of the video, viewers learn how to build an AI-powered search that understands the contents of entire PDFs, eliminating the need for complex search algorithms. The approach uses Laravel 13 and the Laravel AI SDK to seamlessly integrate vector search into any Laravel project.

React