DeepFellow DOCS
DeepFellow API ReferenceVector store file batches

Create a vector store file batch.

POST
/v1/vector_stores/{vector_store_id}/file_batches

Create a vector store file batch.

Attaches many already-uploaded files to a vector store as a single trackable, cancellable job, ingesting each one through the same pipeline used by POST /v1/vector_stores/{vector_store_id}/files.

Needs user bearer token in authorization header.

Authorization

headerAuthorizationBearer <token>

Path Parameters

vector_store_id*string

The ID of the vector store to use.

Match^[0-9a-fA-F]{24}$

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Request Body

application/json
  1. body
file_ids?array<>|

A list of File IDs to add. Mutually exclusive with files. attributes/chunking_strategy/image_processing_mode apply to all.

files?array<>|

Files with optional per-file attributes/chunking_strategy/image_processing_mode overrides. Mutually exclusive with file_ids.

attributes?|

Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings (max 512 chars), booleans, or numbers.

Default{}
chunking_strategy?|null
image_processing_mode?ImageProcessingMode

Whether images in the file are described by a vision model before chunking.

Default"ignore"
Value in"ignore""description"

Response Body

Successful Response

application/json
  1. response
project_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
vector_store_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
object?string

The object type, which is always vector_store.files_batch.

Default"vector_store.files_batch"
id*string

The file batch identifier, which can be referenced in the API endpoints.

Match^[0-9a-fA-F]{24}$
created_at*integer

The Unix timestamp (in seconds) for when the file batch was created.

status*VectorStoreFileBatchStatus

The status of the vector store file batch, which can be one of: ['in_progress', 'completed', 'cancelled', 'failed'].

Value in"in_progress""completed""cancelled""failed"
file_counts*

Detailed counts of the batch's files by status.

Example Request
curl -X POST 'https://deepfellow-server-host/v1/vector_stores/5eb7cf5a86d9755df3a6c593/file_batches' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "project_id": "5eb7cf5a86d9755df3a6c593",  "vector_store_id": "5eb7cf5a86d9755df3a6c593",  "object": "vector_store.files_batch",  "id": "5eb7cf5a86d9755df3a6c593",  "created_at": 0,  "status": "in_progress",  "file_counts": {    "cancelled": 0,    "completed": 0,    "failed": 0,    "in_progress": 0,    "total": 0  }}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.