MCPcopy
hub / github.com/weaviate/weaviate / ReturnBatchTokenizer

Function ReturnBatchTokenizer

usecases/modulecomponents/batch/tokenization.go:51–53  ·  view source on GitHub ↗
(multiplier float32, moduleName string, lowerCaseInput bool)

Source from the content-addressed store, hash-verified

49type TokenizerFuncType func(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig, objectVectorizer *objectsvectorizer.ObjectVectorizer, encoderCache *EncoderCache) ([]string, []int, []bool, bool, error)
50
51func ReturnBatchTokenizer(multiplier float32, moduleName string, lowerCaseInput bool) TokenizerFuncType {
52 return ReturnBatchTokenizerWithAltNames(multiplier, moduleName, nil, lowerCaseInput)
53}
54
55func ReturnBatchTokenizerWithAltNames(multiplier float32, moduleName string, altNames []string, lowerCaseInput bool) TokenizerFuncType {
56 return func(ctx context.Context, objects []*models.Object, skipObject []bool, cfg moduletools.ClassConfig, objectVectorizer *objectsvectorizer.ObjectVectorizer, encoderCache *EncoderCache) ([]string, []int, []bool, bool, error) {

Callers 15

initVectorizerMethod · 0.92
TestBatchFunction · 0.92
initVectorizerMethod · 0.92
initVectorizerMethod · 0.92
initVectorizerMethod · 0.92
initVectorizerMethod · 0.92
TestBatchFunction · 0.92
initVectorizerMethod · 0.92
TestBatchFunction · 0.92
initVectorizerMethod · 0.92
initVectorizerMethod · 0.92
initVectorizerMethod · 0.92

Calls 1

Tested by 9

TestBatchFunction · 0.74
TestBatchFunction · 0.74
TestBatchFunction · 0.74
TestBatchFunction · 0.74
TestBatchFunction · 0.74
TestBatchFunction · 0.74
BenchmarkEncoderCacheFunction · 0.74
BenchmarkBatchVectorizerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…