symfony/ai-typesense-store
Typesense Store integrates the Typesense vector database with Symfony AI Store, enabling vector indexing and similarity search via Typesense’s vector search API. Part of the Symfony AI ecosystem, with issues and PRs handled in the main Symfony AI repo.
StoreInterface.symfony/ai).typesense/typesense).weaviate-client, pinecone-client)."This package enables us to deploy AI-powered features faster and at a fraction of the cost by integrating Typesense—a high-performance, open-source vector database—into our Laravel/Symfony apps. Here’s why it’s a strategic move:
"This is a drop-in vector store for Symfony AI that abstracts Typesense’s complexity. Here’s how it fits into our stack:
StoreInterface—same pattern as Redis or PostgreSQL stores. Example integration:
$store = new TypesenseStore(
new TypesenseClient(['nodes' => ['http://typesense.example.com:8108']]),
'products'
);
$results = $store->find($query->setVector($embedding)->setLimit(5));
HNSW parameters) without changing app code.
Proposal: Use this for our [AI Search MVP], then evaluate scaling needs (e.g., sharding, cloud vs. self-hosted). Let’s start with a POC using our existing Symfony AI setup and measure query latency against our SLOs.""This package bridges your embeddings to production systems seamlessly. Key benefits for our workflow:
$store->add($embedding, ['category' => 'electronics', 'price' => 99.99]);
$neighbors = $store->find($query->setVector($query_embedding)->setLimit(3));
category=electronics) with vector similarity for precise retrieval. Example: Find "smartphones under $500" with semantic relevance.sentence-transformers) → Store in Typesense → Retrieve top-5 similar products for a recommendation system. This enables A/B testing of retrieval strategies without changing the backend.""Typesense is a lightweight, scalable vector database that fits our infrastructure:
users_na, users_eu).How can I help you explore Laravel packages today?