I'm encountering a similar issue to what's been discussed here, but the provided solution isn't resolving it for me.
Updated with screenshots
I have a local data store that holds records containing a File ID for each file. I then perform a search on this datastore, which retrieves the necessary records.
Next, I utilize an Array aggregator to compile these records into an array.
As detailed in the original post, I then make a call to OpenAR with the File IDs mapped as follows:
{{ifempty(map(73.array; “data.ID”))}}{{null}}
This consistently results in a 404 Files were not found error from OpenAI. I've confirmed that the file IDs are correct, and it functions properly when I submit one file ID at a time.
Observing the input bundle, it appears like this:
[
{
"role": "user",
"tools": [
"retrieval"
],
"fileIds": [
"file-removed, file-removed, file-removed, file-removed, file-removed, file-removed, file-removed"
],
"message": "Files for content are attached.",
"threadId": "removed",
"assistantId": "removed"
}
]
Is it expecting the fieldIds to be formatted with the extra quotes, like this?
"fileIds": [
"file-removed", "file-removed", "file-removed", "file-removed", "file-removed", "file-removed", "file-removed"
],
input-bundle.txt (475 Bytes)
bundle.json (14 Bytes)
Any assistance would be greatly appreciated.
Welcome to the callin.io community!
1. Screenshots of module fields and filters
Please share screenshots of the relevant module fields and filters in question. It would greatly assist other community members in understanding your situation.
You can upload images here using the Upload icon in the text editor:
2. Scenario blueprint
Please export the scenario blueprint file to enable others to review the mappings and settings. You can find the Export Blueprint option by clicking the three dots at the bottom of the scenario editor.
(Note: Exporting your scenario will not include private information or connection keys)
Uploading it here will appear as follows:
blueprint.json (12.3 KB)
3. And most importantly, Input/Output bundles
Please provide the input and output bundles for the modules. You can do this by running the scenario (or retrieving them from the scenario History tab). Then, click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A.
Save the contents of each bundle in your text editor as a bundle.txt
file and upload it to this discussion thread.
Uploading them here will look like this:
module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)
B.
If you are unable to upload files on this forum, you can alternatively paste the formatted bundles 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:
Providing the input/output bundles will enable others to replicate what is happening in the scenario, even if they do not use the external service.
Following these steps will allow others to assist you. Thanks!
Thanks, I've updated the post with screenshots and the bundles.
It's not clear what data is being retrieved from the data store and what you are iterating over.
You should be doing one or the other.
What about the Scenario blueprint?