Rule: Charts from Text (AI Interpolator OpenAI)
Base data:
Summary:
The Chart from Text field is taking a prompt with possible context and plotting a chart based on it using the chart module. Note that you have to prompt it fairly well for this to work correctly.
When using an OpenAI vision model, you can also use the combination of prompt and image to get the response you want. But please be aware that the vision model has a known limitation to read graphs from images.
Module needed:
AI Interpolator OpenAI
Field types to populate:
Charts (contrib Charts module).
Base Fields types to use as context:
- Text (plain)
- Text (plain, long)
- Text (formatted)
- Text (formatted, long)
- Text (formatted, long, with summary)
Extra Requirements:
You need a paid OpenAI account with API access.
You need the Charts module.
Prompting tips:
You need to write exactly what you want to chart from the source.
Extra Settings:
None
Extra Advanced Settings:
OpenAI Model
The model to use from OpenAI. Read more here about capabilities and more here about pricing. GPT-4 is a must for charts.
OpenAI Vision Image
This only shows up if you choose a model that is capable of vision. When that is chosen you can choose an image field here to use as context for your query.
OpenAI Role
If there should be pre-context or understanding on who the GPT should be, please fill out the role here. Should be short if used.
OpenAI Moderation
This runs each query through OpenAI's moderation api. It makes sure that you do not send a query to OpenAI that breaks their content policy, which could leave to account cancellation. There is almost never any reason not to uncheck this, it is free. The only reason would be if you know what you are going to send does not break the content policy and you want to speed up multiple queries.
Possible example use cases:
- Automatically get prices anf rating of some product from some webpage using the AI Interpolator ScrapingBot and then graph them.
- Move unformatted content you have in some CKEditor field, into structured data/graphs.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion