This repo demonstrates basic chat copilot capabilities of Semantic Kernel in Python. The example code includes the following:
- Basic copilot chat loop rendering output to the terminal
- Connecting Azure OpenAI chat and embedding models to the kernel
- Adding built-in Semantic Kernel plugins
- Custom semantic and native plugins
- Custom RAG plugin using Azure AI Search (using keyword search)
For a step-by-step explanation of the code see Getting started with Semantic Kernel.
- Clone this repo and open it in, e.g., VS Code.
- Rename .env.example to
.env
and populate it with your keys and endpoints for Azure AI / Azure OpenAI and Azure AI Search. - Install the requirements using
pip install -r requirements.txt
. - Customize the example plugin and search plugin to enable the kernel to execute custom code.
- Run the app.py to start the copilot. Type your chat input in the terminal.