Skip to content

Commit b1d9eaa

Browse files
authored
Merge pull request #2564 from redis/DOC-5061
RC Q4 Rebrand: Langcache
2 parents 762a19a + 27dad59 commit b1d9eaa

20 files changed

+41
-22
lines changed

content/operate/rc/langcache/create-service.md

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,39 @@ LangCache does not support the following databases during public preview:
3232

3333
From the [Redis Cloud console](https://cloud.redis.io/), select **LangCache** from the left-hand menu.
3434

35-
When you access the LangCache page for the first time, you will see a page with an introduction to LangCache. Select **Let's create a service** to create your first service.
35+
If you have not already created a LangCache service, you'll see a page with an introduction to LangCache. Otherwise, select **New service** to go to the LangCache introduction page.
3636

37-
{{<image filename="images/rc/langcache-create-first-service.png" alt="The Let's create a service button." width="200px" >}}
37+
{{<image filename="images/rc/langcache-new-service.png" alt="The New service button." width="150px" >}}
3838

39-
If you have already created a LangCache service, select **New service** to create another one.
39+
From here:
4040

41-
{{<image filename="images/rc/langcache-new-service.png" alt="The New service button." width="150px" >}}
41+
- Select **Quick create** to create a LangCache service with default settings using your Free 30MB database. If you haven't created a Free database yet, Redis Cloud will create one and set up the LangCache service for you.
42+
43+
{{<image filename="images/rc/langcache-quick-create.png" alt="The Quick create button." width="150px" >}}
44+
45+
After Redis Cloud creates your LangCache service, a window containing your LangCache service key will appear. Select **Copy** to copy the key to your clipboard.
46+
47+
{{<image filename="images/rc/langcache-service-key.png" alt="The LangCache service key window. Use the Copy button to save the service key to the clipboard." >}}
48+
49+
{{<warning>}}
50+
This is the only time the value of the user key is available. Save it to a secure location before closing the dialog box.<br/><br/>
4251

43-
This takes you to the **Create LangCache service** page. The page is divided into the following sections:
52+
If you lose the service key value, you will need to [generate a new service key]({{< relref "/operate/rc/langcache/view-edit-cache#replace-service-api-key" >}}) to be able to use the LangCache API.
53+
{{</warning>}}
54+
55+
After your cache is created, you can [use the LangCache API]({{< relref "/operate/rc/langcache/use-langcache" >}}) from your client app.
56+
57+
You can also [view and edit the cache]({{< relref "/operate/rc/langcache/view-edit-cache" >}}) and [monitor the cache's performance]({{< relref "/operate/rc/langcache/monitor-cache" >}}).
58+
59+
- If you want to customize your LangCache service, select **Create custom service**.
4460

45-
1. The [General settings](#general-settings) section defines basic properties of your service.
46-
1. The [Embedding settings](#embedding-settings) section defines the embedding model used by your service.
47-
1. The [Attributes settings](#attributes-settings) section allows you to define attributes for your service.
61+
{{<image filename="images/rc/langcache-custom-service.png" alt="The Create custom service button." width="150px" >}}
62+
63+
This takes you to the **Create LangCache service** page. The page is divided into the following sections:
64+
65+
1. The [General settings](#general-settings) section defines basic properties of your service.
66+
1. The [Embedding settings](#embedding-settings) section defines the embedding model used by your service.
67+
1. The [Attributes settings](#attributes-settings) section allows you to define attributes for your service.
4868

4969
### General settings
5070

@@ -57,19 +77,22 @@ The **General settings** section defines basic properties of your service.
5777
| **Service name** | Enter a name for your LangCache service. We recommend you use a name that describes your service's purpose. |
5878
| **Select database** | Select the Redis Cloud database to use for this service from the list. |
5979
| **TTL** | The time to live (TTL) for cache entries, in milliseconds. Default: `No expiration` - items in the cache will remain until manually removed. |
60-
| **User** | The [database access user]({{< relref "/operate/rc/security/access-control/data-access-control/role-based-access-control" >}}) to use for this service. LangCache only supports the [`default` user]({{< relref "/operate/rc/security/access-control/data-access-control/default-user" >}}) during public preview. |
80+
| **User for this service** | The [database access user]({{< relref "/operate/rc/security/access-control/data-access-control/role-based-access-control" >}}) to use for this service. LangCache only supports the [`default` user]({{< relref "/operate/rc/security/access-control/data-access-control/default-user" >}}) during public preview. |
6181

6282
### Embedding settings
6383

6484
The **Embedding settings** section defines the embedding model used by your service.
6585

6686
{{<image filename="images/rc/langcache-embedding-settings.png" alt="The Embedding settings section." >}}
6787

88+
Required settings depend on the embedding provider you select.
89+
6890
| Setting name |Description|
6991
|:----------------------|:----------|
70-
| **Embedding Provider** | The embedding provider to use for your service. Select between `Redis` and `OpenAI`. |
71-
| **Embedding provider API key** | Enter your embedding provider's API key if not using the default Redis embedding provider. |
72-
| **Model** | Select the embedding model to use for your service. |
92+
| **Embedding Provider** | The embedding provider to use for your service. Select between `Redis`, `OpenAI`, and `Bring your own`. <br/>Any embedding provider you use must support the [OpenAI embeddings API](https://platform.openai.com/docs/api-reference/embeddings). |
93+
| **Embedding provider API key** | Enter your embedding provider's API key *(`OpenAI` and `Bring your own` embedding providers only)* |
94+
| **Embedding provider URL** | Enter your embedding provider's API URL *(`Bring your own` embedding provider only)* |
95+
| **Model** | Select or enter the embedding model to use for your service. |
7396
| **Similarity threshold** | Set the minimum similarity score required to consider a cached response a match. Range: `0.5` to `1.0`. Default: `0.85`<br/><br/>A higher value means more precise matches, but if it's too high, you will compromise on the number of matches and may lose relevant matches. A lower value means more matches, but may include less relevant matches. We recommend starting between `0.8` and `0.9` and then fine-tuning based on your results. |
7497

7598
### Attributes settings
@@ -78,7 +101,7 @@ Attributes provide powerful scoping capabilities for your LangCache operations.
78101

79102
The **Attributes settings** section allows you to define attributes for your service. It is collapsed by default.
80103

81-
{{<image filename="images/rc/langcache-attribute-settings.png" alt="The Attributes settings section, expanded." >}}
104+
{{<image filename="images/rc/langcache-attribute-settings.png" alt="The Attributes settings section." >}}
82105

83106
LangCache allows you to define up to 5 custom attributes that align with your specific use case. To add a new attribute:
84107

@@ -92,7 +115,7 @@ LangCache allows you to define up to 5 custom attributes that align with your sp
92115

93116
After you save your custom attribute, it will appear in the list of custom attributes. Use the **Delete** button to remove it.
94117

95-
{{<image filename="images/rc/icon-delete-teal.png" width="36px" alt="Select the Delete button to delete the selected attribute." >}}
118+
{{<image filename="images/rc/icon-delete-lb.png" width="36px" alt="Select the Delete button to delete the selected attribute." >}}
96119

97120
You can also select **Add attribute** again to add an additional attribute.
98121

content/operate/rc/langcache/monitor-cache.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can monitor a LangCache service's performance from the **Metrics** tab of th
1717

1818
The **Metrics** tab provides a series of graphs showing performance data for your LangCache service.
1919

20-
You can switch between daily and weekly stats using the **Day** and **Week** buttons at the top of the page. Each graph also includes minimum, average, maximum, and latest values.
20+
You can switch between hourly, daily, and weekly stats using the **Hour**, **Day**, and **Week** buttons at the top of the page. Each graph also includes minimum, average, maximum, and latest values.
2121

2222
## LangCache metrics reference
2323

@@ -48,8 +48,4 @@ High cache latency may indicate one of the following:
4848
- Inefficient embedding generation from the embedding provider
4949
- Large cache requiring longer comparison times
5050
- Network latency between the cache and embedding provider
51-
- Resource constraints
52-
53-
### Cache items
54-
55-
The total number of entries stores in your cache. Each item includes the query string, embedding, response, and other metadata.
51+
- Resource constraints

content/operate/rc/langcache/view-edit-cache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The **Connectivity** section provides the connection details for your LangCache
3737
|:----------------------|:----------|
3838
| **API Key** | The Bearer token for your LangCache API requests. |
3939
| **Cache ID** | The unique ID of your LangCache service. |
40-
| **API Base URL** | The base URL for LangCache API requests. |
40+
| **URL List** | A list of base URLs for LangCache API requests. Use the closest URL for the best performance. |
4141

4242
Select the **Copy** button next to the Cache ID and API Base URL to copy them to the clipboard. If you lost the API key value or need to rotate the key, you can [generate a new service API key](#replace-service-api-key) at any time.
4343

@@ -51,7 +51,7 @@ To generate a new service key:
5151

5252
1. Select **Generate key**.
5353

54-
{{<image filename="images/rc/langcache-replace-key.png" alt="The Replace Key button." >}}
54+
{{<image filename="images/rc/langcache-replace-key.png" alt="The Generate Key button." >}}
5555

5656
1. A confirmation dialog will appear. Select **Confirm** to confirm.
5757

-2.64 KB
Loading
-5 Bytes
Loading
-7.77 KB
Loading
-635 Bytes
Loading
5.29 KB
Loading
-2.99 KB
Loading
-7.25 KB
Loading

0 commit comments

Comments
 (0)