Property Instruction
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
Instruction
Gets or sets the natural-language instruction used to guide the transcription.
public string Instruction { get; set; }
Property Value
Examples
var ocr = new VlmOcr(model)
{
Instruction = "Transcribe this page as Markdown."
};
Remarks
This instruction is provided to the underlying model along with the image and can be used to influence the output format (for example, plain text, lightly structured text, or other conventions supported by the model).
The initial value is automatically configured based on the Intent and the loaded model family. Setting this property overrides the model-level prompt while leaving the Intent (and therefore post-processing behavior) unchanged.
If set to null, the value is treated as an empty string.