import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const artifact = await client.knowledgeBases.artifacts.update('knowledge_base_id', 'artifact_id');
console.log(artifact.knowledge_base_id);
{
"artifact_id": "<string>",
"knowledge_base_id": "<string>",
"chunking_strategy_config": {
"strategy": "character",
"separator": "\n\n",
"chunk_size": 1000,
"chunk_overlap": 200
},
"artifact_name": "<string>",
"artifact_uri": "<string>",
"artifact_uri_public": "<string>",
"content_modification_identifier": "<string>",
"source": "S3",
"status": "Pending",
"status_reason": "<string>",
"checkpoint": "Pending",
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>",
"tags": {}
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const artifact = await client.knowledgeBases.artifacts.update('knowledge_base_id', 'artifact_id');
console.log(artifact.knowledge_base_id);
{
"artifact_id": "<string>",
"knowledge_base_id": "<string>",
"chunking_strategy_config": {
"strategy": "character",
"separator": "\n\n",
"chunk_size": 1000,
"chunk_overlap": 200
},
"artifact_name": "<string>",
"artifact_uri": "<string>",
"artifact_uri_public": "<string>",
"content_modification_identifier": "<string>",
"source": "S3",
"status": "Pending",
"status_reason": "<string>",
"checkpoint": "Pending",
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>",
"tags": {}
}
Successful Response
The response is of type object
.