Plugins
One of the greatest strengths of Microsoft Semantic Kernel is that you can create semantic plugins that are language agnostic. Semantic plugins are collections of semantic functions that can be imported into the kernel. Creating semantic plugins allows you to separate your code from the AI function, which makes your application easier to maintain. It also allows other people to work on the prompts, making it easier to implement prompt engineering, which will be explored in Chapter 2.
Each function is defined by a directory containing two text files: config.json
, which contains the configuration for the semantic function, and skprompt.txt
, which contains its prompt.
The configuration of the semantic function includes the preferred engine to use, the temperature parameter, and a description of what the semantic function does and its inputs.
The text file contains the prompt that will be sent to the AI service to generate the response.
In this section, we are going...