Trying to upload multiple files directoy to a vector store with the node sdk, every time the resulting files have the default chunking strategy.
With the following snippet:
await req.openai.beta.vectorStores.fileBatches.uploadAndPoll(vectorStore.id, { files }, {
chunking_strategy: {
type: "static",
static: {
max_chunk_size_tokens: 400,
chunk_overlap_tokens: 100,
},
},
});
The resulting file inside the vector store has the default:
{
"id": "file-KqHZhS24e7aOiMWQGZwbzC78",
"object": "vector_store.file",
"usage_bytes": 122690,
"created_at": 1727178334,
"vector_store_id": "vs_Nlzu6Hy5z9vO28hHGBdykbQX",
"status": "completed",
"last_error": null,
"chunking_strategy": {
"type": "static",
"static": {
"max_chunk_size_tokens": 800,
"chunk_overlap_tokens": 400
}
}
}