Create an 'embedding' object that can be validated

Created on 12 August 2025, about 12 hours 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

Production build 0.71.5 2024