@@ -39,15 +39,19 @@ curl -s -X GET "https://$HOST/v1/caches/$CACHE_ID/health" \
3939This example uses ` cURL ` and Linux shell scripts to demonstrate the API; you can use any standard REST client or library.
4040{{% /info %}}
4141
42- ## Check cache health
42+ You can also use the [ LangCache SDKs] ( #langcache-sdk ) for Javascript and Python to access the API.
43+
44+ ## API examples
45+
46+ ### Check cache health
4347
4448Use ` GET /v1/caches/{cacheId}/health ` to check the health of the cache.
4549
4650``` sh
4751GET https://[host]/v1/caches/{cacheId}/health
4852```
4953
50- ## Search LangCache for similar responses
54+ ### Search LangCache for similar responses
5155
5256Use ` POST /v1/caches/{cacheId}/search ` to search the cache for matching responses to a user prompt.
5357
@@ -74,7 +78,7 @@ POST https://[host]/v1/caches/{cacheId}/search
7478}
7579```
7680
77- ## Store a new response in LangCache
81+ ### Store a new response in LangCache
7882
7983Use ` POST /v1/caches/{cacheId}/entries ` to store a new response in the cache.
8084
@@ -101,7 +105,7 @@ POST https://[host]/v1/caches/{cacheId}/entries
101105}
102106```
103107
104- ## Delete cached responses
108+ ### Delete cached responses
105109
106110Use ` DELETE /v1/caches/{cacheId}/entries/{entryId} ` to delete a cached response from the cache.
107111
@@ -115,3 +119,11 @@ DELETE https://[host]/v1/caches/{cacheId}/entries
115119 }
116120}
117121```
122+ ## LangCache SDK
123+
124+ If your app is written in Javascript or Python, you can also use the LangCache Software Development Kits (SDKs) to access the API.
125+
126+ To learn how to use the LangCache SDKs:
127+
128+ - [ LangCache SDK for Javascript] ( https://www.npmjs.com/package/@redis-ai/langcache )
129+ - [ LangCache SDK for Python] ( https://pypi.org/project/langcache/ )
0 commit comments