{"record":{"id":"8c3c0fb86f1f5981","repo":"weaviate/weaviate","slug":"init-near-text-8c3c0f","errorCode":null,"errorMessage":"init near text","messagePattern":"init near text","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/multi2vec-twelvelabs/module.go","lineNumber":88,"sourceCode":"\t}\n\n\treturn nil\n}\n\nfunc (m *Module) InitExtension(modules []modulecapabilities.Module) error {\n\tfor _, module := range modules {\n\t\tif module.Name() == m.Name() {\n\t\t\tcontinue\n\t\t}\n\t\tif arg, ok := module.(modulecapabilities.TextTransformers); ok {\n\t\t\tif arg != nil && arg.TextTransformers() != nil {\n\t\t\t\tm.nearTextTransformer = arg.TextTransformers()[\"nearText\"]\n\t\t\t}\n\t\t}\n\t}\n\n\tif err := m.initNearText(); err != nil {\n\t\treturn errors.Wrap(err, \"init near text\")\n\t}\n\n\treturn nil\n}\n\nfunc (m *Module) initVectorizer(ctx context.Context, timeout time.Duration,\n\tlogger logrus.FieldLogger,\n) error {\n\tapiKey := os.Getenv(\"TWELVELABS_APIKEY\")\n\tclient := clients.New(apiKey, timeout, logger)\n\n\tm.vectorizer = batchclip.New(Name, client)\n\tm.batchSimple = batch.NewBatchSimple[[]float32](logger, 0)\n\tm.metaClient = client\n\n\treturn nil\n}\n","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/modules/multi2vec-twelvelabs/module.go#L70-L106","documentation":"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.","triggerScenarios":"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).","commonSituations":"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.","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"],"exampleFix":"// before\nif err := m.initNearText(); err != nil {\n\treturn errors.Wrap(err, \"init near text\")\n}\n// after\nif err := m.initNearText(); err != nil {\n\treturn errors.Wrap(err, \"init near text\")\n}\n// No code change needed by users: fix the underlying cause reported in the wrapped inner error,\n// e.g. ensure ENABLE_MODULES includes multi2vec-twelvelabs and TWELVELABS_APIKEY is set.","handlingStrategy":"validation","validationCode":"// Before starting Weaviate, sanity-check module wiring (shell)\ndocker run --rm \\\n  -e ENABLE_MODULES=multi2vec-twelvelabs \\\n  -e TWELVELABS_APIKEY=\"$TWELVELABS_APIKEY\" \\\n  cr.weaviate.io/semitechnologies/weaviate:latest \\\n  && curl -s localhost:8080/v1/meta | grep -q multi2vec-twelvelabs && echo OK","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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"],"tags":["weaviate","modules","initialization","multi2vec-twelvelabs"],"backgroundTag":"module-init-failed","analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}