Skip to content
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

Merged
merged 13 commits into from
Jul 3, 2024

Conversation

maxhniebergall
Copy link
Member

Following on #109123

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v8.15.0 labels Jul 2, 2024
@maxhniebergall maxhniebergall added >enhancement :ml Machine learning and removed needs:triage Requires assignment of a team area label labels Jul 2, 2024
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Jul 2, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Collaborator

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

@maxhniebergall maxhniebergall added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jul 2, 2024
Copy link
Contributor

@Mikep86 Mikep86 left a 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).

"properties": {
"inference_field": {
"type": "semantic_text",
"inference_id": "%s"
Copy link
Contributor

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

@Mikep86 Mikep86 requested a review from carlosdelest July 2, 2024 21:35
maxhniebergall and others added 2 commits July 3, 2024 08:44
Co-authored-by: David Kyle <david.kyle@elastic.co>
Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
Copy link
Member

@davidkyle davidkyle left a 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >enhancement :ml Machine learning Team:ML Meta label for the ML team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants