Skip to content

Commit fefa51f

Browse files
authored
Apply suggestions from code review
1 parent f38c3f9 commit fefa51f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/develop/ai/langcache/api-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ POST https://[host]/v1/caches/{cacheId}/entries/search
7676
#### Search strategies
7777
LangCache supports two search strategies when looking for a cached response:
7878

79-
- **EXACT**: Returns a result only when the stored prompt matches the query exactly (case insensitive).
80-
- **SEMANTIC**: Uses vector similarity to find semantically similar prompts and responses.
79+
- **`exact`**: Returns a result only when the stored prompt matches the query exactly (case insensitive).
80+
- `**semantic**`: Uses vector similarity to find semantically similar prompts and responses.
8181

82-
By default, LangCache uses SEMANTIC search. You can specify the search strategies you want to use in the request body.
82+
By default, LangCache uses `semantic` search only. You can specify one or more search strategies in the request body.
8383
This can be set as default in the cache settings page.
8484

8585
{{< clients-example set="langcache_sdk" step="search_strategies" dft_tab_name="REST API" footer="hide" >}}

0 commit comments

Comments
 (0)