GitHub Projects project

Semantic Kernel - Microsoft AI SDK

Semantic Kernel Microsoft AI SDK LLM Integration

Overview

Semantic Kernel is an open-source SDK by Microsoft that lets you easily combine AI models with conventional programming languages like C#, Python, and Java.

Key Features

  • Multi-language: C#, Python, Java
  • Skills/Plugins: Modular AI capabilities
  • Kernels: Orchestrate AI operations
  • Memory: Vector storage integration
  • Azure Integration: Native Azure AI support

Quick Start (Python)

import semantic_kernel as sk
from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion

kernel = sk.Kernel()
kernel.add_chat_service("gpt-4", OpenAIChatCompletion("gpt-4", api_key))

result = await kernel.run_async(
    "What is the capital of France?"
)

Resources

View on GitHub

Source: GitHub