Skip to content

About

The orchestration layer for AI workflows in WordPress.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

151 Commits

Folders and files

Repository files navigation

Gregius Data

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.

At a Glance

  • 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.

What You Can Build

  • 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

Capabilities

  • 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

Requirements

  • 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)

Quick Start

1. Choose your PostgreSQL connection mode

Managed (Recommended):

Direct PostgreSQL (Alternative):

CREATE EXTENSION IF NOT EXISTS vector;

2. Install Plugin

  1. Navigate to Plugins
  2. Install and activate
  3. Navigate to Data

How It Works

  1. Content is synchronized from WordPress to PostgreSQL based on the selected post types.
  2. Retrieval operations run against PostgreSQL data.
  3. RAG requests combine retrieval evidence with the configured AI provider.
  4. Responses return answer text plus source metadata and governance context.
  5. Interaction and log subsystems capture execution details for monitoring and review.

Documentation

External Services

  • PostgreSQL service: required (self-hosted or managed provider)
  • AI providers: optional, only when configured by the site owner

Support

Development

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.

License

GPL v2 or later. See the GNU GPL v2 license for details.


Website: gregius.com · GitHub: gregius/gregius-data

About

The orchestration layer for AI workflows in WordPress.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages