Search by

ahmednour / eloquent-rag

ahmed-nour-dev

The Eloquent synchronization layer for Laravel AI's RAG stack — model lifecycle sync, dependency tracking, invalidation, chunk management, and rebuild tooling.

v0.1.0-beta.1 2026-09-15 12:58 UTC

This package is auto-updated.

Last update: 2026-09-15 14:44:06 UTC


README

The Eloquent synchronization layer for Laravel AI's RAG stack.

This package does not implement vector search. It integrates Eloquent models with Laravel's AI and vector capabilities, providing model lifecycle synchronization, dependency tracking, invalidation, chunk management, and rebuild tooling.

Status

All five phases of the build plan are complete: dependency-graph spike, document/chunk model, Eloquent lifecycle, Laravel AI integration, CLI & operability, and release readiness. v0.1.0-beta.1 is tagged and published on Packagist. CI (see .github/workflows/tests.yml) runs the acceptance suites against real MariaDB 11.7 and PostgreSQL+pgvector service containers across the supported PHP/Laravel matrix, with a guard that fails the build if either suite silently skips; see docs/benchmarks.md and the acceptance tests under tests/Integration/ for exactly what that does and doesn't prove. It's tagged as a beta: correctness-critical paths are implemented and covered by unit/feature tests plus the real-backend acceptance suites, but the package has no production usage history yet, so treat it accordingly.

Requirements

Target Supported Requirement
MariaDB 11.7+ Laravel 13.29+ (vector query builder API)
PostgreSQL + pgvector Laravel 13.x
Plain MySQL 8.x No native vector backend — not supported

See docs/backend-support.md for the full picture (including why the check is stricter than Laravel's own) or ADR-0003 for the original decision record.

Installation

composer require ahmednour/eloquent-rag

(Published on Packagist as of v0.1.0-beta.1 — a beta with no production usage history yet. See docs/installation.md for the full setup.)

Documentation

Roadmap

Development followed a phased plan: dependency-graph spike → document/chunk model → Eloquent lifecycle → Laravel AI integration → CLI & operability → release. All five phases are complete. See .orca/drops/eloquent-rag-build-plan.md for the full plan and docs/spikes/0001-dependency-graph.md for the spike that validated the riskiest part of the design before any of it was built.

License

MIT. See LICENSE.