Skip to content

Commit 76032b5

Browse files
authored
Conversation/ollama/1.16 (#4612)
* add documentation for Ollama conversation component Signed-off-by: Emmanuel Auffray <[email protected]> * add Ollama component to generic.yaml Signed-off-by: Emmanuel Auffray <[email protected]> --------- Signed-off-by: Emmanuel Auffray <[email protected]>
1 parent 906165b commit 76032b5

File tree

2 files changed

+44
-0
lines changed
  • daprdocs
    • content/en/reference/components-reference/supported-conversation
    • data/components/conversation

2 files changed

+44
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
type: docs
3+
title: "Ollama"
4+
linkTitle: "Ollama"
5+
description: Detailed information on the Ollama conversation component
6+
---
7+
8+
## Component format
9+
10+
A Dapr `conversation.yaml` component file has the following structure:
11+
12+
```yaml
13+
apiVersion: dapr.io/v1alpha1
14+
kind: Component
15+
metadata:
16+
name: ollama
17+
spec:
18+
type: conversation.ollama
19+
metadata:
20+
- name: model
21+
value: llama3.2:latest
22+
- name: cacheTTL
23+
value: 10m
24+
```
25+
26+
{{% alert title="Warning" color="warning" %}}
27+
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets, as described [here]({{< ref component-secrets.md >}}).
28+
{{% /alert %}}
29+
30+
## Spec metadata fields
31+
32+
| Field | Required | Details | Example |
33+
|--------------------|:--------:|---------|---------|
34+
| `model` | N | The Ollama LLM to use. Defaults to `llama3.2:latest`. | `phi4:latest` |
35+
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
36+
37+
## Related links
38+
39+
- [Conversation API overview]({{< ref conversation-overview.md >}})

daprdocs/data/components/conversation/generic.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@
2323
state: Alpha
2424
version: v1
2525
since: "1.15"
26+
- component: Ollama
27+
link: ollama
28+
state: Alpha
29+
version: v1
30+
since: "1.16"

0 commit comments

Comments
 (0)