Update a namespace for the authenticated organization. If there is no change, return it as it is.
TypeScript
import { Agentset } from "agentset"; const agentset = new Agentset({ apiKey: 'agentset_xxx' }); const updatedNamespace = await agentset.namespaces.update("ns_xxx", { name: "Updated Knowledge Base", }); console.log(updatedNamespace);
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "organizationId": "<string>", "createdAt": "<string>", "embeddingConfig": { "provider": "<string>", "model": "text-embedding-3-small", "apiKey": "<string>" }, "vectorStoreConfig": { "provider": "<string>" } } }
Default authentication mechanism
The id of the namespace (prefixed with ns_)
1 - 64
2 - 48
The updated namespace
Show child attributes
The unique ID of the namespace.
The name of the namespace.
The slug of the namespace.
The ID of the organization that owns the namespace.
The date and time the namespace was created.
The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.
"OPENAI"
The OpenAI embedding model enum.
text-embedding-3-small
text-embedding-3-large
The vector store config.
"MANAGED_PINECONE_OLD"