Modify a vector store.
Modify a vector store.
Needs user bearer token in authorization header.
AuthorizationBearer <token>vector_store_id*stringThe ID of the vector store to modify.
^[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
expires_after?|nullmetadata?||nullname?|nullknowledge_compression?|Knowledge compression policy. Enabling it also summarizes the store's already-ingested files; disabling it removes the store's summary vectors.
knowledge_graph?|Knowledge graph policy. Enabling it also ingests the store's already-processed files into the project's knowledge graph; re-sending the enabled policy retries failed ingestions and catches up files processed while the knowledge graph was disabled on the server. Disabling it only stops ingesting new ones, and leaves the graph as it is.
Successful Response
application/json- response
project_id*stringA 24-character hexadecimal MongoDB ObjectId string.
^[0-9a-fA-F]{24}$object?stringThe object type, which is always vector_store.
"vector_store"name?VectorStoreNameThe name of the vector store.
""status?VectorStoreStatusThe status of the vector store.
"completed""in_progress""completed""expired"file_counts?Detailed counts of files by status.
{ "cancelled": 0, "completed": 0, "failed": 0, "in_progress": 0, "total": 0}expires_after?|The expiration policy for a vector store.
metadata?|Set of key-value pairs that can be attached to an object.
{}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.
{ "type": "auto", "static": { "chunk_overlap_tokens": 400, "max_chunk_size_tokens": 800 }}knowledge_compression?|Knowledge compression policy: whether Nightshift stores a summary of each file as vectors in this store.
knowledge_graph?|Knowledge graph policy: whether Nightshift ingests each processed file into the project's knowledge graph.
id*stringThe vector store identifier, which can be referenced in the API endpoints.
^[0-9a-fA-F]{24}$last_active_at*integerThe Unix timestamp (in seconds) for when the vector store was last active.
created_at*integerThe Unix timestamp (in seconds) for when the vector store was created.
expires_at*integerThe Unix timestamp (in seconds) for when the vector store will expire.
bytes?UsageBytesThe total number of bytes used by the files in the vector store.
0 <= value0embedding_config*Embedding model and size used to create vectors in this vector store.
curl -X POST 'https://deepfellow-server-host/v1/vector_stores/5eb7cf5a86d9755df3a6c593' \ -H 'Content-Type: application/json' \ -d '{}'{ "project_id": "5eb7cf5a86d9755df3a6c593", "object": "vector_store", "name": "", "status": "in_progress", "file_counts": { "cancelled": 0, "completed": 0, "failed": 0, "in_progress": 0, "total": 0 }, "expires_after": { "anchor": "last_active_at", "days": 36500 }, "metadata": {}, "chunking_strategy": { "type": "auto", "static": { "chunk_overlap_tokens": 400, "max_chunk_size_tokens": 800 } }, "knowledge_compression": { "enabled": false, "options": { "max_length": 200, "style": "neutral", "language": "string" } }, "knowledge_graph": { "enabled": false }, "id": "5eb7cf5a86d9755df3a6c593", "last_active_at": 0, "created_at": 0, "expires_at": 0, "bytes": 0, "embedding_config": { "model": "string", "size": 0, "max_context_size": 512 }}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.