Sure - here’s the blueprint of the scenario.
blueprint.json (58.4 KB)
The output bundles for perplexity AI module - please note that I’ve set the max tokens to 10 to save tokens during testing:
[
{
"id": "da624448-883b-423e-ba22-d8d4ded59925",
"model": "llama-3-sonar-small-32k-online",
"created": 1722926648,
"usage": {
"prompt_tokens": 163,
"completion_tokens": 10,
"total_tokens": 173
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"finish_reason": "length",
"message": {
"role": "assistant",
"content": "To cook the tastiest potato curry, start by"
},
"delta": {
"role": "assistant",
"content": ""
}
}
]
}
]
[
{
"id": "29adef32-6334-49cd-a46f-3aa86761d516",
"model": "llama-3-sonar-small-32k-online",
"created": 1722926652,
"usage": {
"prompt_tokens": 191,
"completion_tokens": 10,
"total_tokens": 201
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"finish_reason": "length",
"message": {
"role": "assistant",
"content": "Recent developments in cooking the tastiest potato curry include"
},
"delta": {
"role": "assistant",
"content": ""
}
}
]
}
]
There are 4 such output bundles - all similar (output from the perplexity API, after running prompts through an iterator). I am not able download all outbut bundles at once, for some reason.
Ive been trying several variations - from what I understand, it seems that the output is fine, from the pereplxity ai module - I am not sure how this output is being stored. I tried using an aggregator, but the problem still remains - how to “extract” the right content output from the array, and map it to a variable/write to a cell in a spreadsheet.