Cider.NET
0.1.11
See the version list below for details.
dotnet add package Cider.NET --version 0.1.11
NuGet\Install-Package Cider.NET -Version 0.1.11
<PackageReference Include="Cider.NET" Version="0.1.11" />
<PackageVersion Include="Cider.NET" Version="0.1.11" />
<PackageReference Include="Cider.NET" />
paket add Cider.NET --version 0.1.11
#r "nuget: Cider.NET, 0.1.11"
#:package Cider.NET@0.1.11
#addin nuget:?package=Cider.NET&version=0.1.11
#tool nuget:?package=Cider.NET&version=0.1.11
Cider.NET
Low-level System One decision model library (Choice, Score, Noul) for .NET, written in G#.
Cider.NET evaluates structured or unstructured application state against bounded, typed questions in a single prefill forward pass, reading next-token logits over permitted option labels to return calibrated probability distributions and confidence scores without autoregressive text generation.
Installation
dotnet add package Cider.NET
For in-process GGUF weight loading (libllama Metal/CPU P/Invoke and pure-G# selective LM-head projection), also install Cider.Native.
Quick Start (G#)
package Demo
import Cider
import System
let backend = OllamaRawBackend("http://127.0.0.1:11434")
let client = DecisionClient(backend, "qwen3:0.6b")
let req = DecisionRequest.Create(
"qwen3:0.6b",
"Customer says: I was charged twice on my invoice and need an immediate refund.",
NamedQuestion("team", Question.Choice(
"Which team should handle this ticket?",
ChoiceOption("billing", "Invoices, charges, and refunds"),
ChoiceOption("technical", "Product bugs and outages")
)),
NamedQuestion("urgency", Question.Score(
"How urgent is this request?",
"Routine", "Time-sensitive", "Critical"
)),
NamedQuestion("refund", Question.Noul("Is the customer explicitly requesting a refund?"))
)
let resp = client.Decide(req)
Console.WriteLine("Team: ${resp.GetAnswer("team")?.SelectedChoice}")
Console.WriteLine("Urgency: ${resp.GetAnswer("urgency")?.ScoreValue}")
Console.WriteLine("Refund P(yes): ${resp.GetAnswer("refund")?.NoulValue}")
Features
- Three Decision Primitives:
Choice(up to 255 options),Score(up to 50 ordered rubric levels), andNoul(calibrated binary probability in[0, 1]). - Pluggable Prompt Policies:
PromptStructureV1(Simple-Jev v1),Tev1(Together AI Tev1), andDecider(Mapika/decider). - Position-Bias Cancellation:
Permutations = 2evaluates forward and reversed option orders and averages probabilities. - Anti-Injection State Fencing & Label-Mass Guard: Random 64-bit hex
<state-{nonce}>boundary tags andMinLabelMassenforcement. - Calibration Math: Jev 1.13
ChoiceConfidence&ScoreConfidence,EntropyConfidence,ExpectedCalibrationError(ECE),BrierScore,NegativeLogLikelihood, andFitTemperature.
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Cider.NET:
| Package | Downloads |
|---|---|
|
Cider.Native
In-process GGUF v3 weight loader, byte-level BPE tokenizer, K-row selective LM-head projection engine, and libllama Metal/CPU P/Invoke backend for Cider.NET. |
|
|
Hyperplane.Cider
Optional reader adapter for Hyperplane.NET: CiderEmbedder turns any Cider.NET IEmbeddingBackend (including Cider.Native's in-process llama.cpp LlamaEmbedder over GGUF models) into a Hyperplane IEmbedder with an honest, provenance-derived experimental profile. |
GitHub repositories
This package is not used by any popular GitHub repositories.