An open API service indexing awesome lists of open source software.

https://github.com/tsjdev-apps/ms-exensions-ai-embeddings-sample

Repository containing a simple console application using Microsoft.Extensions.AI NuGet package to create embeddings.
https://github.com/tsjdev-apps/ms-exensions-ai-embeddings-sample

Last synced: 5 months ago
JSON representation

Repository containing a simple console application using Microsoft.Extensions.AI NuGet package to create embeddings.

Awesome Lists containing this project

README

          

# Using Microsoft.Extensions.AI to Generate Embeddings in .NET

![Header Image](/docs/header.png)

This repository contains a simple chat application built using the [`Microsoft.Extensions.AI`](https://www.nuget.org/packages/Microsoft.Extensions.AI) package in .NET. The project demonstrates how to integrate AI capabilities into a .NET application to create Embeddings.

## Usage

To test our application, you'll need either [Ollama](https://ollama.com/) running, a valid OpenAI API key or access to an active Azure OpenAI Service.

## Screenshots

The first screenshot demonstrates the host selection process.

![Sample 1](/docs/microsoft-extensions-ai-embeddings-01.png)

Based on your selection, you will be prompted to enter the necessary parameters.

![Sample 2](/docs/microsoft-extensions-ai-embeddings-02.png)

Finally, you can enter a text to generate the embeddings.

![Sample 3](/docs/microsoft-extensions-ai-embeddings-03.png)

## Blog Posts

If you are more interested into details, please see the following posts on [medium.com](https://medium.com/@tsjdevapps) or in my [personal blog](https://www.tsjdev-apps.de):

- [Using Microsoft.Extensions.AI to Generate Embeddings in .NET](https://medium.com/medialesson/using-microsoft-extensions-ai-to-generate-embeddings-in-net-0e6485180593)
- [Einrichtung von OpenAI](https://www.tsjdev-apps.de/einrichtung-von-openai/)
- [Einrichtung von Azure OpenAI](https://www.tsjdev-apps.de/einrichtung-von-azure-openai/)