client

package
v1.23.9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(origin string, timeout time.Duration, logger logrus.FieldLogger) *client

Types

type DocumentScore added in v1.21.0

type DocumentScore struct {
	Document string  `json:"document"`
	Score    float64 `json:"score"`
}

type RankInput

type RankInput struct {
	Query             string   `json:"query"`
	Documents         []string `json:"documents"`
	RankPropertyValue string   `json:"property"`
}

type RankResponse

type RankResponse struct {
	Query             string          `json:"query"`
	Scores            []DocumentScore `json:"scores"`
	RankPropertyValue string          `json:"property"`
	Score             float64         `json:"score"`
	Error             string          `json:"error"`
}

Jump to

Keyboard shortcuts

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