Concatenate each item in my database

I need to concatenate contents of each item in a thing. Can I do it with join with “\n” approach? I need to pass the concatenated text into a prompt.
So what I am doing is trying to concatenate each item as a line text and save it in a state that can then pass into a prompt.

Anyone done this before? Please help

Do you mean that you want to concatenate all the fields in a given record?

The join operator is to combine a list of text

Yes. This is basically an interview conversation between the assistant and the user. I wanted to use the prompt chaining approach to keep the prompts smaller. Once segment of the chain involves a conversation. Once the conversation is completed, this should flow into the next prompt which will provide the feedback on the interview

Set state (text) to:

Do a search for Things:format as text

Content: This Thing’s content
Delimiter: (newline)

1 Like

Thank you so much @georgecollier the solution helped!!

Deepak