nick_l
1
We have a few vector stores where a number of files are showing as “failed”. We can see the files with a status “Ready” in the file view.
If I try adding the file to that Vector Store via the API
curl https://api.openai.com/v1/vector_stores/vs_ABC/files \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"file_id": "file-XXX"
}'
I get
{
"error": {
"message": "Failed to create file operation: Bad Request: {\"detail\":\"Cannot reindex file file-XXX with a new strategy\"}",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
1 Like
_j
2
Remove flie name/id first.
flowchart
Delete --> Re-Add
nick_l
3
Deleting the files fails.
It says it succeeds, but the file is still attached.
nick_l
4
Interestingly, the file has a status of “Success” in the UI, but looking at it via the API I see
{
"id": "file-XYZ",
"object": "vector_store.file",
"usage_bytes": 0,
"created_at": 1731541748,
"vector_store_id": "vs_ABC",
"status": "failed",
"last_error": {
"code": "invalid_file",
"message": "The file could not be parsed."
},
"chunking_strategy": {
"type": "static",
"static": {
"max_chunk_size_tokens": 800,
"chunk_overlap_tokens": 400
}
}
},
I can’t remove it from the VectorStore though.
Still so difficult for me I’m not even half way and I forgottihg the whole start