Skip to main content

TemplateRoutingResponse

Semantic-template routing result containing the request, candidate templates, and selected templates.

requestRequest (string)required
candidates object[]
  • Array [
  • template_idTemplate Id (string)required
    itemItem (string)required
    table_id object
    anyOf
    string
    name object
    anyOf
    string
    matched_question object
    anyOf
    string
    scoreScore (number)required
    rerank_score object
    anyOf
    number
  • ]
  • routed object[]
  • Array [
  • template_idTemplate Id (string)required
    itemItem (string)required
    table_id object
    anyOf
    string
    name object
    anyOf
    string
    matched_question object
    anyOf
    string
    scoreScore (number)required
    rerank_score object
    anyOf
    number
  • ]
  • TemplateRoutingResponse
    {
    "request": "string",
    "candidates": [
    {
    "template_id": "string",
    "item": "string",
    "table_id": "string",
    "name": "string",
    "matched_question": "string",
    "score": 0,
    "rerank_score": 0
    }
    ],
    "routed": [
    {
    "template_id": "string",
    "item": "string",
    "table_id": "string",
    "name": "string",
    "matched_question": "string",
    "score": 0,
    "rerank_score": 0
    }
    ]
    }