I have a scenario where PerplexityAI [30] searches the web to find links with information relevant to upstream information. It passes on a list of urls:
[
{
“id”: “0230c8e0-912d-48f0-b96e-35e1f049a7f4”,
“model”: “llama-3-sonar-large-32k-online”,
“created”: 1725555481,
“usage”: {
“prompt_tokens”: 255,
“completion_tokens”: 393,
“total_tokens”: 648
},
“object”: “chat.completion”,
“choices”: [
{
“index”: 0,
“finish_reason”: “stop”,
“message”: {
“role”: “assistant”,
“content”: “1. How does architectural visualization differ fundamentally from traditional architectural renderings?\n - https://fortes.vision/blog/the-role-and-advantages-of-3d-architectural-visualization-for-architects/\n\n2. What are the most common techniques used in Photoshop for architectural visualization?\n - https://www.photoshoptrainingchannel.com/architectural-visualization-photoshop-tutorial/\n\n3. How do advances in software tools like LUMION and Enscape impact the architectural visualization industry?\n - Industry-Leading 3D Rendering Software | Lumion - Lumion 3D Rendering Software. What are the current limitations of VR technology in the field of architectural visualization?\n - https://www.archdaily.com/932242/the-limits-of-virtual-reality-in-architecture\n\n5. How do architectural visualization studios structure their workflow for complex projects?\n - https://www.thespaces.com/2022/04/28/architectural-visualization-workflow/\n\n6. What are the primary skills required for someone looking to specialize in architectural visualization?\n - https://www.cgarchitect.com/features/skills-required-for-architectural-visualization\n\n7. What role does narrative and emotional engagement play in architectural visualization?\n - https://www.dezeen.com/2022/07/21/architectural-visualization-narrative-emotional-engagement/\n\n8. How does client feedback typically influence the final visualization output in architectural projects?\n - https://www.architecturaldigest.com/story/client-feedback-architectural-visualization\n\n9. What are the potential future trends in architectural visualization technology that might disrupt the industry?\n - RMJM Creates a 180 Meters Tower for the Xiangjiang Gate in Hunan, China | ArchDaily”
},
“delta”: {
“role”: “assistant”,
“content”: “”
}
}
]
}
]
This goes into a ChatGPT module [42] which cleans up the output and returns each of the urls in the format of ‘url1="this-is-url1.com’ and ‘url2=this-is-the-next-link.com’
You get the idea.
{
"result": "url1=\"https://fortes.vision/blog/the-role-and-advantages-of-3d-architectural-visualization-for-architects/\"\nurl2=\"https://www.photoshoptrainingchannel.com/architectural-visualization-photoshop-tutorial/\"\nurl3=\"https://www.lumion.com/blog/10-ways-lumion-11-will-revolutionize-your-architectural-visualizations/\"\nurl4=\"https://www.archdaily.com/932242/the-limits-of-virtual-reality-in-architecture\"\nurl5=\"https://www.thespaces.com/2022/04/28/architectural-visualization-workflow/\"\nurl6=\"https://www.cgarchitect.com/features/skills-required-for-architectural-visualization\"\nurl7=\"https://www.dezeen.com/2022/07/21/architectural-visualization-narrative-emotional-engagement/\"\nurl8=\"https://www.architecturaldigest.com/story/client-feedback-architectural-visualization\"\nurl9=\"https://www.archdaily.com/931111/the-future-of-architectural-visualization-trends-and-predictions\"",
"id": "chatcmpl-A4A5xSp7DysgaZAVbUpSLVfVLoALP",
"object": "chat.completion",
"created": "2024-09-05T16:58:01.000Z",
"model": "gpt-4o-mini-2024-07-18",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "url1=\"https://fortes.vision/blog/the-role-and-advantages-of-3d-architectural-visualization-for-architects/\"\nurl2=\"https://www.photoshoptrainingchannel.com/architectural-visualization-photoshop-tutorial/\"\nurl3=\"https://www.lumion.com/blog/10-ways-lumion-11-will-revolutionize-your-architectural-visualizations/\"\nurl4=\"https://www.archdaily.com/932242/the-limits-of-virtual-reality-in-architecture\"\nurl5=\"https://www.thespaces.com/2022/04/28/architectural-visualization-workflow/\"\nurl6=\"https://www.cgarchitect.com/features/skills-required-for-architectural-visualization\"\nurl7=\"https://www.dezeen.com/2022/07/21/architectural-visualization-narrative-emotional-engagement/\"\nurl8=\"https://www.architecturaldigest.com/story/client-feedback-architectural-visualization\"\nurl9=\"https://www.archdaily.com/931111/the-future-of-architectural-visualization-trends-and-predictions\"",
"refusal": null
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 544,
"completion_tokens": 238,
"total_tokens": 782
},
"system_fingerprint": "fp_f33667828e"
}
]
I want to send each of these urls one at a time to another instance of PerplexityAI [38] and have it search and provide a summary of what it finds at each of the urls using Google docs [31]
I have watched multiple videos and searched the forums and I can’t figure this out. I know that I can use an iterator, but I can’t figure how to set it up. I’ve used text parsers, I’ve used arrays, I’ve tried splitting the text, but I can’t come up with the right combination of rules and variables to make it all work. Any assistance would be greatly appreciated. I’ve attached the JSON for the entire scenario.
blueprint (2).json (59.2 KB)