Skip to content

Managed Data Designer - validation failed - service version mismatch? #420

@webmaxru

Description

@webmaxru

Hello!

I try to run this notebook:
https://github.com/NVIDIA/GenerativeAIExamples/blob/main/nemo/NeMo-Data-Designer/managed-service-tutorials/getting-started/1-the-basics.ipynb

All works and validates OK until I call managed service itself here
preview = data_designer_client.preview(config_builder)

Then it raises:

DataDesignerConfigValidationError         Traceback (most recent call last)
...
raise DataDesignerConfigValidationError(f"‼️ Config validation failed!\n{e}") from None
     30     else:
     31         raise DataDesignerClientError(f"‼️ Something went wrong!\n{e}") from None

DataDesignerConfigValidationError: ‼️ Config validation failed!
Error code: 422 - {'detail': [{'type': 'missing', 'loc': ['body', 'config', 'columns', 0, 'function-after[assert_expression_valid_jinja(), ExpressionColumnConfig]', 'expr'], 'msg': 'Field required', 'input': {'name': 'product_category', 'drop': False, 'column_type': 'sampler', 'sampler_type': 'category', 'params': {'values': ['Electronics', 'Clothing', 'Home & Kitchen', 'Books', 'Home Office'], 'weights': None, 'sampler_type': 'category'}, 'conditional_params': {}, 'convert_to': None}}, {'type': 'extra_forbidden', 'loc': ['body', 'config', 'columns', 0, 'function-after[assert_expression_valid_jinja(), ExpressionColumnConfig]', 'column_type'], 'msg': 'Extra inputs are not permitted', 'input': 'sampler'}, {'type': 'extra_forbidden', 'loc': ['body', 'config', 'columns', 0, 'function-after[assert_expression_valid_jinja(), ExpressionColumnConfig]', 'sampler_type'], 'msg': 'Extra inputs are not permitted', 'input': 'category'}, {'type': 'extra_forbidden', 'loc': ['body', 'config', 'columns', 0, 'function-after[assert_expression_valid_jinja(), ExpressionColumnConfig]', 'params'], 'msg': 'Extra inputs are not permitted',

Seems like total mismatch of what was sent and what is expected. Could it be client/server version mismatch? I use nemo-microservices v1.5.0

cc: @mikeknep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions