DeepFellow DOCS
DeepFellow API ReferenceVector store files

Update vector store file attributes.

POST
/v1/vector_stores/{vector_store_id}/files/{file_id}

Update vector store file attributes.

The given attributes are merged into the file's existing ones. Every vector of the file is updated first, so attribute filters in search match the new values; only then are the attributes stored on the file. A failure in between leaves the stored attributes unchanged, and repeating the request completes the update.

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}$
file_id*string

The ID of the file to retrieve

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
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.

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.file.

Default"vector_store.file"
last_error?|null
status?VectorStoreFileStatus

The status of the vector store file, which can be one of: ['in_progress', 'completed', 'cancelled', 'failed'].The status completed indicates that the vector store file is ready for use.

Default"in_progress"
Value in"in_progress""completed""cancelled""failed"
usage_bytes?UsageBytes

The total number of bytes used by the files in the vector store.

Range0 <= value
Default0
chunking_strategy?

The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.Only applicable if file_ids is non-empty.

Default
{  "type": "auto",  "static": {    "chunk_overlap_tokens": 400,    "max_chunk_size_tokens": 800  }}
attributes?|

Set of key-value pairs that can be attached to an object.

Default{}
chunking_mode?|

Which chunking pipeline actually processed this file: the doc-chunker service, the plain token chunker, or a single verbatim chunk. None for files processed before this field was introduced.

knowledge_compression?|

Knowledge compression state of this file; null when the vector store's policy never covered it.

id*string

The vector_store file 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 vector store was created.

Example Request
curl -X POST 'https://deepfellow-server-host/v1/vector_stores/5eb7cf5a86d9755df3a6c593/files/5eb7cf5a86d9755df3a6c593' \  -H 'Content-Type: application/json' \  -d '{  "attributes": {    "property1": "string",    "property2": "string"  }}'
Example Response
{  "project_id": "5eb7cf5a86d9755df3a6c593",  "vector_store_id": "5eb7cf5a86d9755df3a6c593",  "object": "vector_store.file",  "last_error": {    "code": "server_error",    "message": "string"  },  "status": "in_progress",  "usage_bytes": 0,  "chunking_strategy": {    "type": "auto",    "static": {      "chunk_overlap_tokens": 400,      "max_chunk_size_tokens": 800    }  },  "attributes": {},  "chunking_mode": "doc_chunker",  "knowledge_compression": {    "status": "pending",    "summary": "string",    "attempts": 0,    "error": "string",    "run_id": "string",    "updated_at": 0  },  "id": "5eb7cf5a86d9755df3a6c593",  "created_at": 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.