-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hannah Hunter <[email protected]>
- Loading branch information
1 parent
e1fcc09
commit c591ceb
Showing
7 changed files
with
155 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
...docs/content/en/reference/components-reference/supported-conversational/echo.md
This file was deleted.
Oops, something went wrong.
44 changes: 40 additions & 4 deletions
44
...tent/en/reference/components-reference/supported-conversational/hugging-face.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,42 @@ | ||
--- | ||
type: docs | ||
title: "Hugging Face" | ||
linkTitle: "Hugging Face" | ||
description: Detailed information on the Hugging Face conversational component | ||
--- | ||
title: "Huggingface" | ||
linkTitle: "Huggingface" | ||
description: Detailed information on the Huggingface conversational component | ||
--- | ||
|
||
## Component format | ||
|
||
A Dapr `conversation.yaml` component file has the following structure: | ||
|
||
```yaml | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: huggingface | ||
spec: | ||
type: conversation.huggingface | ||
metadata: | ||
- name: key | ||
value: mykey | ||
- name: model | ||
value: meta-llama/Meta-Llama-3-8B | ||
- 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 | | ||
|--------------------|:--------:|---------|---------| | ||
| `key` | Y | API key for Huggingface. | `mykey` | | ||
| `model` | N | The Huggingface LLM to use. Defaults to `meta-llama/Meta-Llama-3-8B`. | `meta-llama/Meta-Llama-3-8B` | | ||
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` | | ||
|
||
## Related links | ||
|
||
- [Conversational API overview]({{< ref conversational-overview.md >}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters