LLMinstructPrompter.Abstract 1.0.0

dotnet add package LLMinstructPrompter.Abstract --version 1.0.0                
NuGet\Install-Package LLMinstructPrompter.Abstract -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LLMinstructPrompter.Abstract" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LLMinstructPrompter.Abstract --version 1.0.0                
#r "nuget: LLMinstructPrompter.Abstract, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LLMinstructPrompter.Abstract as a Cake Addin
#addin nuget:?package=LLMinstructPrompter.Abstract&version=1.0.0

// Install LLMinstructPrompter.Abstract as a Cake Tool
#tool nuget:?package=LLMinstructPrompter.Abstract&version=1.0.0                

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Code README</title> <style> body { font-family: Arial, sans-serif; line-height: 1.5; }

h1 {
  margin-top: 0;
}

h2 {
  margin-bottom: 0.5em;
}

pre {
  background-color: #f4f4f4;
  padding: 10px;
  overflow-x: auto;
}

code {
  font-family: Consolas, monospace;
}

</style> </head> <body> <h1>Code README</h1> <p>This package is contributed by Varun Setia</p> <h2>Table of Contents</h2> <ul> <li><a href="#singletaskrawoutputtest">SingleTaskRawOutputTest</a></li> <li><a href="#singletaskjsonoutputtest">SingleTaskJsonOutputTest</a></li> <li><a href="#singletaskcsvoutputtest">SingleTaskCsvOutputTest</a></li> <li><a href="#singletaskjsonlistoutputtest">SingleTaskJsonListOutputTest</a></li> <li><a href="#multipletasksjsonlistoutputtest">MultipleTasksJsonListOutputTest</a></li> <li><a href="#nosystemprompttest">NoSystemPromptTest</a></li> </ul>

<hr>

<h2 id="singletaskrawoutputtest">SingleTaskRawOutputTest</h2> <pre><code>public void SingleTaskRawOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get sentiment from text 'I am happy'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.Raw); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskjsonoutputtest">SingleTaskJsonOutputTest</h2> <pre><code>public void SingleTaskJsonOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get sentiment from text 'I am happy'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<SentimentTest>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskcsvoutputtest">SingleTaskCsvOutputTest</h2> <pre><code>public void SingleTaskCsvOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get words and count from text 'Coz I am happy happy happy, get along with me coz I am happy !!'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.CSV); promptDesigns.OutputObject<WordCount>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="singletaskjsonlistoutputtest">SingleTaskJsonListOutputTest</h2> <pre><code>public void SingleTaskJsonListOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Get words and count from text 'Coz I am happy happy happy, get along with me coz I am happy !!'" }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<List<WordCount>>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="multipletasksjsonlistoutputtest">MultipleTasksJsonListOutputTest</h2> <pre><code>public void MultipleTasksJsonListOutputTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTasks( new Abstract.Entities.PromptTask { Task = "Write the sad version of 'Coz I am happy happy happy, get along with me coz I am happy !!'" }, new Abstract.Entities.PromptTask { Task = "Finally, Extract the count of each word", Order = 2 }); promptBuilder.SetOutputUniqueness(Abstract.Entities.OutputRandomness.Low); promptDesigns.SetOutputFormat(Abstract.Entities.OutputType.JSON); promptDesigns.OutputObject<List<WordCount>>(); var prompt = promptDesigns.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

<h2 id="nosystemprompttest">NoSystemPromptTest</h2> <pre><code>public void NoSystemPromptTest() { promptDesigns = new PromptDesigns(); var promptBuilder = promptDesigns.SetTask(new Abstract.Entities.PromptTask { Task = "Write a poem" }).DiscardSystemPrompt(); var prompt = promptBuilder.GetPrompt(); Assert.IsNotNull(prompt); }</code></pre>

</body> </html>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LLMinstructPrompter.Abstract:

Package Downloads
LLMinstructPrompter

I will give you ability to purely focus on business use cases without needing to worry about prompt engineering. Download this package today designed to build best prompts in the world only for .NET. Github Repo - https://github.com/VARUN46/LLMinstructPrompter Release available at - https://github.com/VARUN46/LLMinstructPrompter

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 647 6/11/2023
0.0.0.1-alpha 556 6/11/2023