/
POST /predict-api/predict/extraction/feedback
POST /predict-api/predict/extraction/feedback
As of Version | product version 2021 Autumn | component version 0.3 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Request Method | GET | ||||||||||
Response Format | JSON | ||||||||||
Description | Sends feedback to the ML Pipeline informing about the user decision for one of the property values suggested in a prediction. After metadata extraction is done and the predicted property values are shown to the user, the user decides on the validity of those data by accepting them or changing the shown values. It is important to inform the ML Pipeline about this decision in order to improve future predictions by calling this feedback endpoint. In the JSON request body, the following parameters are expected:
If an error is thrown, a JSON structure is returned as response body. | ||||||||||
Request Header | Content-Type: application/json X-ID-TENANT-NAME: tenant_name | ||||||||||
Request Example | /predict-api/predict/extraction/feedback { "properties": { "predictionId": { "value":474 }, "feedbackData": [ { "propertyName": "aiInvoiceNumber", "value": "RWTÜV", "boundingBox":[123, 222, 33, 14], "page": 1 }, { "propertyName": "aiCompanyName", "value": "CompanyName" }, { "propertyName": "aiAmount", "value": "234.44" }, { "propertyName": "aiIssuedDate", "value": "10.4.2020" } ] } } | ||||||||||
Result Example | (1) Successful
(2) Not succelful:
{ "statusCode": 400, "timestamp": "2020-12-25T09:42:33.386+00:00", "message": "JSON parse error: Unrecognized field \"aiCompanssyName\" (class com.os.ai.predict.domain.extraction.ExtractionFeedbackRequestData), not marked as ignorable..." } |
, multiple selections available,
Related content
POST /predict-api/api/classification/feedback
POST /predict-api/api/classification/feedback
More like this
GET /predict-api/api/extraction/{objectId}
GET /predict-api/api/extraction/{objectId}
More like this
GET /predict-api/api/classification/{objectId}
GET /predict-api/api/classification/{objectId}
More like this
POST /predict-api/api/classification
POST /predict-api/api/classification
More like this
PREDICT-API Endpoints
PREDICT-API Endpoints
More like this
PREDICT-API Endpoints
PREDICT-API Endpoints
More like this