DotnetPrompt 1.0.0-alpha.1
See the version list below for details.
dotnet add package DotnetPrompt --version 1.0.0-alpha.1
NuGet\Install-Package DotnetPrompt -Version 1.0.0-alpha.1
<PackageReference Include="DotnetPrompt" Version="1.0.0-alpha.1" />
paket add DotnetPrompt --version 1.0.0-alpha.1
#r "nuget: DotnetPrompt, 1.0.0-alpha.1"
// Install DotnetPrompt as a Cake Addin #addin nuget:?package=DotnetPrompt&version=1.0.0-alpha.1&prerelease // Install DotnetPrompt as a Cake Tool #tool nuget:?package=DotnetPrompt&version=1.0.0-alpha.1&prerelease
Quick Start
DotnetPrompt is a dotnet library that provides tools for working with Large Language Models (LLMs) individually and combined in chains. Our library helps you integrate LLMs with other tools and resources to create powerful AI applications.
For example, let's say we want to create a ModelChain
that takes user message, formats it with a PromptTemplate
,
and sends it to an ChatGPT
LLM to generate funny responses to the message. This allows us to generate a response based on the user's input.
Note: For that example to work you would need OpenAI API key.
var llm = new ChatGptModel(Constants.OpenAIKey, ChatGptModelConfiguration.Default with
{
Temperature = 0.9f
});
var oneInputPrompt = new PromptTemplate("What's a funny response to '{message}'");
var chain = new ModelChain(oneInputPrompt, llm);
var executor = chain.GetExecutor();
Now we can run that chain only specifying input value.
var result = await executor.PromptAsync("I have some exciting news to share with you!");
Console.WriteLine(result);
> I hope it's not that you finally learned how to tie your shoes, because that's not that exciting.
Or with another input
var result2 = await executor.PromptAsync("Want to grab lunch later?");
Console.WriteLine(result2);
> I would, but I'm on a "seefood" diet - I see food and I eat it. So better not tempt me!
What is this?
Welcome to our library, which is designed to support the development of cutting-edge applications powered by Large Language Models (LLMs) in dotnet.
As you may know, LLMs are an exciting and rapidly-evolving technology that offers developers unprecedented natural language processing and generation capabilities. However, LLMs can achieve their full potential when used in conjunction with other sources of computation or knowledge.
Some examples of solutions that you could create using our library include:
- Summarization
- Question Answering
- Code Generation
- Chatbots
- and much more
Documentation
Please see the full documentation on:
- Getting started (installation, setting up the environment, simple examples)
- How-To examples (demos, integrations, helper functions)
- Reference (full API docs)
- Resources (high-level explanation of core concepts)
Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- DotnetPrompt.Abstractions (>= 1.0.0-alpha.1)
- System.Threading.Tasks.Dataflow (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DotnetPrompt:
Package | Downloads |
---|---|
DotnetPrompt.All
DotnetPrompt is a dotnet library that provides a set of tools for working with Large Language Models (LLMs) combined in chains. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-alpha.2.1 | 124 | 3/21/2023 |
1.0.0-alpha.2 | 140 | 3/18/2023 |
1.0.0-alpha.1 | 119 | 3/3/2023 |