Create an 'embedding' object that can be validated

Created on 12 August 2025, 22 days ago

Problem/Motivation

Currently \Drupal\ai_search\EmbeddingStrategyInterface::getEmbedding() returns an array. In \Drupal\ai\Base\AiVdbProviderClientBase::validateRetrievedEmbedding() we go through each array key and validate each one, throwing exceptions.

We can create an Embedding object and validate it using our existing validation tools.

Steps to reproduce (required for bugs, but not feature requests)

Please provide information like AI modules enabled, which AI provider, browser, etc.

Proposed resolution

Remaining tasks

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

πŸ“Œ Task
Status

Active

Version

1.2

Component

AI Search

Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @kim.pepper
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia
  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    Added an Embedding object, a validator and unit test. Needs to be integrated into \Drupal\ai\Base\AiVdbProviderClientBase::validateRetrievedEmbedding() still.

  • Pipeline finished with Failed
    22 days ago
    Total: 303s
    #570731
  • Pipeline finished with Success
    22 days ago
    Total: 291s
    #570745
  • Pipeline finished with Failed
    22 days ago
    Total: 187s
    #570840
  • Pipeline finished with Failed
    22 days ago
    #570846
  • Pipeline finished with Failed
    22 days ago
    #570908
Production build 0.71.5 2024