Documentation
¶
Index ¶
Constants ¶
View Source
const CHARS_PER_TOKEN = 5
how many characters per token on average
View Source
const MAX_TOKENS_IN_PROMPT = 8000
Variables ¶
View Source
var SystemPromptBytes []byte
Functions ¶
Types ¶
type PromptTemplate ¶
type PromptTemplate struct {
// contains filtered or unexported fields
}
PromptTemplate is a simple wrapper around Go's text/template
func NewPromptTemplate ¶
func NewPromptTemplate(templateStr string, _ []string) *PromptTemplate
NewPromptTemplate creates a new prompt template using Go's text/template
Click to show internal directories.
Click to hide internal directories.