Table of Contents

Class PromptTemplate

Namespace
OobaboogaAPIHelper
Assembly
DougWare.OobaboogaAPIHelper.dll

Base class for prompt templates with reasonable, but arbitrary defaults.

public class PromptTemplate
Inheritance
PromptTemplate
Derived
Inherited Members

Fields

BotNameReplacementToken

public readonly string BotNameReplacementToken

Field Value

string

HumanNameReplacementToken

public readonly string HumanNameReplacementToken

Field Value

string

HumanPromptReplacementToken

public readonly string HumanPromptReplacementToken

Field Value

string

SystemPromptReplacementToken

public readonly string SystemPromptReplacementToken

Field Value

string

Properties

BotName

The label for the bot in the prompt.

public virtual string BotName { get; set; }

Property Value

string

HumanName

The label for the human in the prompt.

public virtual string HumanName { get; set; }

Property Value

string

SystemPrompt

Appears at the beginning of the prompt.

public virtual string SystemPrompt { get; set; }

Property Value

string

eos_token

The token to use for the end of a round. If there is one, this divides the prompt into multiple rounds.

public virtual string eos_token { get; set; }

Property Value

string

stopping_strings

When the response produced one of the strings, the bot will stop generating text. These keep the bot from talking to itself.

public virtual List<string> stopping_strings { get; set; }

Property Value

List<string>