Merge Collections after Open AI module within a loop

Dear Make enthousiasts,

I am encountering an issue with aggregating data in a loop within one of my scenarios and would appreciate any help.

This is also my first time on the community :blush:

Goal:

My end goal is to split a large text into segments of 1500 characters each, process each segment through the OpenAI module for translation, and then aggregate these translated segments back into a single text.

The challenge I am facing is with the loop and the aggregation part, where the Array Aggregator module seems to be capturing only the output per cycle, instead of aggregating outputs from all cycles.

Here is my scenario now, I tested many solutions without success


blueprint.json (43.4 KB)

Welcome to the Make community!

In your Text Aggregator module [59],

Set the Source Module to the Repeater [7].

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

3 Likes

Thank you indeed correct solution !

No problem, glad I could help!

2 Likes