MCPcopy
hub / github.com/weaviate/weaviate / VectorizeBatch

Method VectorizeBatch

modules/text2vec-morph/module.go:132–137  ·  view source on GitHub ↗
(ctx context.Context, objs []*models.Object, skipObject []bool, cfg moduletools.ClassConfig)

Source from the content-addressed store, hash-verified

130}
131
132func (m *MorphModule) VectorizeBatch(ctx context.Context, objs []*models.Object, skipObject []bool, cfg moduletools.ClassConfig) ([][]float32, []models.AdditionalProperties, map[int]error) {
133 monitoring.GetMetrics().ModuleExternalBatchLength.WithLabelValues("vectorizeBatch", m.Name()).Observe(float64(len(objs)))
134 monitoring.GetMetrics().ModuleExternalRequestBatchCount.WithLabelValues(m.Name(), "vectorizeBatch").Inc()
135 vecs, errs := m.vectorizer.ObjectBatch(ctx, objs, skipObject, cfg)
136 return vecs, nil, errs
137}
138
139func (m *MorphModule) MetaInfo() (map[string]any, error) {
140 return m.metaProvider.MetaInfo()

Callers

nothing calls this directly

Calls 3

NameMethod · 0.95
GetMetricsFunction · 0.92
ObjectBatchMethod · 0.65

Tested by

no test coverage detected