From dd40808d284631fa13ba746289dc0571a40d20b9 Mon Sep 17 00:00:00 2001 From: Alexandros Pappas Date: Thu, 27 Feb 2025 22:50:15 +0100 Subject: [PATCH] update documentation Signed-off-by: Alexandros Pappas --- .../modules/ROOT/pages/api/retrieval-augmented-generation.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc index 91f667bb264..d4054568a56 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc @@ -156,6 +156,8 @@ Pre-Retrieval modules are responsible for processing the user query to achieve t A component for transforming the input query to make it more effective for retrieval tasks, addressing challenges such as poorly formed queries, ambiguous terms, complex vocabulary, or unsupported languages. +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. + ===== CompressionQueryTransformer A `CompressionQueryTransformer` uses a large language model to compress a conversation history and a follow-up query