Skip to main content
1

Get an API key

Create a key in the Bespoke Labs console. Then set it in your shell:
2

Install the SDK

3

Check a claim

Request and response

client.minicheck.factcheck.create sends a POST request to /v0/minicheck/factcheck. It takes two arguments:
  • claim is the sentence to check.
  • context is the document to check the claim against.
The response has one field. support_prob is a float from 0 to 1, and it is the probability that the context supports the claim. For all SDK options, see the SDK repository.