llmine_core icon indicating copy to clipboard operation
llmine_core copied to clipboard

Add validation message for order_index

Open arpanpreneur opened this issue 2 years ago • 0 comments

How to reproduce

  1. Create an extractor chain
  2. Add an extractor prompt with order index 0
  3. Add another extractor prompt with order index 0
  4. 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.

arpanpreneur avatar Sep 19 '23 18:09 arpanpreneur