recall

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchQuery

func SearchQuery(query string) (res []string, err error)

SearchQuery 词条联想

func SearchRecall

func SearchRecall(ctx context.Context, query string) (res []*types.SearchItem, err error)

SearchRecall 词条回归

Types

type Recall

type Recall struct {
}

Recall 查询召回

func NewRecall

func NewRecall() *Recall

func (*Recall) Multiplex added in v0.1.3

func (r *Recall) Multiplex(ctx context.Context, query string, iRes, vRes []int64) (resp []*types.SearchItem, err error)

Multiplex 多路融合排序

func (*Recall) Search

func (r *Recall) Search(ctx context.Context, query string) (resp []*types.SearchItem, err error)

Search 入口

func (*Recall) SearchQueryWord added in v0.1.2

func (r *Recall) SearchQueryWord(query string) (resp []string, err error)

SearchQueryWord 入口词语联想

func (*Recall) SearchVector added in v0.1.2

func (r *Recall) SearchVector(ctx context.Context, queries []string) (docIds []int64, err error)

SearchVector 搜索向量

Jump to

Keyboard shortcuts

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