Tasks are the core components of the Rightbrain platform. They are automated processes that execute predefined instructions every time a large language model receives new input data. Each task includes:
{customer_review}
) that specify which part of the input to process. Referenced in the user prompt.To begin creating a task, click on the ‘Create Task’ button in the dashboard. Following this, you can give your task a name.
First, you’ll have to compose your task in the user prompt. For the purpose of our demo we’ll focus on a sentiment analysis task for a product review. We will enter the follow task in the user prompt field.
<aside> ✅
User prompt:
‘Please conduct a comprehensive sentiment analysis on the {customer_review} and describe the product image (if one is included). Verify that the image matches the product described in the review. ‘
</aside>
Here, {customer_review}
is a dynamic variable that the model replaces with actual data at runtime. The instruction also tells the model to analyse any provided image. You can choose to feed text data in string or a url as the task input.
You can also add a system prompt to provide additional context or constraints.