Skip to content

Conversation

@Jameswlepage
Copy link
Contributor

Fixes #130

Summary

  • add embedding DTOs/results/operations and expose helper transformers
  • extend PromptBuilder, AiClient, and the CLI with embedding-specific inputs, result helpers, and output formats
  • introduce embedding contracts in the provider layer plus an OpenAI embedding model implementation alongside updated mocks/tests/documentation

Testing

  • composer phpstan
  • composer phpunit
  • php cli.php "["Embed this doc"]" --capability=embeddings --providerId=openai --modelId=text-embedding-3-large --outputFormat=embeddings-vectors

@Jameswlepage Jameswlepage marked this pull request as ready for review November 26, 2025 21:39
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Jameswlepage <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for embedding generation

2 participants