Skip to content

Conversation

@DonalEvans
Copy link
Contributor

The dimensions field was parsed from the service settings but never used. This commit includes the dimensions field in text embedding requests sent to JinaAI.

The dimensions field was parsed from the service settings but never
used. This commit includes the dimensions field in text embedding
requests sent to JinaAI.
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.3.0 labels Dec 12, 2025
@DonalEvans DonalEvans added >bug auto-backport Automatically create backport pull requests when merged Feature:GenAI Features around GenAI :SearchOrg/Inference Label for the Search Inference team Team:Search - Inference branch:9.2 branch:9.1 branch:8.19 labels Dec 12, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @DonalEvans, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-inference-team (Team:Search - Inference)

builder = commonSettings.toXContentFragment(builder, params);
toXContentFragmentOfExposedFields(builder, params);

if (similarity != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we move similarity and maxInputTokens to toXContentFragmentOfExposedFields

@DonalEvans DonalEvans merged commit b2ecf87 into elastic:main Dec 15, 2025
35 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.1 Commit could not be cherrypicked due to conflicts
9.2 Commit could not be cherrypicked due to conflicts
8.19 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 139413

DonalEvans added a commit to DonalEvans/elasticsearch that referenced this pull request Dec 15, 2025
elastic#139413)

The dimensions field was parsed from the service settings but never
used. This commit includes the dimensions field in text embedding
requests sent to JinaAI when set by the user.

* Add dimensions_set_by_user to JinaAIEmbeddingsServiceSettings
* Move similarity and max_input_tokens to exposed fields

(cherry picked from commit b2ecf87)

# Conflicts:
#	server/src/main/resources/transport/upper_bounds/9.3.csv
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntity.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/embeddings/JinaAIEmbeddingsServiceSettingsTests.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntityTests.java
DonalEvans added a commit to DonalEvans/elasticsearch that referenced this pull request Dec 15, 2025
elastic#139413)

The dimensions field was parsed from the service settings but never
used. This commit includes the dimensions field in text embedding
requests sent to JinaAI when set by the user.

* Add dimensions_set_by_user to JinaAIEmbeddingsServiceSettings
* Move similarity and max_input_tokens to exposed fields

(cherry picked from commit b2ecf87)

# Conflicts:
#	server/src/main/resources/transport/upper_bounds/9.3.csv
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntity.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/embeddings/JinaAIEmbeddingsServiceSettingsTests.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntityTests.java
@DonalEvans
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.2
9.1
8.19

Questions ?

Please refer to the Backport tool documentation

@DonalEvans DonalEvans deleted the use-dimensions-in-jina branch December 15, 2025 20:59
parkertimmins pushed a commit to parkertimmins/elasticsearch that referenced this pull request Dec 17, 2025
elastic#139413)

The dimensions field was parsed from the service settings but never
used. This commit includes the dimensions field in text embedding
requests sent to JinaAI when set by the user.

* Add dimensions_set_by_user to JinaAIEmbeddingsServiceSettings
* Move similarity and max_input_tokens to exposed fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending >bug Feature:GenAI Features around GenAI :SearchOrg/Inference Label for the Search Inference team Team:Search - Inference v8.19.10 v9.1.10 v9.2.4 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants