File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
content/develop/ai/langcache Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ POST https://[host]/v1/caches/{cacheId}/entries/search
7676#### Search strategies
7777LangCache 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.
8383This 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" >}}
You can’t perform that action at this time.
0 commit comments