ai-samples  by dotnet

.NET samples for integrating AI into applications

Created 1 year ago
805 stars

Top 43.9% 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

1 week ago

Responsiveness

1+ week

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

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of "Artificial Intelligence: A Modern Approach"; Research Director at Google), Li Jiang Li Jiang(Coauthor of AutoGen; Engineer at Microsoft), and
8 more.

aisuite by andrewyng

0.1%
12k
Unified interface for multiple generative AI providers
Created 1 year ago
Updated 3 weeks ago
Feedback? Help us improve.