younifyd
Menu

Start a classification

Start a classification

POST/v1/classifications

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Start a classification action (under classifications).
  3. 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.

idstring (uuid)

ID to uniquely identify this classification run.

classstring

The name of the collection (class) which is used in this classification.

classifyPropertiesarray<string>

Which ref-property to set as part of the classification.

basedOnPropertiesarray<string>

Base the text-based classification on these fields (of type text).

statusstring

Status of this classification.

One ofrunningcompletedfailed

metaobject

Additional information to a specific classification.

startedstring (date-time)

Time when this classification was started.

completedstring (date-time)

Time when this classification finished.

countinteger

Number of objects which were taken into consideration for classification.

countSucceededinteger

Number of objects successfully classified.

countFailedinteger

Number of objects which could not be classified - see error message for details.

typestring

Which algorithm to use for classifications.

settingsobject

Classification-type specific settings.

errorstring

Error message if status == failed.

Default ""

filtersobject
sourceWhereobject16 fields

Filter search results using a where filter.

trainingSetWhereobject16 fields

Filter search results using a where filter.

targetWhereobject16 fields

Filter search results using a where filter.

json
{
  "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.