modopenai

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "text2vec-openai"

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIModule

type OpenAIModule struct {
	// contains filtered or unexported fields
}

func New

func New() *OpenAIModule

func (*OpenAIModule) AdditionalProperties

func (m *OpenAIModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty

func (*OpenAIModule) Arguments

func (*OpenAIModule) ClassConfigDefaults

func (m *OpenAIModule) ClassConfigDefaults() map[string]interface{}

func (*OpenAIModule) Init

func (*OpenAIModule) InitExtension

func (m *OpenAIModule) InitExtension(modules []modulecapabilities.Module) error

func (*OpenAIModule) MetaInfo

func (m *OpenAIModule) MetaInfo() (map[string]interface{}, error)

func (*OpenAIModule) Name

func (m *OpenAIModule) Name() string

func (*OpenAIModule) PropertyConfigDefaults

func (m *OpenAIModule) PropertyConfigDefaults(
	dt *schema.DataType,
) map[string]interface{}

func (*OpenAIModule) RootHandler

func (m *OpenAIModule) RootHandler() http.Handler

func (*OpenAIModule) Type

func (*OpenAIModule) ValidateClass

func (m *OpenAIModule) ValidateClass(ctx context.Context,
	class *models.Class, cfg moduletools.ClassConfig,
) error

func (*OpenAIModule) VectorSearches

func (m *OpenAIModule) VectorSearches() map[string]modulecapabilities.VectorForParams

func (*OpenAIModule) VectorizeInput

func (m *OpenAIModule) VectorizeInput(ctx context.Context,
	input string, cfg moduletools.ClassConfig,
) ([]float32, error)

func (*OpenAIModule) VectorizeObject

func (m *OpenAIModule) VectorizeObject(ctx context.Context,
	obj *models.Object, objDiff *moduletools.ObjectDiff, cfg moduletools.ClassConfig,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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