Skip to content

Conversation

davidkyle
Copy link
Member

For a sparse embedding model created with the ml trained models APIs

PUT _inference/sparse_embedding/my-sparse
{
  "service": "elasticsearch",
  "service_settings": {
    "model_id": "custom-text-expansion-model",
    "num_allocations": 1,
    "num_threads": 1
  }
}

@davidkyle davidkyle added >enhancement :ml Machine learning Feature:NLP Features and issues around NLP v8.16.0 labels Aug 28, 2024
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Aug 28, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

}

@Override
public void start(Model model, ActionListener<Boolean> listener) {
Copy link
Member Author

Choose a reason for hiding this comment

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

These deleted methods were duplicates of the same in the base class BaseElasticsearchInternalService

}

@Override
public void isModelDownloaded(Model model, ActionListener<Boolean> listener) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Duplicate of the base class method

service.parseRequestConfig(randomInferenceEntityId, taskType, settings, Set.of(), modelListener);
}

// Valid model variant
Copy link
Member Author

Choose a reason for hiding this comment

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

These deleted cases were repeated tests

createTextExpansionModel(modelId);
putModelDefinition(modelId, BASE_64_ENCODED_MODEL, RAW_MODEL_SIZE);
putVocabulary(
List.of("these", "are", "my", "words", "the", "washing", "machine", "is", "leaking", "octopus", "comforter", "smells"),
Copy link
Member

Choose a reason for hiding this comment

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

unfortunate

@davidkyle davidkyle merged commit e3e562f into elastic:main Aug 29, 2024
15 checks passed
dakrone pushed a commit to dakrone/elasticsearch that referenced this pull request Aug 30, 2024
…ervice (elastic#112270)

For a sparse embedding model created with the ml trained models APIs
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
…ervice (elastic#112270)

For a sparse embedding model created with the ml trained models APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Feature:NLP Features and issues around NLP :ml Machine learning Team:ML Meta label for the ML team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants