Answer

  • css_selector
    Type: string · Css Selector
    required

    The CSS selector that uniquely identifies the answer paragraph node in the original HTML content. This css selector matches exactly one HTML node that contains the answer paragraph. In order to be as unambiguous as possible, the returned CSS selector is in the form of a series of nth-child selectors starting from :root node (which is usually the <html>). For example,

    :root > div:nth-child(1) > p:nth-child(2)
    

    . This selector means the answer paragraph is a <p> tag that is the second child of a <div> node, which is in turn, the first child of the :root node.

    This CSS selector is useful when you want to make the answer paragraph stand out from the rest of the document. For example, the following JQuery code turns the background color of the answer paragraph to yellow:

    $(answer.css_selector).css("background-color", "yellow");
    
  • probability
    Type: number · Probability
    min:  
    0
    max:  
    1
    required

    The probability this paragraph can sufficiently answer the user's question (from 0.0 to 1.0).

  • text
    Type: string · Text
    required

    The plain text version of answer paragraph.

  • html
    Type: string · Html

    The answer paragraph in its original html tag, i.e. or the outerHTML of the answer paragraph node.