mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
+64









John Oliver
Mark Wallace
Teresa Hoang
Gil LaHaye
Craig Presti
adityachallapally
Devis Lucato
Gina Triolo
Adrian Bonar
Gudge
Shawn Callegari
Roger Barreto
Stephen Toub
Jadyn
Lee Miller
name
Milder Hernandez Cagua
Milder Hernandez
Yoshio Terada
Almir Kazazic
Alexander Siniouguine
Harleen Thind
David Barkol
Mark Karle
poweihuang0817
Po-Wei Huang
Ikko Eltociear Ashimine
Adrian Bonar
Tao Chen
Vivien Hung
Abby Harrison
Abby Harrison
Devis Lucato
fabio fumarola
cdMSFT
Dmytro Struk
Lex Li
Damir Dobric
dependabot[bot]
Aman Sachan
Joowon
Richard Edgar
nacharya1
Kevdome3000
tech
Masumi Morishige
Alex Chao
Alex Chao
markwallace-microsoft
David Grieve
Bruno Borges
Martijn Verburg
Luigi Montoya
joe-braley
Luigi96
GitHub
Derek Keeler
Joe Braley
Craig Presti
cschadewitz
Desmond Howard
Jean-Sylvain Boige
Dave Arlin
Ben Thomas
Ben Thomas
Sebastian Santoyo
sneha
Alisha Maddy
Alisha Maddy
Sneha
Guy Bowerman
kshitijcode
dantelmomsft
Vikram Seshadri
6d574f263b
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Mark Wallace <[email protected]> Co-authored-by: Teresa Hoang <[email protected]> Co-authored-by: Gil LaHaye <[email protected]> Co-authored-by: Craig Presti <[email protected]> Co-authored-by: adityachallapally <[email protected]> Co-authored-by: Devis Lucato <[email protected]> Co-authored-by: Gina Triolo <[email protected]> Co-authored-by: Adrian Bonar <[email protected]> Co-authored-by: Gudge <[email protected]> Co-authored-by: Shawn Callegari <[email protected]> Co-authored-by: Roger Barreto <[email protected]> Co-authored-by: Stephen Toub <[email protected]> Co-authored-by: Jadyn <[email protected]> Co-authored-by: Lee Miller <[email protected]> Co-authored-by: name <email> Co-authored-by: Milder Hernandez Cagua <[email protected]> Co-authored-by: Milder Hernandez <[email protected]> Co-authored-by: Yoshio Terada <[email protected]> Co-authored-by: Almir Kazazic <[email protected]> Co-authored-by: Alexander Siniouguine <[email protected]> Co-authored-by: Harleen Thind <[email protected]> Co-authored-by: David Barkol <[email protected]> Co-authored-by: Mark Karle <[email protected]> Co-authored-by: poweihuang0817 <[email protected]> Co-authored-by: Po-Wei Huang <[email protected]> Co-authored-by: Ikko Eltociear Ashimine <[email protected]> Co-authored-by: Adrian Bonar (HE/HIM) <[email protected]> Co-authored-by: Tao Chen <[email protected]> Co-authored-by: Vivien Hung <[email protected]> Co-authored-by: Abby Harrison <[email protected]> Co-authored-by: Abby Harrison <[email protected]> Co-authored-by: Devis Lucato <[email protected]> Co-authored-by: fabio fumarola <[email protected]> Co-authored-by: cdMSFT <[email protected]> Co-authored-by: Dmytro Struk <[email protected]> Co-authored-by: Lex Li <[email protected]> Co-authored-by: Damir Dobric <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aman Sachan <[email protected]> Co-authored-by: Joowon <[email protected]> Co-authored-by: Richard Edgar <[email protected]> Co-authored-by: nacharya1 <[email protected]> Co-authored-by: Kevdome3000 <[email protected]> Co-authored-by: tech <[email protected]> Co-authored-by: Masumi Morishige <[email protected]> Co-authored-by: Alex Chao <[email protected]> Co-authored-by: Alex Chao <[email protected]> Co-authored-by: markwallace-microsoft <[email protected]> Co-authored-by: David Grieve <[email protected]> Co-authored-by: Bruno Borges <[email protected]> Co-authored-by: Martijn Verburg <[email protected]> Co-authored-by: Luigi Montoya <[email protected]> Co-authored-by: joe-braley <[email protected]> Co-authored-by: Luigi96 <[email protected]> Co-authored-by: GitHub <[email protected]> Co-authored-by: Derek Keeler <[email protected]> Co-authored-by: Joe Braley <[email protected]> Co-authored-by: Craig Presti <[email protected]> Co-authored-by: cschadewitz <[email protected]> Co-authored-by: Desmond Howard <[email protected]> Co-authored-by: Jean-Sylvain Boige <[email protected]> Co-authored-by: Dave Arlin <[email protected]> Co-authored-by: Ben Thomas <[email protected]> Co-authored-by: Ben Thomas <[email protected]> Co-authored-by: Sebastian Santoyo <[email protected]> Co-authored-by: sneha <[email protected]> Co-authored-by: Alisha Maddy <[email protected]> Co-authored-by: Alisha Maddy <[email protected]> Co-authored-by: Sneha <[email protected]> Co-authored-by: Guy Bowerman <[email protected]> Co-authored-by: kshitijcode <[email protected]> Co-authored-by: dantelmomsft <[email protected]> Co-authored-by: Vikram Seshadri <[email protected]>
5.2 KiB
5.2 KiB
Semantic Kernel for Java Packages
The Semantic Kernel has the packages below, all are under the groupId com.microsoft.semantic-kernel, and can be imported
to maven.
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-api</artifactId>
</dependency>
A BOM is provided that can be used to define the versions of all Semantic Kernel packages.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-bom</artifactId>
<version>${semantickernel.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Common Packages
semantickernel-bom- A Maven project BOM that can be used to define the versions of all Semantic Kernel packages.
semantickernel-api- Package that defines the core public API for the Semantic Kernel for a Maven project.
semantickernel-core- The internal implementation of the Semantic Kernel API. This package contains the core implementation of the Semantic Kernel. This must be made available to the application at runtime. Note that these classes are considered internal and should not be used directly by the application. Should they be used directly, it could cause instability in the application as they may change without notice over time.
Connectors
semantickernel-connectors-ai-openai- Provides a connector that can be used to interact with the OpenAI API.
Memory Connectors
JDBC Memory Connectors
semantickernel-connectors-memory-jdbc- A package that serves as a parent for all JDBC based connectors, adding a new JDBC database should be a matter of extending the classes within this module.
Provides a memory connector that can be used to interact with a JDBC database.
semantickernel-connectors-memory-sqlitesemantickernel-connectors-memory-postgresqlsemantickernel-connectors-memory-mysql
semantickernel-connectors-memory-azurecognitivesearch- Provides a memory connector for using Azure Cognitive Search as the memory provider for an application.
Miscellaneous Packages
semantickernel-planners- Implementations of various planners that can be used in the execution of semantic functions.
semantickernel-plugin-core- Several example plugins, many of which are used in the Semantic Kernel for Java samples.
semantickernel-gpt3-tokenizer- A tokenizer that can be used to tokenize text for use with GPT-3. Can be used to estimate cost.
Example Configurations
Example: OpenAI + SQLite
POM XML for a simple project that uses OpenAI for text or chat completion with an SQLite database as the memory provider.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-bom</artifactId>
<version>${semantickernel.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-api</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-core</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-connectors-ai-openai</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-connectors-memory-sqlite</artifactId>
</dependency>
</dependencies>
Example: Planner using Open AI + Cognitive Search
The POM XML content for a project that uses Open AI for planning, using Azure Cognitive Search as the memory provider.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-bom</artifactId>
<version>${semantickernel.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-api</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-core</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-connectors-ai-openai</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-connectors-memory-azurecognitivesearch</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.semantic-kernel</groupId>
<artifactId>semantickernel-planners</artifactId>
</dependency>
</dependencies>