Skip to content

sohamda/SemanticKernel-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SemanticKernel-Basics

Code examples of Semantic Kernel with Java SDK (v1.3.0)

Pre reqs to run the samples

  1. Create Azure Open AI resource in Azure portal and deploy 'gpt-x' models there OR use an OpenAI key.
  2. Rename src/main/resources/conf.properties.example to src/main/resources/conf.properties and update it with the details.

Samples

  1. Example01_InlineFunction.class > Demonstrates, how to initialize a Kernel and use an Inline function with Azure Open AI(AOAI).
  2. Example02_SummarizerAsPrompt.class > Demonstrates, how to use a Plugin and Function from skills directory with a skprompt.txt and config.json.
  3. Example03_KernelPluginAsClass.class > Demonstrates, how to use a Plugin defined as class.
  4. Example04_PluginAutoInvocation.class > Demonstrates, how to let Kernel auto-invoke Plugins and Functions depending on the task given.
  5. Example05_CustomObjectFromPlugin.class > Demonstrates, how to configure and use custom converters if a function returns or accepts custom object.
  6. Example06_Example06_AzureAISearch.class > Demonstrates, how to use AI Search as vector db for searches. (uses an existing index in Azure Search)

Documentation/Further reading

  1. Semantic Kernel Official Docs
  2. Semantic Kernel Github Repo
  3. In Depth Tutorials in Python & C#
  4. Samples in Java
  5. Sample Chat App in Java

About

Code examples of Semantic Kernel with Java SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages