(ctx context.Context, objs []*models.Object, skipObject []bool, cfg moduletools.ClassConfig)
| 130 | } |
| 131 | |
| 132 | func (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 | |
| 139 | func (m *MorphModule) MetaInfo() (map[string]any, error) { |
| 140 | return m.metaProvider.MetaInfo() |
nothing calls this directly
no test coverage detected