-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot make use of default_model_id in neural_sparse query type #871
Comments
@zhichao-aws Do you know whether opensearch-project/OpenSearch#14739 can fix this? |
Hi @jdnvn the root cause is the compound query visitor logics, and we have added the logics in nested query opensearch-project/OpenSearch#14739. However, function score query is also compound query but we haven't add the visitor logics in it yet https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/index/query/functionscore/FunctionScoreQueryBuilder.java
Can you try this query? it should also throw exception
|
@yuye-aws @zhichao-aws thank you both for the quick responses! This makes sense, and I did get an exception from that query. I opened an issue in OpenSearch core and a PR to fix it. I'm going to close this as a duplicate. |
What is the bug?
Receive an error when omitting the
model_id
param in a nested neural_sparse query after configuring adefault_model_id
for the index. This seems to only be for nested queries, I cannot reproduce it for non-nested queries.How can one reproduce the bug?
Create an index called
my_index
Update cluster settings
Create the neural sparse model
Create the search pipeline with a neural query enricher
Update the index settings with the default pipeline
Search the index
Receive error:
What is the expected behavior?
There is no error and the
default_model_id
configured on the search pipeline is used to embed the query.What is your host/environment?
MacOS Sonoma 14.3, Docker 4.28.0, OpenSearch 2.16.0
Do you have any screenshots?
N/A
Do you have any additional context?
Might be due to this conditional not taking the default model id into account
The text was updated successfully, but these errors were encountered: