-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[Inference API] Use dimensions field in JinaAI text_embedding requests #139413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
|
Hi @DonalEvans, I've created a changelog YAML for you. |
|
Pinging @elastic/search-inference-team (Team:Search - Inference) |
| builder = commonSettings.toXContentFragment(builder, params); | ||
| toXContentFragmentOfExposedFields(builder, params); | ||
|
|
||
| if (similarity != null) { |
There was a problem hiding this comment.
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
💔 Backport failed
You can use sqren/backport to manually backport by running |
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
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
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
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
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.