grader

package
v0.0.0-...-e986fc6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grader

type Grader struct {
	// contains filtered or unexported fields
}

func NewGrader

func NewGrader(cm model.BaseChatModel) *Grader

func (*Grader) Related

func (x *Grader) Related(ctx context.Context, doc *schema.Document, question string) (pass bool, err error)

func (*Grader) Retriever

func (x *Grader) Retriever(ctx context.Context, docs []*schema.Document, question string) (pass bool, err error)

Retriever 检查下检索到的结果是否能够回答当前问题

Jump to

Keyboard shortcuts

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