berecall

package
v2.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFilter

func RegisterFilter(name string, filter IBeFilter)

func RegisterFilterWithConfig

func RegisterFilterWithConfig(config *recconf.RecommendConfig)

Types

type BeTrigger

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

func (*BeTrigger) GetTriggerKey

func (t *BeTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

type FilterService

type FilterService struct {
	Filters map[string][]IBeFilter
}

func (*FilterService) AddFilter

func (fs *FilterService) AddFilter(scene string, filter IBeFilter)

func (*FilterService) AddFilters

func (fs *FilterService) AddFilters(scene string, filters []IBeFilter)

type FixValueTrigger

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

func (*FixValueTrigger) GetTriggerKey

func (t *FixValueTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

type IBeFilter

type IBeFilter interface {
	BuildQueryParams(user *module.User, context *context.RecommendContext) map[string]string
}

func GetFilter

func GetFilter(name string) (IBeFilter, error)

GetFilter get filter by the name

type TriggerKey

type TriggerKey interface {
	GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult
}

func NewTriggerKey

func NewTriggerKey(recallParam *recconf.BeRecallParam, client *beengine.BeClient) TriggerKey

type TriggerResult

type TriggerResult struct {
	TriggerItem       string
	DistinctParam     string
	DistinctParamName string
}

type U2IBaseTrigger

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

func NewU2IBaseTrigger

func NewU2IBaseTrigger(rulesConfig *recconf.UserTriggerRulesConfig) *U2IBaseTrigger

func (*U2IBaseTrigger) CreateTriggerResult

func (t *U2IBaseTrigger) CreateTriggerResult(triggerInfos []*module.TriggerInfo) *TriggerResult

type U2IRealtimeTrigger

type U2IRealtimeTrigger struct {
	*U2IBaseTrigger
	// contains filtered or unexported fields
}

func (*U2IRealtimeTrigger) GetTriggerKey

func (t *U2IRealtimeTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

type U2ITrigger

type U2ITrigger struct {
	*U2IBaseTrigger
	// contains filtered or unexported fields
}

func (*U2ITrigger) GetTriggerKey

func (t *U2ITrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

type User2ItemExposureFilter

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

user exposure history filter

func NewUser2ItemExposureFilter

func NewUser2ItemExposureFilter(config recconf.BeFilterConfig) *User2ItemExposureFilter

func (*User2ItemExposureFilter) BuildQueryParams

func (f *User2ItemExposureFilter) BuildQueryParams(user *module.User, context *context.RecommendContext) (ret map[string]string)

type UserEmbeddingDssmO2OTrigger

type UserEmbeddingDssmO2OTrigger struct {
	BizName    string
	RecallName string
	BeName     string
	// contains filtered or unexported fields
}

func (*UserEmbeddingDssmO2OTrigger) GetTriggerKey

type UserRealtimeEmbeddingMindTrigger

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

func (*UserRealtimeEmbeddingMindTrigger) GetTriggerKey

type UserRealtimeEmbeddingTrigger

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

func (*UserRealtimeEmbeddingTrigger) GetTriggerKey

type UserTrigger

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

func NewUserTrigger

func NewUserTrigger(userTriggers []recconf.TriggerConfig) *UserTrigger

func (*UserTrigger) GetTriggerKey

func (t *UserTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

type UserVectorTrigger

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

func NewUserVectorTrigger

func NewUserVectorTrigger(config *recconf.UserVectorTriggerConfig) *UserVectorTrigger

func (*UserVectorTrigger) GetTriggerKey

func (t *UserVectorTrigger) GetTriggerKey(user *module.User, context *context.RecommendContext) *TriggerResult

Jump to

Keyboard shortcuts

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