ai() helper, model bindings).hnsw parameters).LarAIKit services (e.g., DocumentIngestor, RAGQuery).tenant() middleware).spatie/laravel-ai)..env.composer require laraigent/larai-kit.php artisan vendor:publish --provider="LarAIgent\LarAIKit\LarAIKitServiceProvider".config/larai-kit.php (e.g., vector DB, AI providers, tenant scoping).DocumentIngestor::ingest()).app/Services/RAGService.php).$query = new RAGQuery("What's the latest feature in v2.0?");
$response = app(RAGService::class)->execute($query);
/chat).Echo.channel('chat.{userId}')
.listen('ChatStreaming', (e) => { /* handle response */ });
LarAIKit\Tenants\TenantScoper or use middleware to scope queries.public function handle(Request $request, Closure $next) {
LarAIKit::scopeToTenant($request->tenantId);
return $next($request);
}
laraigent/larai-kit for releases and Laravel AI SDK changes. Plan for periodic updates (e.g., quarterly).How can I help you explore Laravel packages today?