Knowledge base
Tips and tricks Best practice guides, FAQ & more
Find tutorials, guides and use case examples in the
Learning center
The AI Validate Block is designed to validate AI-generated responses against expected outcomes, which is crucial in testing environments where accuracy and consistency are paramount.
This block can be adapted to various testing scenarios, allowing for mass validation and facilitating the automation of tests across multiple applications and platforms. Fully expanded, the AI Validate Block shows the following properties:
The green input connector in the header is used to trigger the block to start executing.
The green output connector in the header is triggered when the block execution is complete.
The title of the block (“AI Validate”) can be changed by double-clicking on it and typing in a new title.
The Input field is used to enter the information supplied by your GenAI.
The Expected field is used to specify the anticipated result.
This green output connector triggers if the input field does not match the expected field.
This connector can be used to branch the execution of the flow depending on whether the validation is successful or fails.
The Default Timeout sets the timeout value to 30 seconds if checked. If unchecked, the timeout follows the value specified in the flow settings.
Created 26.4.24
©2024, Leapwork. All rights reserved.