How do I access each individual collection

Hey everyone,

I have been pulling my hair out trying to figure this out…and I feel like I’m overthinking something.

I am using Google Vision to convert a pdf to plain text. Here is my result when I do this:

The result separates each page of the original document into its own collection:

I want to create a variable for each Bundle’s {{FullTextAnnotation:Text}}
So for this particle document, there are 6 pages, therefore 6 bundles, and I want to create 6 variables where each variable is the text of that page.

The problem I am face is when I go to try and do that, I can’t access each collection. It only shows me one. :

I have tried iterators but that doesn’t do anything (I am guessing because it’s a collection). Is it a simple function that I don’t know about? How can I access all of the Bundles from the Google Vision module so I can create
Variable 1 = Bundle1:FullTextAnnotation:Text
Variable 2 = Bundle2:FullTextAnnotation:Text
Variable 3 = Bundle3:FullTextAnnotation:Text
etc. etc.

I promise I have scoured the community and Youtube for an answer but nothing seems to help :joy:

Any help would be greatly appreciated

Hi @AgentAutomation,

If you place an Array Aggregator after the Google Cloud Vision module, you can aggregate each bundle into an array consisting of each bundles’s Full Text Annotation.

Once in an array, you can use the map() function to extract the Text from each element of the new array, which will result in an array of Full Text Annotation:Text.

You may not even need to set these into variables, as you now have a selection of array functions you can use.

1 Like

Thank you… I knew it was going to be something so simple that I was going to kick myself over… thank you for restarting my brain lmao

1 Like