Skip to content

About

Polyglot notebooks for getting started with LLMs in C# using Semantic Kernel and Azure OpenAI

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

Polyglot Notebooks with Semantic Kernel and C#

Welcome to the repository for polyglot notebooks demonstrating the ease of getting started with Large Language Models (LLMs) using Semantic Kernel and C#. This repository contains examples and documentation to help you integrate cutting-edge AI capabilities into your applications.

Working with the samples

The samples start with a number. I tried to start with simpler samples and than increase the complexity. The sample notebooks contain comments if new things are getting added or if something is different the in the more simpler samples.

Getting Started

To begin using the polyglot notebooks in this repository, you'll need to set up your environment with the necessary tools and extensions.

Prerequisites

The following models are used:

Cofigure Azure OpenAi Settings

Update the setting file

{
  "type": "azure", //azure or openai 
  "model": "", //for azure openai the deployment name
  "texttoimagemodel": "",//deployment name of the model used for text to image
  "endpoint": "", //endpoint of the azure openai serivce
  "apikey": "", //apikey from the azure openai serivce
  "aisearchendpoint": "", // azure ai search endpoint
  "aisearchkey": "" //azure ai search key
}

Using Polyglot Notebooks

Open the .ipynb files in VS Code with the Polyglot Notebooks extension to start experimenting with multiple programming languages in a single notebook.

Semantic Kernel Integration

Follow the documentation to integrate Semantic Kernel into your C# applications, enabling seamless orchestration of AI services.

Local models

Simple-Chat-Local uses a model hosted on the local machine.

For running the model Ollama is used.

After the installation, all we have to do is start the application and use the following cli command:

ollama run phi3:mini

This will download the model an run it locally.

Other Ollama supports many other models.

Resources

Contributing

Contributions to this repository are welcome.

License

This project is licensed under the MIT License.

Acknowledgments

  • Thanks to all the contributors who have helped with the development of these notebooks.
  • Special thanks to the Semantic Kernel team for providing the tools to integrate AI services.

About

Polyglot notebooks for getting started with LLMs in C# using Semantic Kernel and Azure OpenAI

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages