Build Advanced Chatbots with Semantic Kernel
Semantic Kernel chat completion skill with streaming, history management, and logit bias for building conversational AI applications.
Why it matters
Develop sophisticated chatbots capable of managing conversation history, streaming responses, and implementing advanced features like logit bias for controlled output. This asset leverages Semantic Kernel to streamline the creation of intelligent conversational agents.
Outcomes
What it gets done
Implement streaming chat completions for real-time user interaction.
Manage and reduce conversation history to maintain context efficiently.
Apply logit bias to guide the chatbot's responses.
Integrate image understanding into chat interactions.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/sk-concept-chatcompletion | bash Capabilities
What this skill does
Implement streaming chat completions for real-time user interaction.
Manage and reduce conversation history to maintain context efficiently.
Apply logit bias to guide the chatbot's responses.
Integrate image understanding into chat interactions.
Overview
Semantic Kernel - Chat Completion
What it does
A collection of 11 Python examples demonstrating chat completion patterns with Semantic Kernel, including streaming responses, conversation history management using summary and truncation reducers with auto-reduce capabilities, and logit bias configuration.
How it connects
Best for developers building chatbot applications who need practical examples of streaming chat responses, implementing conversation history reduction strategies, or controlling token generation through logit bias in Semantic Kernel.
Source README
Chat completion with Semantic Kernel: chatbots, streaming, history management, logit bias
Examples (11 files):
simple_chatbot.pysimple_chatbot_kernel_function.pysimple_chatbot_logit_bias.pysimple_chatbot_store_metadata.pysimple_chatbot_streaming.pysimple_chatbot_with_image.pysimple_chatbot_with_summary_history_reducer.pysimple_chatbot_with_summary_history_reducer_autoreduce.pysimple_chatbot_with_summary_history_reducer_keep_func_content.pysimple_chatbot_with_truncation_history_reducer.pysimple_chatbot_with_truncation_history_reducer_autoreduce.py
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.