llmine_core
llmine_core copied to clipboard
Add validation message for order_index
How to reproduce
- Create an extractor chain
- Add an extractor prompt with order index 0
- Add another extractor prompt with order index 0
- Save the chain
Expected Behaviour
It should show an user friendly error message saying
There are multiple extractor prompts with same order index in the same extractor chain, please assign unique order index values for the extractor prompts.
Current Behaviour
It shows an error screen in DEBUG mode and 500 Internal Server Error page in production mode.