Based on: https://www.drupal.org/project/ai/issues/3525296

To enable optional inclusion of raw embedding vectors in Search API AI results, implement the following:

  1. Add an optional method getRawEmbeddingFieldName() to the VDB provider plugin interface.

This change allows retrieving raw vectors alongside search hits for efficient re‑ranking without extra database queries.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nikro created an issue. See original summary.

nikro’s picture

Assigned: nikro » Unassigned
Status: Active » Needs review
nikro’s picture

Issue summary: View changes
joshhytr’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @nikro, this looks good to me.

I'll wait until https://www.drupal.org/project/ai/issues/3525296 merges before I merge this into a development branch.

codebymikey’s picture

joshhytr’s picture

Hi @codebymikey,

This has indeed merged but there isn't a tag I can target with composer.json on the drupal/ai project yet.