Skip to content

Commit 9bb10e5

Browse files
authored
Merge pull request #1710 from redis/Jenverse-patch-1-2
Update use-langcache.md
2 parents 412b8ed + eef63da commit 9bb10e5

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

content/operate/rc/langcache/use-langcache.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: Use the LangCache API with your GenAI app
1111
weight: 10
1212
---
1313

14-
You can use the LangCache API from your client app to store and retrieve LLM responses.
14+
You can use the LangCache API from your client app to store and retrieve LLM, RAG, or agent responses.
1515

1616
To access the LangCache API, you need:
1717

@@ -64,19 +64,14 @@ Place this call in your client app right before you call your LLM's REST API. If
6464

6565
If LangCache does not return a response, you should call your LLM's REST API to generate a new response. After you get a response from the LLM, you can [store it in LangCache](#store-a-new-response-in-langcache) for future use.
6666

67-
You can also limit the responses returned from LangCache by adding an `attributes` object or `scope` object to the request. LangCache will only return responses that match the attributes you specify.
67+
You can also scope the responses returned from LangCache by adding an `attributes` object to the request. LangCache will only return responses that match the attributes you specify.
6868

6969
```sh
7070
POST https://[host]/v1/caches/{cacheId}/search
7171
{
7272
"prompt": "User prompt text",
7373
"attributes": {
7474
"customAttributeName": "customAttributeValue"
75-
},
76-
"scope": {
77-
"applicationId": "applicationId",
78-
"userId": "userId",
79-
"sessionId": "sessionId"
8075
}
8176
}
8277
```
@@ -104,11 +99,6 @@ POST https://[host]/v1/caches/{cacheId}/entries
10499
"response": "LLM response text",
105100
"attributes": {
106101
"customAttributeName": "customAttributeValue"
107-
},
108-
"scope": {
109-
"applicationId": "applicationId",
110-
"userId": "userId",
111-
"sessionId": "sessionId"
112102
}
113103
}
114104
```
@@ -124,11 +114,6 @@ DELETE https://[host]/v1/caches/{cacheId}/entries
124114
{
125115
"attributes": {
126116
"customAttributeName": "customAttributeValue"
127-
},
128-
"scope": {
129-
"applicationId": "applicationId",
130-
"userId": "userId",
131-
"sessionId": "sessionId"
132117
}
133118
}
134119
```

0 commit comments

Comments
 (0)