Update vector store file attributes.
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.
AuthorizationBearer <token>vector_store_id*stringThe ID of the vector store to use.
^[0-9a-fA-F]{24}$file_id*stringThe ID of the file to retrieve
^[0-9a-fA-F]{24}$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
application/json- 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.
Successful Response
application/json- response
project_id*stringA 24-character hexadecimal MongoDB ObjectId string.
^[0-9a-fA-F]{24}$vector_store_id*stringA 24-character hexadecimal MongoDB ObjectId string.
^[0-9a-fA-F]{24}$object?stringThe object type, which is always vector_store.file.
"vector_store.file"last_error?|nullstatus?VectorStoreFileStatusThe 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.
"in_progress""in_progress""completed""cancelled""failed"usage_bytes?UsageBytesThe total number of bytes used by the files in the vector store.
0 <= value0chunking_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.
{ "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.
{}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*stringThe vector_store file identifier, which can be referenced in the API endpoints.
^[0-9a-fA-F]{24}$created_at*integerThe Unix timestamp (in seconds) for when the vector store was created.
curl -X POST 'https://deepfellow-server-host/v1/vector_stores/5eb7cf5a86d9755df3a6c593/files/5eb7cf5a86d9755df3a6c593' \ -H 'Content-Type: application/json' \ -d '{ "attributes": { "property1": "string", "property2": "string" }}'{ "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.