querymodifiers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryModifiers = map[string]QueryModifier{
	"spellcheck": SpellcheckQueryModifier{},
}

Functions

This section is empty.

Types

type QueryModifier

type QueryModifier interface {
	ModifyQuery(query string) (string, error)
}

func GetQueryModifier

func GetQueryModifier(name string) (QueryModifier, error)

type SpellcheckQueryModifier

type SpellcheckQueryModifier struct {
	LLM llm.LLM
}

func (SpellcheckQueryModifier) ModifyQuery

func (s SpellcheckQueryModifier) ModifyQuery(query string) (string, error)

Jump to

Keyboard shortcuts

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