(ctx context.Context, obj *models.Object, cfg moduletools.ClassConfig, )
| 122 | } |
| 123 | |
| 124 | func (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 | |
| 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))) |
nothing calls this directly
no test coverage detected