ent

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOpenAIDocumentType    = "text"
	DefaultOpenAIModel           = "text-embedding-3-small"
	DefaultVectorizeClassName    = true
	DefaultPropertyIndexed       = true
	DefaultVectorizePropertyName = false
	DefaultBaseURL               = "https://api.openai.com"
	DefaultApiVersion            = "2024-02-01"
	LowerCaseInput               = false
)
View Source
const (
	TextEmbedding3Small = "text-embedding-3-small"
	TextEmbedding3Large = "text-embedding-3-large"
)

Variables

View Source
var (
	TextEmbedding3SmallDefaultDimensions int64 = 1536
	TextEmbedding3LargeDefaultDimensions int64 = 3072
)

Functions

func GetRateLimitsFromHeader added in v1.25.0

func GetRateLimitsFromHeader(header http.Header) *modulecomponents.RateLimits

func NewClassSettings added in v1.25.0

func NewClassSettings(cfg moduletools.ClassConfig) *classSettings

func PickDefaultDimensions added in v1.25.0

func PickDefaultDimensions(model string) *int64

func PickDefaultModelVersion added in v1.25.0

func PickDefaultModelVersion(model, docType string) string

Types

type VectorizationConfig

type VectorizationConfig struct {
	Type, Model, ModelVersion, ModelString, ResourceName string
	BaseURL                                              string
	DeploymentID                                         string `json:"deploymentId"`
	ApiVersion                                           string
	IsAzure                                              bool
	IsThirdPartyProvider                                 bool
	Dimensions                                           *int64
}

Jump to

Keyboard shortcuts

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