Merge pull request #583 from iceljc/features/refine-knowledge-base

fix string join
This commit is contained in:
iceljc 2024-08-09 16:44:20 -05:00 committed by GitHub
commit 0c34e2e4dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,8 @@ public class KnowledgeRetrievalFn : IFunctionCallback
if (!knowledges.IsNullOrEmpty())
{
message.Content = string.Join("\r\n\r\n=====\r\n", knowledges);
var answers = knowledges.Select(x => x.Data[KnowledgePayloadName.Answer]).ToList();
message.Content = string.Join("\r\n\r\n=====\r\n", answers);
}
else
{