mirror of https://github.com/dapr/docs.git
Conversation/ollama/1.16 (#4612)
* add documentation for Ollama conversation component Signed-off-by: Emmanuel Auffray <emmanuel.auffray@gmail.com> * add Ollama component to generic.yaml Signed-off-by: Emmanuel Auffray <emmanuel.auffray@gmail.com> --------- Signed-off-by: Emmanuel Auffray <emmanuel.auffray@gmail.com>
This commit is contained in:
parent
906165b04d
commit
76032b5d12
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
type: docs
|
||||
title: "Ollama"
|
||||
linkTitle: "Ollama"
|
||||
description: Detailed information on the Ollama conversation component
|
||||
---
|
||||
|
||||
## Component format
|
||||
|
||||
A Dapr `conversation.yaml` component file has the following structure:
|
||||
|
||||
```yaml
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: ollama
|
||||
spec:
|
||||
type: conversation.ollama
|
||||
metadata:
|
||||
- name: model
|
||||
value: llama3.2:latest
|
||||
- name: cacheTTL
|
||||
value: 10m
|
||||
```
|
||||
|
||||
{{% alert title="Warning" color="warning" %}}
|
||||
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 >}}).
|
||||
{{% /alert %}}
|
||||
|
||||
## Spec metadata fields
|
||||
|
||||
| Field | Required | Details | Example |
|
||||
|--------------------|:--------:|---------|---------|
|
||||
| `model` | N | The Ollama LLM to use. Defaults to `llama3.2:latest`. | `phi4:latest` |
|
||||
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
|
||||
|
||||
## Related links
|
||||
|
||||
- [Conversation API overview]({{< ref conversation-overview.md >}})
|
|
@ -23,3 +23,8 @@
|
|||
state: Alpha
|
||||
version: v1
|
||||
since: "1.15"
|
||||
- component: Ollama
|
||||
link: ollama
|
||||
state: Alpha
|
||||
version: v1
|
||||
since: "1.16"
|
Loading…
Reference in New Issue