Conversational chatbot using .Net Semantic Kernel and IChatCompletionService.GetChatMessageContentsAsync on company's data #11425
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We recommend managing the chat history and sending the whole chat history and not just the previous message - here's a good blog post on managing the chat history (https://devblogs.microsoft.com/semantic-kernel/managing-chat-history-for-large-language-models-llms/#:~:text=Starting%20with%20Semantic%20Kernel%20version%201.35.0%20chat%20history,messages%20or%20you%20can%20implement%20your%20own%20reducer.) - you'll also want to truncate the message history if it becomes too large. |
Beta Was this translation helpful? Give feedback.
-
Thanks @sophialagerkranspandey |
Beta Was this translation helpful? Give feedback.
We recommend managing the chat history and sending the whole chat history and not just the previous message - here's a good blog post on managing the chat history (https://devblogs.microsoft.com/semantic-kernel/managing-chat-history-for-large-language-models-llms/#:~:text=Starting%20with%20Semantic%20Kernel%20version%201.35.0%20chat%20history,messages%20or%20you%20can%20implement%20your%20own%20reducer.) - you'll also want to truncate the message history if it becomes too large.