.query()
method empowers developers to ask questions and receive relevant answers through a user-friendly query API. Function signature is given below:
False
None
False
citations=False
, return a stringified answer to the question asked. citations=True
, returns a tuple with answer and citations respectively.citations=True
, note that the returned sources
are a list of tuples where each tuple has two elements (in the following order):url
: url of the sourcedoc_id
: document id (used for book keeping purposes)score
: score of the source chunk with respect to the question