According to the documentation, the file_search
tool of the Responses API admits several vector store ids:
vector_store_ids array Required
The IDs of the vector stores to search.
But adding more than one throws an error:
"Invalid 'tools[0].vector_store_ids': array too long.
Expected an array with maximum length 1, but got an array with length 2 instead."
Is this something to be fixed by Open AI?
2 Likes
True. Not in the API reference, unfortunately. And both are contradicting.
Anyway, I hope they allow searching in more than one vector store, as it seems to be the plan.
It looks like they have increase the ability to query two vector stores now. But when I tried to add the third vector store, I receved the error message below. Well, two is still better than one, I hope they can increase the limit even further.
{
“error”: {
“message”: “Invalid input: maximum of 2 vector stores allowed.”,
“type”: “invalid_request_error”,
“param”: “tools”,
“code”: “integer_above_max_value”
}
}