(ctx context.Context, input string, cfg moduletools.ClassConfig, )
| 145 | } |
| 146 | |
| 147 | func (m *MorphModule) VectorizeInput(ctx context.Context, |
| 148 | input string, cfg moduletools.ClassConfig, |
| 149 | ) ([]float32, error) { |
| 150 | monitoring.GetMetrics().ModuleExternalRequestSingleCount.WithLabelValues(m.Name(), "vectorizeTexts").Inc() |
| 151 | monitoring.GetMetrics().ModuleExternalRequestSize.WithLabelValues(m.Name(), "vectorizeTexts").Observe(float64(len(input))) |
| 152 | return m.vectorizer.Texts(ctx, []string{input}, cfg) |
| 153 | } |
| 154 | |
| 155 | func (m *MorphModule) VectorizableProperties(cfg moduletools.ClassConfig) (bool, []string, error) { |
| 156 | return true, nil, nil |
nothing calls this directly
no test coverage detected