Skip to content

Commit 0cfd654

Browse files
fangyan123123fangyan8
authored andcommitted
Fix: description of the fix. --signoff
Signed-off-by: fangyan8 <uV0ksdaL@02>
1 parent 08fadd0 commit 0cfd654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-rag/src/main/java/org/springframework/ai/rag/advisor/RetrievalAugmentationAdvisor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public ChatClientRequest before(ChatClientRequest chatClientRequest, @Nullable A
130130
.toList()
131131
.stream()
132132
.map(CompletableFuture::join)
133-
.collect(Collectors.toMap(Map.Entry::getKey, entry -> List.of(entry.getValue())));
133+
.collect(Collectors.toMap(Map.Entry::getKey, entry -> List.of(entry.getValue()), (v1, v2) -> v2));
134134

135135
// 4. Combine documents retrieved based on multiple queries and from multiple data
136136
// sources.

0 commit comments

Comments
 (0)