Skip to content

Commit 282d7cb

Browse files
committed
update documentation
Signed-off-by: Alexandros Pappas <[email protected]>
1 parent 3609c91 commit 282d7cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Pre-Retrieval modules are responsible for processing the user query to achieve t
156156
A component for transforming the input query to make it more effective for retrieval tasks, addressing challenges
157157
such as poorly formed queries, ambiguous terms, complex vocabulary, or unsupported languages.
158158

159+
IMPORTANT: When using a `QueryTransformer`, it's recommended to configure the `ChatClient.Builder` with a low temperature (e.g., 0.0) to ensure more deterministic and accurate results, improving retrieval quality. The default temperature for most chat models is typically too high for optimal query transformation, leading to reduced retrieval effectiveness.
160+
159161
===== CompressionQueryTransformer
160162

161163
A `CompressionQueryTransformer` uses a large language model to compress a conversation history and a follow-up query
@@ -378,4 +380,4 @@ QueryAugmenter queryAugmenter = ContextualQueryAugmenter.builder()
378380
----
379381

380382
The prompts used by this component can be customized via the `promptTemplate()` and `emptyContextPromptTemplate()` methods
381-
available in the builder.
383+
available in the builder.

0 commit comments

Comments
 (0)