Retrieve a list of namespaces for the authenticated organization.
import { Agentset } from "agentset";
const agentset = new Agentset({ apiKey: 'agentset_xxx' });
const namespaces = await agentset.namespaces.list();
console.log(namespaces);{
"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 retrieved namespaces
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.
import { Agentset } from "agentset";
const agentset = new Agentset({ apiKey: 'agentset_xxx' });
const namespaces = await agentset.namespaces.list();
console.log(namespaces);{
"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>"
}
}
]
}