x-laravel/embedding
Laravel package that auto-generates and stores vector embeddings for Eloquent models via laravel/ai. Supports single or multi-slot embeddings with field-based triggers, queued generation per slot, driver-based similarity search across many databases, and optional reranking.
laravel/ai for reranking).title separately from body).Adopt if:
title and body separately for different use cases).Look elsewhere if:
For Executives: "This package lets us ship AI-powered features—like smarter search, recommendations, or chatbot responses—without building or managing custom vector infrastructure. It integrates natively with Laravel, so our team can focus on business logic while handling embeddings automatically in the background. For example, we could add semantic search to our support tickets or product catalogs in weeks, not months. It also supports advanced databases like PostgreSQL for high-performance use cases, and we can monitor embedding health through Laravel Pulse. The cost? Zero upfront infrastructure; we pay only for the AI reranking services we choose to use."
For Engineers: *"This solves the ‘how do I store and query embeddings in Laravel?’ problem elegantly. Key benefits:
title and body separately, or combine them. Only re-embed changed fields.--chunk and --dry-run safety checks.Tradeoffs: PHP-side similarity isn’t as fast as native DB search, but the package makes it easy to switch drivers later. For now, it’s a low-risk way to experiment with embeddings without over-engineering."*
How can I help you explore Laravel packages today?