I've been using GPT-4 with the advanced data analysis feature outside of retool. As a test, I uploaded CSVs of multiple exported database tables and then asked questions of this data after giving some instructions on what the data means and how it's related.
I'm trying to recreate this same concept in Retool. Is this possible at the moment? I've tried using my instructions and references to the actual database tables as the system prompt for my AI action and then chat input from the chat component, but the request times out after a while with no answer provided. The GPT-4 directly from OpenAI handles the same question in about 3 seconds. Retool is timing out after about a minute and a half. I'm guessing I'm not inputting the data correctly or it can't handle the advanced data analysis yet in retool.
My system prompt is like this (note that {{ }} relate to data available from Retool DB queries :
I have all this disjointed data that have relationships together that I want to analyze.
This is data for a company that places electronic devices in physical locations. Sometimes these break and need to be serviced by technicians. This data shows the history of all devices and services performed
Here's what's in each sheet and how it relates to other sheets:
{{demoAccounts.data}} - a list of physical locations where demo_devices can be located
{{demoDevices.data}} - a list of all the devices and related data
{{demoStatus.data}} - the current status of given device
{{demoLocation.data}} - data on the account where the given device has been located. entries with no end date show the current account where the device resides
{{demoAppts.data}} - data on what service was performed and the cost of each
{{demoCases.data}} - the support tickets that come in when a device breaks or needs service. Every case must have one or more appointment to be resolved
{{demoTechs.data}} - these are the people that go on the service appointments to fix/service the devices.
Ingest this data and I will ask multiple questions.
Wondering if there's a way to get this all into Retool's AI action to get the same performance I get directly from GPT-4. Perhaps it's not possible because advanced data analysis isn't "enabled" on Retool or I'm just not setting up the prompt correctly.
Curious if anyone has had success with this setup.
Thanks,
JMR