Menu
Start a classification
Start a classification
POST
/v1/classificationsUse it in a workflow
- Add a step and choose the Weaviate connector.
- Pick the Start a classification action (under classifications).
- Fill in the fields below, then reference the result from later steps as
{{startAClassification.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"id": "ee722219-b8ec-4db1-8f8d-5150bb1a9e0c",
"class": "City",
"classifyProperties": [
"inCountry"
],
"basedOnProperties": [
"description"
],
"status": "running",
"meta": {
"started": "2017-07-21T17:32:28Z",
"completed": "2017-07-21T17:32:28Z",
"count": 147,
"countSucceeded": 140,
"countFailed": 7
},
"type": "string",
"settings": {},
"error": "classify xzy: something went wrong",
"filters": {
"sourceWhere": {
"operands": [
{}
],
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueBoolean": false,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueIntArray": "[100, 200]",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
]
},
"trainingSetWhere": {
"operands": [
{}
],
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueBoolean": false,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueIntArray": "[100, 200]",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
]
},
"targetWhere": {
"operands": [
{}
],
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueBoolean": false,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueIntArray": "[100, 200]",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
]
}
}
}
Response
Returns 201 with a any. Read it in later steps with {{startAClassification.response.data.<field>}}.
Need more? See the Weaviate guide for connection setup and behaviour shared by every action.
Was this page helpful?