symfony/ai-surreal-db-store
SurrealDB vector store integration for Symfony AI Store. Use SurrealDB’s vector indexing and search (MTREE/HNSW) to store embeddings and perform similarity queries, leveraging SurrealQL vector functions for retrieval in Symfony AI applications.
spatie/laravel-symfony).surrealdb/surrealdb) directly and wrap it in a Laravel service class for tighter control.symfony/ai) and SurrealDB PHP client (surrealdb/surrealdb).VectorStoreInterface) for loose coupling.pgvector, Elasticsearch) can be migrated via SurrealQL INSERT/SELECT or custom ETL scripts.laravel-ai/vector + PostgreSQL).pgvector, Elasticsearch) for your workload.laravel-surreal-vector) or use Symfony AI directly?StoreInterface; this package implements it for SurrealDB.VectorStore) for loose coupling.App\Services\SurrealVectorStore).SELECT * FROM old_store INTO SURREALDB).Scout or custom vector logic).spatie/laravel-circuitbreaker) to fall back to the old store if SurrealDB fails.StoreInterface, so Laravel can use it via dependency injection.public function register()
{
$this->app->bind(\Symfony\AI\Store\VectorStoreInterface::class, function ($app) {
return new \Symfony\AI\Store\SurrealDbStore(
new \Surreal\Client($app['config']['surrealdb.dsn']),
$app['config']['surrealdb.vector_index']
);
});
}
DEFINE INDEX for HNSW with METRIC=cosine).docker run surrealdb/surrealdb).1000 inserts, 1000 nearest-neighbor searches) vs. current solution.WHERE metadata.field = 'value'), deletion, and batch operations.spatie/laravel-retryable).VectorStored, VectorDeleted).Artisan commands to export/import).How can I help you explore Laravel packages today?