Hi all,
I am trying to batch add files to a created vector store using an array containing each of the files. I am finding that when trying this, I cannot pass an array of values into the function.
Is there any way to do this, versus gathering all the filenames and passing in string values for each of them.
A snippit of my code:
batch_add = client.beta.vector_stores.file_batches.create(
vector_store_id=“abcdef”,
file_ids=[active_files]
)
Error Output:
Error code: 400 - {‘error’: {‘message’: “Invalid type for ‘file_ids[0]’: expected a string, but got an array instead.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘file_ids[0]’, ‘code’: ‘invalid_type’}}
Thanks.