Before starting to explore how you can interact with a LLM with Semantic Kernel and C# code it is interesting to view how you can invoke a python script directly from C#.
This is needed because often you have very simple python code to interact with some model (ex: use OpenAI whisper to extract transcript from audio file) that is difficult to translate in C#.
Being able to call python function from C# is the starting point to use Semantic Kernel without any problem.
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
00:00 - Introduction to Semantic Kernel in C#
00:57 - Interacting with AI Models using C# and Python
02:04 - Creating a Python Wrapper for C# Integration
03:38 - Capturing Python Script Output in C#
04:19 - Setting Up the Python Environment for C# Integration
05:39 - Running the Python Script and Handling Output in C#
07:31 - Conclusions
29 июл 2024