> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bespokelabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Ollama

> Run Bespoke-MiniCheck-7B on your own computer with Ollama.

Ollama has the model as [`bespoke-minicheck`](https://ollama.com/library/bespoke-minicheck). The download is 4.7 GB, and the context window is 32K tokens. For background, see the Ollama [blog post](https://ollama.com/blog/reduce-hallucinations-with-bespoke-minicheck).

Ollama returns "Yes" or "No" and does not return a support probability.

<Steps>
  <Step title="Download the model">
    ```bash theme={null}
    ollama pull bespoke-minicheck
    ```
  </Step>

  <Step title="Check a claim">
    Send the document and the claim in this format:

    ```text theme={null}
    Document: {document}
    Claim: {claim}
    ```

    This example uses the `ollama` Python package:

    ```python theme={null}
    from ollama import chat

    document = "A group of students gather in the school library to study for their upcoming final exams."
    claim = "The students are preparing for an examination."

    response = chat(
        model="bespoke-minicheck",
        messages=[{"role": "user", "content": f"Document: {document}\nClaim: {claim}"}],
    )
    print(response.message.content)  # Yes
    ```
  </Step>
</Steps>

Check one sentence at a time. Split a longer claim into sentences first.
