-
Notifications
You must be signed in to change notification settings - Fork 0
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
DON'T MERGE swap weakAnd to userInput in YQL #142
base: main
Are you sure you want to change the base?
Conversation
family_description contains(@query_string), | ||
text_block contains(@query_string) | ||
) | ||
userInput(@query_string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be something that I'm missing when looking at the docs, but I'm struggling to get my head around how userInput 'knows' which fields to look at, do you have a clearer understanding of this you could help me with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - i think it's the default fields specified in the schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Shout if you need anything more on backend tests
family_description contains(@query_string), | ||
text_block contains(@query_string) | ||
) | ||
userInput(@query_string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that makes sense
marking as don't merge as this seems to fail tests in the backend - see comment on linear ticket |
Description
This is a change to fix a seeming bug that wasn't detected until removing description embeddings from the YQL query and Vespa schema. Pushing this change first to check that it. works with the current schema, then i'll push changes to the schema and YQL to remove embedding search on descriptions.
The issue this aims to fix is that
weakAnd
seems to sometimes act like anAND
, meaning that empty documents can be removed from search results even when they match on title or summary fields.UserInput docs for reference. This should also open us up to "i want to search this exact phrase" queries, which is supported by UserInput, so we'd just need to disable the nearestneighbour YQL clause in this case
Proposed version
Please select the option below that is most relevant from the list below. This
will be used to generate the next tag version name during auto-tagging.
Visit the Semver website to understand the
difference between
MAJOR
,MINOR
, andPATCH
versions.Type of change
Please select the option(s) below that are most relevant:
How Has This Been Tested?
No changes to tests, but current changes still pass locally.
Before submitting
section of the
CONTRIBUTING
docs.Writing docstrings section of the
CONTRIBUTING
docs.