symfony/ai-vektor-store
Vektor vector store integration for Symfony AI Store, connecting your Symfony AI applications to the Vektor vector database for storage and retrieval.
count capability on stores lets us surface collection sizes to users and admins — useful for usage dashboards, quota/cost estimation, pagination UX, and ingestion monitoring without maintaining a parallel bookkeeping table.VectorDocumentInterface, a cleaner contract for documents stored/retrieved from a store. This is a positive signal for longevity and interchangeability — code written against the interface is less likely to break if we swap backends later, lowering the cost of a future build-vs-buy reversal.count) for admin dashboards, pagination, or ingestion health checks — now supported natively.VectorDocumentInterface / count contracts may still shift.For Executives: "This package enables us to build AI-powered search and recommendations in-house using open-source tools, eliminating cloud costs and vendor lock-in. By integrating Vektor with Symfony AI, we can deliver features like smart document search or personalized suggestions faster and cheaper than third-party services. The latest release adds index-size reporting (so we can show usage and forecast costs internally) and a cleaner document abstraction that makes it easier to switch vector backends later if we ever need to — reducing lock-in risk on our own side too. It’s a strategic move to future-proof our AI capabilities while keeping data control internal. Early adoption aligns with [AI/ML initiative] and reduces dependency on [cloud provider]."
For Engineering (Laravel Teams):
*"The symfony/ai-vektor-store bridge lets us add vector search to Laravel with minimal setup, using Redis or PostgreSQL as the backend. It’s lightweight, MIT-licensed, and works with Symfony AI—ideal for prototyping or deploying vector stores where we need low overhead and PHP ecosystem compatibility.
What changed in v0.14.0 (small, non-breaking): stores now expose count capabilities (cheap index-size checks for dashboards/pagination/ingestion monitoring) and a new VectorDocumentInterface to standardize the documents we put in and get out. No deprecations, no migration work expected, but the interface is new — pin the version and expect minor API churn before 1.0.
Trade-offs:
count removes a class of bespoke bookkeeping code; the document interface makes a future backend swap cheaper.count in the PoC’s admin view to validate ingestion, and code against VectorDocumentInterface rather than concrete types so a later move to Qdrant/pgvector stays cheap. If successful, we can explore replacing Laravel Scout for vector-based search or integrating with RAG pipelines."*For Developers: *"If you’re using Symfony AI in Laravel, this package lets you add vector search with minimal effort. It’s like Elasticsearch for embeddings, but PHP-native and self-hosted. Perfect for:
VectorDocumentInterface for the documents you store, and use the new count capability to report index size (handy for "N results indexed" UI, batching loops, and re-index detection) without an extra table.
Downside: You’ll need to manage Redis or PostgreSQL, and the package is very new (no production battle-testing yet). Expect to write custom Laravel integrations (e.g., service providers, Scout drivers), and pin your version — the API is still moving toward 1.0."*How can I help you explore Laravel packages today?