weaviate/weaviate · error
init near text
Error message
init near text
What it means
This is a wrapping error produced by the multi2vec-twelvelabs module's InitExtension when m.initNearText() returns an error while wiring up the nearText search capability. initNearText constructs the near-text searcher on top of the module's vectorizer, so a failure here means the near-text feature could not be assembled and the module's extension phase aborts, preventing nearText search from being registered. In the current code path initNearText only fails if the underlying construction (which depends on the vectorizer initialized during Init) fails.
Solutions
- Check startup logs for the wrapped (inner) error beneath 'init near text' — it identifies the real cause
- Verify the module is listed correctly in ENABLE_MODULES and the image/binary includes multi2vec-twelvelabs
- Ensure Init ran before InitExtension (vectorizer initialized) — restart with a clean configuration
- Confirm TWELVELABS_APIKEY is set so downstream vectorization works once the module loads
- If reproducible, report as a module wiring bug with the full chained error
Example fix
// before
if err := m.initNearText(); err != nil {
return errors.Wrap(err, "init near text")
}
// after
if err := m.initNearText(); err != nil {
return errors.Wrap(err, "init near text")
}
// No code change needed by users: fix the underlying cause reported in the wrapped inner error,
// e.g. ensure ENABLE_MODULES includes multi2vec-twelvelabs and TWELVELABS_APIKEY is set. Defensive patterns
Strategy: validation
Validate before calling
// Before starting Weaviate, sanity-check module wiring (shell) docker run --rm \ -e ENABLE_MODULES=multi2vec-twelvelabs \ -e TWELVELABS_APIKEY="$TWELVELABS_APIKEY" \ cr.weaviate.io/semitechnologies/weaviate:latest \ && curl -s localhost:8080/v1/meta | grep -q multi2vec-twelvelabs && echo OK
Prevention
- Always enable the module together with its API key env var at first boot and check /v1/meta
- Keep the full chained error ('init near text: ...') when reporting startup failures
- Use a pinned Weaviate image version to avoid module wiring regressions
- Validate ENABLE_MODULES values against the modules your image actually ships
When it happens
Trigger: Weaviate startup calls InitExtension across registered modules; the error is returned when initNearText() (nearArguments.go) errors while building the nearText searcher from m.vectorizer. It surfaces during module registration/extension in MakeAppState when the multi2vec-twelvelabs module is enabled (ENABLE_MODULES=multi2vec-twelvelabs).
Common situations: Startup failures where the module extension ordering leaves the vectorizer uninitialized or a dependent module's TextTransformers wiring is broken; effectively only seen during server boot with this module enabled, and almost always indicates a bug or corrupted module wiring rather than user configuration.
Related errors
AI-assisted analysis of weaviate/weaviate@75aa4b6d11 (2026-09-04).
Data as JSON: /api/errors/8c3c0fb86f1f5981.
Report an issue: GitHub.
Appendix: source
Thrown at modules/multi2vec-twelvelabs/module.go:88
}
return nil
}
func (m *Module) InitExtension(modules []modulecapabilities.Module) error {
for _, module := range modules {
if module.Name() == m.Name() {
continue
}
if arg, ok := module.(modulecapabilities.TextTransformers); ok {
if arg != nil && arg.TextTransformers() != nil {
m.nearTextTransformer = arg.TextTransformers()["nearText"]
}
}
}
if err := m.initNearText(); err != nil {
return errors.Wrap(err, "init near text")
}
return nil
}
func (m *Module) initVectorizer(ctx context.Context, timeout time.Duration,
logger logrus.FieldLogger,
) error {
apiKey := os.Getenv("TWELVELABS_APIKEY")
client := clients.New(apiKey, timeout, logger)
m.vectorizer = batchclip.New(Name, client)
m.batchSimple = batch.NewBatchSimple[[]float32](logger, 0)
m.metaClient = client
return nil
}
View on GitHub (pinned to 75aa4b6d11)