Documentation ¶
Index ¶
- Constants
- type OpenAIModule
- func (m *OpenAIModule) AdditionalProperties() map[string]modulecapabilities.AdditionalProperty
- func (m *OpenAIModule) Arguments() map[string]modulecapabilities.GraphQLArgument
- func (m *OpenAIModule) ClassConfigDefaults() map[string]interface{}
- func (m *OpenAIModule) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (m *OpenAIModule) InitExtension(modules []modulecapabilities.Module) error
- func (m *OpenAIModule) MetaInfo() (map[string]interface{}, error)
- func (m *OpenAIModule) Name() string
- func (m *OpenAIModule) PropertyConfigDefaults(dt *schema.DataType) map[string]interface{}
- func (m *OpenAIModule) RootHandler() http.Handler
- func (m *OpenAIModule) Type() modulecapabilities.ModuleType
- func (m *OpenAIModule) ValidateClass(ctx context.Context, class *models.Class, cfg moduletools.ClassConfig) error
- func (m *OpenAIModule) VectorSearches() map[string]modulecapabilities.VectorForParams
- func (m *OpenAIModule) VectorizeInput(ctx context.Context, input string, cfg moduletools.ClassConfig) ([]float32, error)
- func (m *OpenAIModule) VectorizeObject(ctx context.Context, obj *models.Object, objDiff *moduletools.ObjectDiff, ...) error
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 (m *OpenAIModule) Arguments() map[string]modulecapabilities.GraphQLArgument
func (*OpenAIModule) ClassConfigDefaults ¶
func (m *OpenAIModule) ClassConfigDefaults() map[string]interface{}
func (*OpenAIModule) Init ¶
func (m *OpenAIModule) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
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 (m *OpenAIModule) Type() modulecapabilities.ModuleType
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
Click to show internal directories.
Click to hide internal directories.