> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

> Cookbook examples for `cookbook/90_models/ollama/chat`.

| Example | Description |
| - | - |
| [Ollama Basic](https://agno-v2.mintlify.site/examples/models/ollama/chat/basic.md) | Run a local Llama 3.1 agent on Ollama in sync, async, and streaming modes. |
| [DB](https://agno-v2.mintlify.site/examples/models/ollama/chat/db.md) | Ollama model example. |
| [Ollama Demo DeepSeek R1](https://agno-v2.mintlify.site/examples/models/ollama/chat/demo-deepseek-r1.md) | Ask a local DeepSeek-R1 model to write Python for quadratic equations and explain its reasoning. |
| [Ollama Demo Gemma](https://agno-v2.mintlify.site/examples/models/ollama/chat/demo-gemma.md) | Stream a short story about a local image from Gemma 3 12B running on Ollama. |
| [Ollama Demo Phi4](https://agno-v2.mintlify.site/examples/models/ollama/chat/demo-phi4.md) | Run Microsoft Phi-4 locally through Ollama with a one-shot story prompt. |
| [Ollama Demo Qwen](https://agno-v2.mintlify.site/examples/models/ollama/chat/demo-qwen.md) | Build an NVDA stock report with Qwen3 on Ollama using YFinanceTools. |
| [Ollama Image Agent](https://agno-v2.mintlify.site/examples/models/ollama/chat/image-agent.md) | Describe a local image file with Llama 3.2 Vision running on Ollama. |
| [Knowledge](https://agno-v2.mintlify.site/examples/models/ollama/chat/knowledge.md) | Search a PgVector knowledge base embedded with OllamaEmbedder from a local Llama agent. |
| [Memory](https://agno-v2.mintlify.site/examples/models/ollama/chat/memory.md) | Persist user memories and session summaries in Postgres with a local qwen2.5 Ollama agent. |
| [Ollama Cloud](https://agno-v2.mintlify.site/examples/models/ollama/chat/ollama-cloud.md) | Chat Ollama Cloud. |
| [Retry](https://agno-v2.mintlify.site/examples/models/ollama/chat/retry.md) | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| [Set Client](https://agno-v2.mintlify.site/examples/models/ollama/chat/set-client.md) | Print the response in the terminal. |
| [Ollama Set Temperature](https://agno-v2.mintlify.site/examples/models/ollama/chat/set-temperature.md) | Set sampling temperature on an Ollama model through the options dict. |
| [Ollama Structured Output](https://agno-v2.mintlify.site/examples/models/ollama/chat/structured-output.md) | Return a MovieScript Pydantic object from a local Llama 3.2 model on Ollama. |
| [Tool Use](https://agno-v2.mintlify.site/examples/models/ollama/chat/tool-use.md) | Ollama model example. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.