Give WordPress developers a foundation to build AI-powered features.
Gregius Data is an open-source orchestration layer for AI workflows in WordPress.
It connects WordPress content with PostgreSQL-backed retrieval and AI provider workflows using familiar WordPress patterns.
WordPress remains your source of truth. PostgreSQL runs alongside as a secondary execution layer for retrieval and vector operations.
- Sync selected content from WordPress to PostgreSQL
- Retrieve relevant context semantically
- Generate grounded responses with your configured AI provider
- Return response, source attribution, and governance metadata
No migration of your WordPress database. No lock-in to a single AI provider. No need to rebuild your retrieval stack.
- Grounded site assistants that can answer from your published content
- RAG (Retrieval Augmented Generation) content experiences with source attribution
- Recommendation Engines that can suggest relevant content based on semantic similarity
- Custom AI integrations via REST API, hooks, and WP-CLI
- RAG workflow with retrieval, governance, answer synthesis, and source attribution
- RAG Assistant block: a retrieval-augmented chat assistant you can place on any page
- Provider-based architecture for database backends and AI services
- Selective sync from WordPress to PostgreSQL for chosen post types
- Interaction tracking and logging for operational visibility
- Retry queue and health checks for resilience
- Orchestration-first design: retrieval, model selection, and policy controls in one workflow
- Multi-provider AI support: OpenAI, Anthropic, Google Gemini, DeepSeek, Cohere, and TypeSafe for evaluation — when configured
- Grounded retrieval layer: semantic retrieval designed for RAG quality and source attribution
- Developer integration surface: REST API, WP-CLI, and hooks for customization
- Abilities API integration: register capabilities discoverable by AI agents on WordPress 6.9+
- Data ownership stays with you: your primary content remains in WordPress
- WordPress: 6.9 or higher
- PHP: 8.2 or higher
- Connection mode (choose one):
- Supabase (managed, recommended)
- Direct PostgreSQL 12+ with pgvector (self-hosted/direct path; requires PDO + pdo_pgsql)
Managed (Recommended):
Direct PostgreSQL (Alternative):
CREATE EXTENSION IF NOT EXISTS vector;- Navigate to Plugins
- Install and activate
- Navigate to Data
- Content is synchronized from WordPress to PostgreSQL based on the selected post types.
- Retrieval operations run against PostgreSQL data.
- RAG requests combine retrieval evidence with the configured AI provider.
- Responses return answer text plus source metadata and governance context.
- Interaction and log subsystems capture execution details for monitoring and review.
- Full Documentation: View docs folder
- Documentation Index: docs/README.md
- Architecture: See subsystem architecture docs in
/docs/ - Abilities
- Hooks
- RAG
- Providers
- REST API
- Sync Process
- Schema Management
- Plugin Lifecycle
- Retry Queue
- Interactions
- WP-CLI
- Vectors
- PostgreSQL service: required (self-hosted or managed provider)
- AI providers: optional, only when configured by the site owner
- Community Support: WordPress.org Forum
- Issues: GitHub Issues
- Documentation: Full documentation in
/docs/folder
composer install # install dev dependencies
composer test # unit + integration tests (no database needed)
composer test:wp # WordPress integration tests (needs MySQL)
composer lint # PHP_CodeSniffer (WordPress Coding Standards)See CONTRIBUTING.md for the full contribution workflow.
GPL v2 or later. See the GNU GPL v2 license for details.
Website: gregius.com · GitHub: gregius/gregius-data