Add Context Support to Query in RetrievalAugmentationAdvisor

Signed-off-by: magicgone <magic4gone@gmail.com>
This commit is contained in:
magicgone
2025-02-28 18:12:44 +08:00
committed by Ilayaperumal Gopinathan
parent 6512ec4257
commit 206b9e220a

View File

@@ -106,6 +106,7 @@ public final class RetrievalAugmentationAdvisor implements BaseAdvisor {
Query originalQuery = Query.builder()
.text(new PromptTemplate(request.userText(), request.userParams()).render())
.history(request.messages())
.context(context)
.build();
// 1. Transform original user query based on a chain of query transformers.