Create vector store file batch
documentedCreate a batch of files for a vector store.
POST /vector_stores/{vector_store_id}/file_batchesVector Storesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.openai.com/v1/vector_stores/{{$vector_store_id}}/file_batches" \
-X POST \
-H "Authorization: Bearer {{OPENAI_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"files": [
{
"file_id": "{{$file_id_1}}",
"attributes": {"category": "{{$category_1}}"}
},
{
"file_id": "{{$file_id_2}}",
"chunking_strategy": {
"type": "static",
"max_chunk_size_tokens": {{$file2_max_chunk}},
"chunk_overlap_tokens": {{$file2_overlap}}
}
}
],
"attributes": {"source": "{{$attributes_source}}"},
"chunking_strategy": {
"type": "auto",
"max_chunk_size_tokens": {{$default_max_chunk}},
"chunk_overlap_tokens": {{$default_overlap}}
}
}'"}