Problem/Motivation

Embeddings is a key operation type used for semantic search and RAG applications. Tests ensure the provider correctly handles embedding requests.

Proposed resolution

Create kernel tests that mock the MistralClient to test embeddings functionality
Test coverage:
- testGetConfiguredModelsEmbeddings() - Verify mistral-embed model is returned
- testEmbeddings() - Embeddings with EmbeddingsInput object
- testEmbeddingsWithStringInput() - Embeddings with plain string

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

petar_basic created an issue. See original summary.

marcus_johansson’s picture

Issue tags: +AI Initiative Sprint
arianraeesi’s picture

Issue tags: +AI Product Development
petar_basic’s picture

Issue summary: View changes
Status: Active » Needs review

Added kernel tests for the Embeddings operation covering:
- Embeddings with string input
- Embeddings with EmbeddingsInput object (verifies input normalization)
- getSupportedOperationTypes() includes 'embeddings'

fago made their first commit to this issue’s fork.

fago’s picture

Assigned: petar_basic » Unassigned
Status: Needs review » Fixed

thx, MR looks good - merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

arianraeesi’s picture

Issue tags: -AI Product Development

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.