opensearch-project / neural-search

Plugin that adds dense neural retrieval into the OpenSearch ecosytem
Apache License 2.0
61 stars 65 forks source link

Neural Search Leads to "modelId is marked non-null but is null" when Targeting Multiple Indices #758

Closed imbarazz closed 4 months ago

imbarazz commented 4 months ago

Note: this error was observed on OpenSearch 2.11 running on AWS cloud.

Performing a neural search against an alias, or performing a multi-search with multiple indices in a single header leads to the following error: "_null_pointerexception: modelId is marked non-null but is null". This is problematic when searching across different indices, each with their own embedding model.

Reproduction

Search Pipeline for Embedder Model 1

PUT /_search/pipeline/embed_pipeline_1

Search Pipeline for Embedder Model 2

PUT /_search/pipeline/embed_pipeline_2

imbarazz commented 4 months ago

Accidentally submitted early during creation. This ticket is currently being recreated.