You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/developing-applications/building-blocks/conversation/conversation-overview.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,35 @@ description: "Overview of the conversation API building block"
10
10
The conversation API is currently in [alpha]({{< ref "certification-lifecycle.md#certification-levels" >}}).
11
11
{{% /alert %}}
12
12
13
-
14
13
Using the Dapr conversation API, you can reduce the complexity of interacting with Large Language Models (LLMs) and enable critical performance and security functionality with features like prompt caching and personally identifiable information (PII) data obfuscation.
15
14
15
+
<imgsrc="/images/conversation-overview.png"width=800alt="Diagram showing the flow of a user's app communicating with Dapr's LLM components.">
16
+
17
+
Dapr's conversation API reduces the complexity of securely and reliably interacting with Large Language Models (LLM) at scale. Whether you're a developer who doesn't have the necessary native SDKs or a polyglot shop who just wants to focus on the prompt aspects of LLM interactions, the conversation API provides one consistent API entry point to talk to underlying LLM providers.
18
+
19
+
In additon to enabling critical performance and security functionality (like [prompt caching]({{< ref "#prompt-caching" >}}) and [PII scrubbing]({{< ref "#personally-identifiable-information-pii-obfuscation" >}})), you can also pair the conversation API with Dapr functionalities, like:
20
+
- Resiliency circuit breakers and retries to circumvent limit and token errors, or
21
+
- Middleware to authenticate requests coming to and from the LLM
22
+
23
+
Dapr provides observability by issuing metrics for your LLM interactions.
24
+
16
25
## Features
17
26
27
+
The following features are out-of-the-box for [all the supported conversation components]({{< ref supported-conversation >}}).
28
+
18
29
### Prompt caching
19
30
20
-
To significantly reduce latency and cost, frequent prompts are stored in a cache to be reused, instead of reprocessing the information for every new request. Prompt caching optimizes performance by storing and reusing prompts that are often repeated across multiple API calls.
31
+
Prompt caching optimizes performance by storing and reusing prompts that are often repeated across multiple API calls. To significantly reduce latency and cost, Dapr stores frequent prompts in a local cache to be reused by your cluster, pod, or other, instead of reprocessing the information for every new request.
21
32
22
33
### Personally identifiable information (PII) obfuscation
23
34
24
-
The PII obfuscation feature identifies and removes any PII from a conversation response. This feature protects your privacy by eliminating sensitive details like names, addresses, phone numbers, or other details that could be used to identify an individual.
35
+
The PII obfuscation feature identifies and removes any form of sensitve user information from a conversation response. Simply enable PII obfuscation on input and output data to protect your privacy and scrub sensitive details that could be used to identify an individual.
36
+
37
+
## Demo
38
+
39
+
Watch the demo presented during [Diagrid's Dapr v1.15 celebration](https://www.diagrid.io/videos/dapr-1-15-deep-dive) to see how the conversation API works using the .NET SDK.
40
+
41
+
<iframewidth="560"height="315"src="https://www.youtube-nocookie.com/embed/NTnwoDhHIcQ?si=37SDcOHtEpgCIwkG&start=5444"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
25
42
26
43
## Try out conversation
27
44
@@ -31,7 +48,7 @@ Want to put the Dapr conversation API to the test? Walk through the following qu
31
48
32
49
| Quickstart/tutorial | Description |
33
50
| ------------------- | ----------- |
34
-
|[Conversation quickstart](todo)|.|
51
+
|[Conversation quickstart](todo)|TODO|
35
52
36
53
### Start using the conversation API directly in your app
0 commit comments