prompt

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnswerCorrectnessInstructions added in v1.1.0

func AnswerCorrectnessInstructions() string

func AnswerCorrectnessSchema added in v1.1.0

func AnswerCorrectnessSchema() json.RawMessage

func AnswerRelevancyInstructions

func AnswerRelevancyInstructions() string

func AnswerRelevancySchema

func AnswerRelevancySchema() json.RawMessage

func BiasInstructions added in v1.1.0

func BiasInstructions() string

func BiasSchema added in v1.1.0

func BiasSchema() json.RawMessage

func BuildUserPrompt

func BuildUserPrompt(question, answer string, docs []Document) string

func BuildUserPromptWithExpected added in v1.1.0

func BuildUserPromptWithExpected(question, answer, expectedAnswer string, docs []Document) string

func BuildUserPromptWithExpectedAndInstructions added in v1.1.0

func BuildUserPromptWithExpectedAndInstructions(question, answer, expectedAnswer, expectedInstructions string, docs []Document) string

func CitationAccuracyInstructions added in v1.1.0

func CitationAccuracyInstructions() string

func CitationAccuracySchema added in v1.1.0

func CitationAccuracySchema() json.RawMessage

func CoherenceInstructions added in v1.1.0

func CoherenceInstructions() string

func CoherenceSchema added in v1.1.0

func CoherenceSchema() json.RawMessage

func CompletenessInstructions added in v1.1.0

func CompletenessInstructions() string

func CompletenessSchema added in v1.1.0

func CompletenessSchema() json.RawMessage

func ConcisenessInstructions added in v1.1.0

func ConcisenessInstructions() string

func ConcisenessSchema added in v1.1.0

func ConcisenessSchema() json.RawMessage

func ContextPrecisionInstructions added in v1.1.0

func ContextPrecisionInstructions() string

func ContextPrecisionSchema added in v1.1.0

func ContextPrecisionSchema() json.RawMessage

func ContextRecallInstructions added in v1.1.0

func ContextRecallInstructions() string

func ContextRecallSchema added in v1.1.0

func ContextRecallSchema() json.RawMessage

func ContextRelevancyInstructions added in v1.1.0

func ContextRelevancyInstructions() string

func ContextRelevancySchema added in v1.1.0

func ContextRelevancySchema() json.RawMessage

func FaithfulnessInstructions

func FaithfulnessInstructions() string

func FaithfulnessSchema

func FaithfulnessSchema() json.RawMessage

func GEvalInstructions added in v1.1.0

func GEvalInstructions(criteria string) string

func HallucinationInstructions added in v1.1.0

func HallucinationInstructions() string

func HallucinationSchema added in v1.1.0

func HallucinationSchema() json.RawMessage

func InstructionAdherenceInstructions added in v1.1.0

func InstructionAdherenceInstructions() string

func InstructionAdherenceSchema added in v1.1.0

func InstructionAdherenceSchema() json.RawMessage

func SummarizationQualityInstructions added in v1.1.0

func SummarizationQualityInstructions() string

func SummarizationQualitySchema added in v1.1.0

func SummarizationQualitySchema() json.RawMessage

func ToxicityInstructions added in v1.1.0

func ToxicityInstructions() string

func ToxicitySchema added in v1.1.0

func ToxicitySchema() json.RawMessage

Types

type Document

type Document struct {
	ID   string
	Text string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL