AzureAI.Community.SK.Connector.GitHub.Embeddings
1.0.0
dotnet add package AzureAI.Community.SK.Connector.GitHub.Embeddings --version 1.0.0
NuGet\Install-Package AzureAI.Community.SK.Connector.GitHub.Embeddings -Version 1.0.0
<PackageReference Include="AzureAI.Community.SK.Connector.GitHub.Embeddings" Version="1.0.0" />
paket add AzureAI.Community.SK.Connector.GitHub.Embeddings --version 1.0.0
#r "nuget: AzureAI.Community.SK.Connector.GitHub.Embeddings, 1.0.0"
// Install AzureAI.Community.SK.Connector.GitHub.Embeddings as a Cake Addin #addin nuget:?package=AzureAI.Community.SK.Connector.GitHub.Embeddings&version=1.0.0 // Install AzureAI.Community.SK.Connector.GitHub.Embeddings as a Cake Tool #tool nuget:?package=AzureAI.Community.SK.Connector.GitHub.Embeddings&version=1.0.0
AzureAI Community Microsoft Semantic Kernel Connector - GitHub Embeddings Model
The AzureAI.Community.SK.Connector.GitHub.Embeddings
This component provides a simplified way to connect the GitHub Embeddings Module for developing generative AI applications.
GitHub Embeddings Module
If you're looking to develop a generative AI application, GitHub Models offers a platform where you can discover and experiment with AI models at no cost.
Building a GitHub Model Connector
In this guide, we will walk you through simplified way to connect the GitHub Embeddings Module for developing generative AI applications.
Prerequisites
Install AzureAI.Community.SK.Connector.GitHub.Embeddings package from nuget server
Before you begin building the GitHub Connector, make sure you have the following prerequisites in place:
You'll need access rights to connect to the GitHub Module. To obtain these rights, please visit the following URL: https://github.com/marketplace/models. and Please watch this video to learn how to apply and create a token. Here is the URL: https://www.youtube.com/watch?v=RBWadYAQze8
Connector Building Steps
Add Azure OpenAI Embedding
var gitHubOpenAITextEmbeddingGenerationService = new GitHubAzureOpenAITextEmbeddingService(
EmbeddingModelName,
Endpoint,
GitHubToken);
var result =
await gitHubOpenAITextEmbeddingGenerationService.GenerateEmbeddingsAsync(new List<string>()
{ "Hello how are you" });
Add OpenAI Embedding
var openAITextEmbeddingService = new GitHubOpenAITextEmbeddingService(
EmbeddingModelName,
Endpoint,
GitHubToken);
var result =
await openAITextEmbeddingService.GenerateEmbeddingsAsync(new List<string>()
{ "Hello how are you" });
EmbeddingModelName
: Get this from your GitHub Module.Endpoint
: Find this in your GitHub Module.GITHUB_TOKEN
: Obtain this from your GitHub account settings page.
Subscribe to the YouTube channel
Learn Microsoft AI to learn more about Microsoft Semantic Kernel and GitHub Models.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.SemanticKernel (>= 1.18.1-rc)
- Microsoft.SemanticKernel.Connectors.OpenAI (>= 1.18.1-rc)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 96 | 9/2/2024 |