How to get exact answers instead of the whole document using Watson Discovery?

前端 未结 5 2030
一个人的身影
一个人的身影 2020-12-29 15:09

After testing the discovery service, it seems useless to me at least or I might be missing something.

When I query, it matches the document and retu

5条回答
  •  借酒劲吻你
    2020-12-29 15:41

    There is now a passages parameter that can be passed to the query API. It's in beta as of this writing. It provides the location within the document as well as the "passage" text and score.

    {
      "document_id": "dd2a7574-c266-4587-812b-69a47aa271d6",
      "passage_score": 23.961884787023948,
      "passage_text": " query block name in many hints to specify the query block to which the hint applies. This syntax lets you specify in the outer query a hint that applies to an inline view.\n\nThe syntax of the query block",
      "start_offset": 404,
      "end_offset": 607
    },

提交回复
热议问题