symfony/ai-surreal-db-message-store
SurrealDB Message Store integration for Symfony AI Chat. Persist and retrieve chat messages using SurrealDB, with guidance for HTTP-based SurrealDB setups. Part of the Symfony AI ecosystem; contribute or report issues in the main symfony/ai repo.
HttpClient with Laravel’s Http facade).embeddings or user_tags without migrations).8000). The package requires modern PHP features and SurrealDB’s HTTP interface, which may conflict with shared hosting or legacy Laravel setups.*"This package lets us leverage SurrealDB—a high-performance, real-time database—to store chatbot conversations in our Laravel app, cutting infrastructure costs and latency while keeping data flexible. It’s a lightweight, open-source bridge that integrates with Symfony’s AI tools, enabling faster development of memory-aware chatbots without vendor lock-in. Key benefits:
*"The symfony/ai-surreal-db-message-store can be adapted to work with Laravel as a SurrealDB message store adapter for AI chat applications. Here’s how to evaluate it:
Pros:
user_id, timestamp, embeddings) without migrations.HttpClient with Laravel’s Http facade.// app/Providers/AppServiceProvider.php
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Ai\SurrealDbMessageStore\SurrealDbMessageStore;
public function register()
{
$this->app->singleton('surreal.message.store', function ($app) {
$client = HttpClient::create([
'base_uri' => config('surreal.url'),
]);
return new SurrealDbMessageStore($client, config('surreal.auth'));
});
}
Cons/Risks:
SCRIPT updates. No built-in migrations or Laravel Artisan commands.MessageStoreInterface. You’ll need to:
MessageStore).How can I help you explore Laravel packages today?