From 7ba172334b04a92b2884f6c61928ea8f690e6677 Mon Sep 17 00:00:00 2001 From: Takanori Ugai Date: Wed, 12 Jul 2023 18:32:37 +0900 Subject: [PATCH] Remove a duplicated message. (#20) Remove a unnecessary duplicated message. --- .../dev/langchain4j/chain/ConversationalRetrievalChain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain4j/src/main/java/dev/langchain4j/chain/ConversationalRetrievalChain.java b/langchain4j/src/main/java/dev/langchain4j/chain/ConversationalRetrievalChain.java index b847d30243d..90ce5514ed6 100644 --- a/langchain4j/src/main/java/dev/langchain4j/chain/ConversationalRetrievalChain.java +++ b/langchain4j/src/main/java/dev/langchain4j/chain/ConversationalRetrievalChain.java @@ -93,6 +93,6 @@ private static String format(List> relevantEmbed return ""; } - return "Base your answer on the following information:\n" + concatenatedEmbeddings; + return concatenatedEmbeddings; } }