# Using Ollama

You can find the full Ollama documentation [here](https://github.com/jmorganca/ollama/tree/main/docs).

### Step 1 - Install Ollama

#### Linux and WSL2

```bash
curl https://ollama.ai/install.sh | sh
```

#### Mac OSX

[Download](https://ollama.ai/download/Ollama-darwin.zip)

#### Windows

Not yet supported

### Step 2 - Start the server

```bash
ollama serve
```

### Step 3 - Download a model

For example, we will use Mistral 7B. There are many models to choose from listed in [the library](https://ollama.ai/library).

```bash
ollama run mistral
```

### Step 4 - Enable the server in the client

```md
settings -> ChatBot -> ChatBot Backend -> Ollama
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-ollama.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
