MCPcopy
hub / github.com/weaviate/weaviate / VectorizeObject

Method VectorizeObject

modules/text2vec-morph/module.go:124–130  ·  view source on GitHub ↗
(ctx context.Context,
	obj *models.Object, cfg moduletools.ClassConfig,
)

Source from the content-addressed store, hash-verified

122}
123
124func (m *MorphModule) VectorizeObject(ctx context.Context,
125 obj *models.Object, cfg moduletools.ClassConfig,
126) ([]float32, models.AdditionalProperties, error) {
127 monitoring.GetMetrics().ModuleExternalRequestSingleCount.WithLabelValues(m.Name(), "vectorizeObject").Inc()
128 icheck := ent.NewClassSettings(cfg)
129 return m.vectorizer.Object(ctx, obj, cfg, icheck)
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)))

Callers

nothing calls this directly

Calls 4

NameMethod · 0.95
GetMetricsFunction · 0.92
NewClassSettingsFunction · 0.92
ObjectMethod · 0.65

Tested by

no test coverage detected