From the course: Building Apps with AI Tools: ChatGPT, Semantic Kernel, and Langchain

Unlock this course with a free trial

Join today to access over 24,200 courses taught by industry experts.

A simple summarizer with Semantic Kernel

A simple summarizer with Semantic Kernel

- [Instructor] Beyond just prompting and calling the OpenAI API yourself, there are many open source frameworks out there to help you out. One of them is Semantic Kernel, which is developed by Microsoft. Let's go ahead and install it. I'm currently on branch 03_01B. I'm going to change directory into my source folder. Now, let's go ahead and pip install our requirements. Pip install dash R requirements. There we go. We installed Semantic Kernel 0.3.4. Now we're going to go ahead and start using it. Let's head back to summarizer dot py. We're going to build a small summarization program using Semantic Kernel. Let's get started by initializing the kernel. Let's type in kernel equals SK dot kernel. Now, let's go ahead and get our API keys so we can call the OpenAI API. I'm going to type API key org ID equals SK dot OpenAI settings. Now inside of here, we're going to return our API key. One thing that's changed from…

Contents