Skip to content

HenriSchulte-MS/Basic-Semantic-Kernel-Copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Semantic Kernel Copilot

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.

Running the Copilot

  1. Clone this repo and open it in, e.g., VS Code.
  2. Rename .env.example to .env and populate it with your keys and endpoints for Azure AI / Azure OpenAI and Azure AI Search.
  3. Install the requirements using pip install -r requirements.txt.
  4. Customize the example plugin and search plugin to enable the kernel to execute custom code.
  5. Run the app.py to start the copilot. Type your chat input in the terminal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages