-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
[Inference API] Prevent inference endpoints from being deleted if they are referenced by semantic text #110399
Conversation
… by a semantic text field
Pinging @elastic/ml-core (Team:ML) |
Hi @maxhniebergall, I've created a changelog YAML for you. |
…tic/elasticsearch into semanticTextDeleteInference
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.
Thanks for the quick work here! I think we should take a second pass and consider whether we want to call out semantic text specifically in method names and error messages. We may add inference_id
to other field types in the future (such as dense_vector
or sparse_vector
).
...ugin/core/src/main/java/org/elasticsearch/xpack/core/ml/utils/SemanticTextInfoExtractor.java
Outdated
Show resolved
Hide resolved
...ugin/core/src/main/java/org/elasticsearch/xpack/core/ml/utils/SemanticTextInfoExtractor.java
Outdated
Show resolved
Hide resolved
...ugin/core/src/main/java/org/elasticsearch/xpack/core/ml/utils/SemanticTextInfoExtractor.java
Outdated
Show resolved
Hide resolved
"properties": { | ||
"inference_field": { | ||
"type": "semantic_text", | ||
"inference_id": "%s" |
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.
Nit: indentation is off here
...e-service-tests/src/javaRestTest/java/org/elasticsearch/xpack/inference/InferenceCrudIT.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...e-service-tests/src/javaRestTest/java/org/elasticsearch/xpack/inference/InferenceCrudIT.java
Outdated
Show resolved
Hide resolved
...in/java/org/elasticsearch/xpack/inference/action/TransportDeleteInferenceEndpointAction.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/elasticsearch/xpack/core/inference/action/DeleteInferenceEndpointAction.java
Show resolved
Hide resolved
Co-authored-by: David Kyle <david.kyle@elastic.co> Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
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.
LGTM
# Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java # x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/DeleteInferenceEndpointAction.java
Following on #109123