Class FewShotExample
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
Represents a single few-shot example with input and output.
public class FewShotExample
- Inheritance
-
FewShotExample
- Inherited Members
Remarks
For Beginners: A few-shot example is an input-output pair shown to the model.
Think of it like a flashcard:
- Front (Input): The question or task
- Back (Output): The correct answer or response
Example - Math tutoring: Input: "What is 5 + 3?" Output: "5 + 3 = 8"
Example - Code generation: Input: "Write a function to add two numbers" Output: "def add(a, b): return a + b"
Example - Translation: Input: "Good morning" Output: "Buenos días"
The model learns the pattern from these examples and applies it to new inputs.
Properties
Input
Gets or sets the input part of the example.
public string Input { get; set; }
Property Value
Metadata
Gets or sets optional metadata about the example.
public Dictionary<string, string> Metadata { get; set; }
Property Value
Remarks
Metadata can include information like creation date, source, category, quality score, or any other relevant information.
Output
Gets or sets the output part of the example.
public string Output { get; set; }