delete_relations
Remove specified relationships from the knowledge graph by providing source entity, target entity, and relation type, optimizing data accuracy and organization.
Instructions
Delete multiple relations from the knowledge graph
Input Schema
Name | Required | Description | Default |
---|---|---|---|
relations | Yes | Array of relations to delete |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"relations": {
"description": "Array of relations to delete",
"items": {
"additionalProperties": false,
"properties": {
"from": {
"description": "Source entity name",
"minLength": 1,
"type": "string"
},
"relationType": {
"description": "Type of relationship (in active voice)",
"minLength": 1,
"type": "string"
},
"to": {
"description": "Target entity name",
"minLength": 1,
"type": "string"
}
},
"required": [
"from",
"to",
"relationType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"relations"
],
"type": "object"
}