import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.ai.clusters.compute({ bucket: 'bucket' });
console.log(response.data);{
"data": {
"task_id": "<string>"
}
}Starts a background task to compute how the data in an embedded storage bucket is clustered. This helps identify common themes and patterns in the data.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.ai.clusters.compute({ bucket: 'bucket' });
console.log(response.data);{
"data": {
"task_id": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Prefix to filter whcih files in the buckets are included.
Array of files to filter which are included.
Smallest number of related text chunks to qualify as a cluster. Top-level clusters should be thought of as identifying broad themes in your data.
Smallest number of related text chunks to qualify as a sub-cluster. Sub-clusters should be thought of as identifying more specific topics within a broader theme.
Was this page helpful?