models

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateResponse

type GenerateResponse struct {
	Result *string
}

type GenerateResult

type GenerateResult struct {
	SingleResult  *string `json:"singleResult,omitempty"`
	GroupedResult *string `json:"groupedResult,omitempty"`
	Error         error   `json:"error,omitempty"`
}

GenerateResult used in generative OpenAI module to represent the answer to a given question

type RankResult added in v1.21.0

type RankResult struct {
	Score *float64 `json:"score,omitempty"`
}

Answer used in qna module to represent the answer to a given question

Jump to

Keyboard shortcuts

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