Skip to content

Comments

Add embedding inference task specification#5934

Merged
DonalEvans merged 5 commits intomainfrom
embedding-task-specification-update
Jan 21, 2026
Merged

Add embedding inference task specification#5934
DonalEvans merged 5 commits intomainfrom
embedding-task-specification-update

Conversation

@DonalEvans
Copy link
Contributor

Related Elasticsearch PR: elastic/elasticsearch#140696

This commit adds documentation and updates the API spec to include the new embedding inference task, which has been implemented for the JinaAI service.

Additional changes in this commit:

  • Rename TextEmbedding*Result classes to DenseEmbedding*Result since they're used for both text-only and multimodal embeddings

This commit adds documentation and updates the API spec to include the
new embedding inference task, which has been implemented for the JinaAI
service.

Additional changes in this commit:
- Rename TextEmbedding*Result classes to DenseEmbedding*Result since
  they're used for both text-only and multimodal embeddings
@DonalEvans DonalEvans requested a review from a team as a code owner January 15, 2026 00:07
@DonalEvans DonalEvans added specification documentation skip-backport This pull request should not be backported labels Jan 15, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

Following you can find the validation changes against the target branch for the API.

API Status Request Response
inference.embedding ➕ ⚪ Missing test Missing test

You can validate this API yourself by using the make validate target.

"Dangling type 'inference._types:AmazonSageMakerElementType'",
"Dangling type 'inference._types:AmazonSageMakerOpenAiTaskSettings'",
"Dangling type 'inference._types:AmazonSageMakerSimilarity'",
"Dangling type 'inference._types:JinaAIElementType'",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove this now unused type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for catching that. I was originally planning to fix some other issues with the documentation (such as not documenting the element type field for JinaAI) but decided to split those changes out into a separate PR to make backporting easier.

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just not sure about the package*.json files.

"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
"license": "MIT",
"peer": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think they're strictly needed in the PR, but they get generated when preparing the docs using the steps here, so it doesn't feel wrong to include them I guess? The next person to run the commands in that quickstart document will generate the same changes anyway, I assume.

@DonalEvans DonalEvans merged commit 835c887 into main Jan 21, 2026
12 checks passed
@DonalEvans DonalEvans deleted the embedding-task-specification-update branch January 21, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants