ent

package
v1.26.14 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalTokens added in v1.25.25

func GetTotalTokens(usage *Usage) int

Types

type DocumentScore

type DocumentScore struct {
	Document string
	Score    float64
}

type RankResult

type RankResult struct {
	Query          string
	DocumentScores []DocumentScore
}

type Usage added in v1.25.25

type Usage struct {
	CompletionTokens int `json:"completion_tokens,omitempty"`
	PromptTokens     int `json:"prompt_tokens,omitempty"`
	TotalTokens      int `json:"total_tokens,omitempty"`
}

Jump to

Keyboard shortcuts

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