类 CompressingQueryTransformer

java.lang.Object
dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
所有已实现的接口:
QueryTransformer

public class CompressingQueryTransformer extends Object implements QueryTransformer
A QueryTransformer that leverages a ChatLanguageModel to condense a given Query along with a chat memory (previous conversation history) into a concise Query. This is applicable only when a ChatMemory is in use. Refer to DEFAULT_PROMPT_TEMPLATE and implementation for more details.

Configurable parameters (optional):
- promptTemplate: The prompt template used to instruct the LLM to compress the specified Query.
另请参阅: