Skip to content

Tracking: Implement Embedding Support #962

Open
3 of 6 issues completed
Open

Description

@jeffpaul

Overview

This issue tracks the implementation of embedding support in the WordPress AI plugin. Existing embedding work (#683, #891, #943) should be divided into smaller, independently reviewable PRs rather than combining foundational architecture and user-facing features into large feature PRs.

Proposed Work

Each PR should generally:

  • Branch independently from the develop branch
  • Be reviewable and mergeable on its own
  • Avoid including user-facing features before the required foundation is available
  • Include focused tests and documentation

Related PRs may be stacked when a direct implementation dependency makes that more practical.

Testing

Local models, including Ollama, should be supported as a practical way to test embedding workflows without ongoing provider API costs.

Embeddings generally only need to be regenerated when their source content changes. Similarity calculations and other operations using stored embeddings should not require additional provider requests.

Links to the relevant issues and PRs should be added to the checklist above as the work is defined.

Activity

  1. added this to the 1.4.0 milestone on Aug 20, 2026
  2. added
    [Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issues
    on Aug 20, 2026
  3. moved this from Triage to In progress in WordPress AI Roadmapon Aug 20, 2026
  4. dkotter commented on Aug 20, 2026

    @dkotter
    Contributor

    Note that the first part of this (pulling in embedding support from the PHP AI Client) was done in #892. After further discussion though, some changes were requested on the PHP AI Client side and we have WordPress/php-ai-client#274 opened now to address that. Once those changes are approved, we'll want to bring those back into the AI plugin and re-enable the loading of this that was removed in #946.

  5. self-assigned this
    on Aug 20, 2026
  6. ColinM-sys commented on Aug 22, 2026

    @ColinM-sys
    Contributor

    Following up from #943 — I tested php-ai-client#274 end-to-end against a local Ollama (full report: WordPress/php-ai-client#274 (comment)). Unit suite green on PHP 7.4–8.5, 36/36 live cases pass, and the no-model auto-selection that #274 removes is reproducible on trunk.

    One concrete item it surfaces for the first checklist entry: #274 removes usingProvider() and usingModelPreference() from EmbeddingBuilder in favour of a required usingProviderModel(). generate_embeddings() in includes/helpers.php calls both removed methods, and the semantic-search callers in #891 / #943 pass model_preference => [ $model ], so re-enabling embedding support once #274 is re-vendored (the #946 follow-up) means moving that wrapper and its callers to an explicit provider + model.

    I'd like to take:

    Both as small PRs off develop, tested against Ollama. Will link them here as they open.

  7. pinned this issue on Aug 26, 2026
  8. 4 remaining items

  9. moved this from In discussion / Needs decision to In progress in WordPress AI Roadmapon Aug 31, 2026
  10. reopened this on Sep 2, 2026
  11. moved this from Done to In discussion / Needs decision in WordPress AI Roadmapon Sep 2, 2026
  12. moved this from In discussion / Needs decision to In progress in WordPress AI Roadmapon Sep 2, 2026
  13. moved this from Done to In discussion / Needs decision in WordPress AI Roadmapon Sep 16, 2026
  14. modified the milestones: 1.4.0, 1.5.0 on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issues

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions