search

Function

Finds an answer for a user's question. It must be called after initialization.

Prototype

def search(query)

Parameters

Parameter

Data Type

Required/Optional

Description

query

String

Required

User question. The value is a string within the range of (0, 128 × 1024 × 1024].

Return Value

Data Type

Description

Dict

Unicode-encoded character string of the QA pair, for example, {"\u66aa....?": "\u6ae6...", ...}.