Closed CFIALeronB closed 3 weeks ago
A user story might be useful to connect this to the corresponding matching issue that @MaxenceGui has to create.
To me, this is related to
I can modify the insertion module to add a default
key to the pipeline in the pipeline_template.yaml
.
Therefore, letting the data scientist decide which pipeline should be the default pipeline.
Description
Upon application load, the Nachet Frontend fetches metadata for all available models from the Nachet Backend to populate a grid box style list for user selection. However, currently, the
selectedModel
state, which determines the model selected for seed image classification, does not automatically set to a default model as specified by the backend. This functionality is crucial for enhancing user experience by providing a pre-selected model ready for immediate use, especially for new users or in use cases where a default model is recommended for general purposes.Expected Behavior
When the metadata is retrieved from the backend, and one of the objects includes a
default
attribute set totrue
, theselectedModel
state should automatically update to this default model's endpoint name. This action should occur before any user interaction for model selection, ensuring that a default model is already selected upon the user accessing the model selection interface.Current Behavior
The
selectedModel
state only updates upon user interaction when selecting a model from the grid box list. There is no current mechanism to automatically set a default model based on backend specifications.Suggested Implementation
fetchMetadata
function to check for adefault
attribute within the fetched metadata objects.default: true
is found, update theselectedModel
state to theendpoint_name
of this default model.Additional Context
The metadata object list from the backend looks like this: