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.
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.
To begin using the polyglot notebooks in this repository, you'll need to set up your environment with the necessary tools and extensions.
- Install the latest .NET SDK.
- Install the Visual Studio Code (VS Code).
- Add the Polyglot Notebooks extension to VS Code.
- Azure OpenAI deployed to region which supports GPT4o and dall-e-3, can be chacked here
The following models are used:
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
}Open the .ipynb files in VS Code with the Polyglot Notebooks extension to start experimenting with multiple programming languages in a single notebook.
Follow the documentation to integrate Semantic Kernel into your C# applications, enabling seamless orchestration of AI services.
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:miniThis will download the model an run it locally.
Other Ollama supports many other models.
- Visual Studio Polyglot Extension - Enhance your notebook experience in VS Code with support for multiple languages.
- Semantic Kernel - An open-source SDK for integrating LLMs with conventional programming languages.
- Scott and Mark learn AI
Contributions to this repository are welcome.
This project is licensed under the MIT License.
- 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.