Skip to content
Scenario with Array...
 
Notifications
Clear all

Scenario with Array Aggregator only writing the first collection of 3

9 Posts
2 Users
0 Reactions
3 Views
Matt_Cooper
(@matt_cooper)
Posts: 5
Active Member
Topic starter
 

When asking your question, please include:

Hi there,

I'm using Airtable and GPT-3 together for analysis.

My Airtable database contains information on startups, including their company updates.

I'm setting up a workflow to retrieve a startup and its associated updates, then process them to extract specific financial data.

The setup looks like this:

When I run it, the aggregator appears as expected, consolidating 3 bundles into a single bundle containing a collection of 3 records (as shown below):

However, when the data is sent to the GPT module, it only processes the first collection instead of all three.

Does anyone have any suggestions on what I need to adjust?

Thanks in advance!

:footprints: The steps you have taken
:camera_flash: Relevant screenshots
:link: Any links you have
[ Code { "and": "JSON", "in" : "code block"} ]
:x: Exclude Personal Information.

 
Posted : 02/01/2023 10:59 pm
Callinetic
(@callinetic)
Posts: 13
Active Member
 

Hi,

Could you please clarify your expected outcome?
Are you looking to execute the OpenAPI app three times, once for each item in your array?

Best regards,
Glenn - Callinetic

 
Posted : 03/01/2023 8:07 am
Matt_Cooper
(@matt_cooper)
Posts: 5
Active Member
Topic starter
 

Hi Glenn, thanks for responding. I'd prefer to have them consolidated into a single response, with each collection handled within one operation.

Like this:

Alternatively, this format would also be acceptable (CSV):

Submitted,Runway in months,Current monthly burn,Monthly Recurring Revenue,Revenue YTD,Lifetime Revenue,Number of customers
January 2, 2023",11,“$85,000”,$0,$0,$0,0
September 27, 2022",13,“$100,000”,$0,$0,$0,0
September 27, 2022",13,“$100,000”,$0,$0,$0,0

Thanks for your assistance!

 
Posted : 03/01/2023 9:11 am
Callinetic
(@callinetic)
Posts: 13
Active Member
 

I'm not entirely sure if I'm understanding your question correctly.

However, I suspect you're looking to process each bundle individually. If that's the case, you can simply remove your array aggregator and map the appropriate variables within the OpenAI module.

Glenn - Callinetic

 
Posted : 03/01/2023 9:28 am
Matt_Cooper
(@matt_cooper)
Posts: 5
Active Member
Topic starter
 

Thanks Glenn. I actually need them combined into a single bundle so I can utilize them within a single prompt for a GPT-3.

Therefore, the output format should resemble the text below, all within one response:

 
Posted : 03/01/2023 9:50 am
Callinetic
(@callinetic)
Posts: 13
Active Member
 

Ok. I understand it better now.
What I can suggest is using the text aggregator instead of the array aggregator.
This will output your result as text, which can then be mapped to the correct field in the OpenAI module.

 
Posted : 03/01/2023 10:08 am
Matt_Cooper
(@matt_cooper)
Posts: 5
Active Member
Topic starter
 

Thanks

Still getting just the first record. Any other ideas?

Here is a video that walks through the explanation in a bit more detail

 
Posted : 03/01/2023 3:56 pm
Callinetic
(@callinetic)
Posts: 13
Active Member
 

Understood. Thank you for sharing your video demonstration of the scenario. I still believe that using the text aggregator would be more suitable than your current array aggregator. You should configure it to use the same text structure as you are currently using for your OpenAI module.

Like this:

image

This setup will output the results of your three matches as a single text object, repeated three times with the identical text structure. The output from this module can then be fed into the OpenAI module.

image

 
Posted : 03/01/2023 4:43 pm
Matt_Cooper
(@matt_cooper)
Posts: 5
Active Member
Topic starter
 

YESSS!!! Thank you. Really, really appreciate your help on this!

Matt

 
Posted : 03/01/2023 5:15 pm
Share: