Hello,
I’m encountering an issue with the following endpoint:
https://api.openai.com/v1/vector_stores/{vector_store_id}/search
According to the official documentation, the query
parameter in the request body should accept either a string or an array of strings:
However, when I attempt to send an array of strings, I receive a server error (HTTP 500). The error message is:
{
"error": {
"message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_ee3e7581db537a28614b071bcd227bd2 in your email.)",
"type": "server_error",
"param": null,
"code": null
}
}
Steps to reproduce:
- Send a POST request to
https://api.openai.com/v1/vector_stores/{vector_store_id}/search
. - In the request body, set
query
to an array of strings (as indicated by the documentation). - Observe the resulting HTTP 500 and the error message above.
Could you please clarify if this is a known issue or if there might be an error in the documentation? We need to perform multiple queries efficiently, and based on the current documentation, this should be supported.
Thank you for your assistance. I look forward to your clarification or a potential fix.
From the OpenAI SDK:
export interface VectorStoreSearchParams {
/**
* A query string for a search
*/
query: string | Array<string>;
}