Skip to content
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

[ENHANCEMENT] Re-weighting the search results by field #201

Closed
jn2clark opened this issue Nov 29, 2022 · 1 comment
Closed

[ENHANCEMENT] Re-weighting the search results by field #201

jn2clark opened this issue Nov 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jn2clark
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently the tensor searches are executed concurrently over individual fields (https://github.com/marqo-ai/marqo/blob/mainline/src/marqo/tensor_search/tensor_search.py#L951) and the output is sorted according to their scores.
It would be good to have the ability to -re-weight particular fields upon returning by multiplying the scores from a particular field by a scalar (https://github.com/marqo-ai/marqo/blob/mainline/src/marqo/tensor_search/tensor_search.py#L1051-L1064).

Describe the solution you'd like
Something in the search endpoint to provide a weighting to the fields being searched over.
For example (python client), client.index(index_name).search(query, searchable_attributes=[('col1', 0.5), 'col2', 'col3'])

Describe alternatives you've considered
Nothing

@jn2clark
Copy link
Contributor Author

jn2clark commented Mar 8, 2023

completed #300

@jn2clark jn2clark closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant