Code examples of Semantic Kernel with Java SDK (v1.3.0)
- Create Azure Open AI resource in Azure portal and deploy 'gpt-x' models there OR use an OpenAI key.
- Rename
src/main/resources/conf.properties.example
tosrc/main/resources/conf.properties
and update it with the details.
Example01_InlineFunction.class
> Demonstrates, how to initialize a Kernel and use an Inline function with Azure Open AI(AOAI).Example02_SummarizerAsPrompt.class
> Demonstrates, how to use a Plugin and Function from skills directory with a skprompt.txt and config.json.Example03_KernelPluginAsClass.class
> Demonstrates, how to use a Plugin defined as class.Example04_PluginAutoInvocation.class
> Demonstrates, how to let Kernel auto-invoke Plugins and Functions depending on the task given.Example05_CustomObjectFromPlugin.class
> Demonstrates, how to configure and use custom converters if a function returns or accepts custom object.Example06_Example06_AzureAISearch.class
> Demonstrates, how to use AI Search as vector db for searches. (uses an existing index in Azure Search)