v1

latestOpenAPI 3.0.12026-07-17524.1 KB

Fact-check a given passage or a sentence on the knowledge provided.

post/fact_check_kbqa

Request body

promptstring

(REQUIRED) The user prompt that requested a response (i.e., the user prompt that request the ChatGPT response to be fact-checked.)

responsestring

(REQUIRED) The response to be fact-checked (usually a ChatGPT response). (VERY IMPORTANT) HOWEVER, if the user directly asks you to fact-check a knowledge-based statement, then the response should be same as the prompt.

{"stackTrail":"components:schemas:FactCheckRequest:properties:entry_point","oasType":"schema","type":"unknown","description":"The function name of the code snippet to be fact-checked in the response. Could be \"null\" if the response doesn't contain any code snippet."}

Response

Fact-check result

fact_check_resultobject[]

The list of fact-check results as dictionaries. This list includes claims extracted from the response, claim-level_factuality and response-level factuality of the response, and potentially the descriptions of why each claim in the response is factual or not.

All 5 operations