GPT
⚠️ This task is currently only available in the on-premise and open-source editions but not in the cloud version
"GPT" is a task that allows you to enrich or transform your data with AI using OpenAI's chat completion models.
Usage
For example, you have such a pipeline consisting of two tasks:
The first task returns a JSON with the list of items, containing an item ID and amount:
Now you can ask chat GPT to transform this data. For example, multiply all amounts by 3:
And this is what the task returns:
Of course, such a simple multiplication can be done by other tasks without the use of AI, but that's just an example and you can use ChatGPT for much more. Some other ideas:
Generate missing postal codes for the list of addresses
Clean up organization names in the list
Convert amounts from one currency to another
Rewrite texts on the fly
And so on and so on
For example, if you have a list of addresses missing postal codes like this:
With the workflow as above and that message to chat GPT:
You will get the perfect result;
Configuration
To be able to use this task, you need to configure your API Secret Key and choose a model you want to use:
The following two variables need to be placed in the file ./processor/taskrunner/.env
.
Read more about API Keys and available models in the official OpenAI reference guide.
Last updated