ai-samples  by dotnet

.NET samples for integrating AI into applications

created 1 year ago
788 stars

Top 45.4% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides .NET samples for integrating AI capabilities into applications, targeting .NET developers looking to leverage Azure AI services and large language models (LLMs). It offers practical examples and foundational libraries to simplify AI adoption in .NET projects.

How It Works

The project showcases the Microsoft.Extensions.AI libraries, which provide a unified C# abstraction layer for interacting with various AI services, including LLMs and embeddings. This approach offers a consistent API, flexibility to switch AI providers, and componentization for easier testing and extension. It also includes Microsoft.Extensions.AI.Evaluation for assessing LLM response quality.

Quick Start & Requirements

  • Samples are typically run using .NET SDK.
  • Requires .NET 6 or later.
  • Many samples require API keys for Azure OpenAI or other AI services.
  • Refer to individual sample directories for specific setup instructions and dependencies.
  • AI Samples for .NET

Highlighted Details

  • Demonstrates integration with Azure OpenAI, OpenAI, Azure AI Inference, and Ollama.
  • Includes samples for text summarization, chat applications, and function calling.
  • Features a "Customer Support" project showcasing AI integration in .NET apps.
  • Provides links to YouTube tutorials and corresponding GitHub code for specific AI techniques.

Maintenance & Community

  • This project is part of the .NET Foundation.
  • Follows the .NET Foundation Code of Conduct.

Licensing & Compatibility

  • Licensed under the MIT license.
  • Permissive license suitable for commercial use and integration into closed-source applications.

Limitations & Caveats

Some libraries are in preview, indicating potential for breaking changes. Specific AI service integrations require valid API keys and may incur costs.

Health Check
Last commit

4 days ago

Responsiveness

1+ week

Pull Requests (30d)
2
Issues (30d)
0
Star History
50 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.