Skip to content

Improve error message for too few examples provided #936

@sroecker

Description

@sroecker

If you create a new skill (or modify any of the existing ones) and add less than 5 examples check fails with an error message like this:

$ ilab diff
compositional_skills/writing/freeform/poetry/haiku/qna.yaml
ERROR 2024-04-19 14:24:55,912 generate_data.py:636 Validation error in compositional_skills/writing/freeform/poetry/haiku/qna.yaml on .seed_examples: [ <parsed dict> ] is too short

It is not clear what is too short. It would be helpful to output "list is too short" or "too few examples, you need to provide a minimum of five.".

Metadata

Metadata

Assignees

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