marqo-ai / marqo

Unified embedding generation and search engine. Also available on cloud - cloud.marqo.ai
https://www.marqo.ai/
Apache License 2.0
4.29k stars 183 forks source link

[BUG] Performing a lexical search on a structured index always results in a _score of 0.0 #855

Open Art480-arch opened 3 weeks ago

Art480-arch commented 3 weeks ago

Describe the bug When I perform a lexical search on a structured index, the results are returned as expected, but the _score attribute is 0.0. A tensor search always returns a non-zero _score on both structured and unstructured indexes, but a lexical search only returns a _score on an unstructured index.

To Reproduce Steps to reproduce the behavior:

  1. Follow the first 2 steps of the README to start a docker container and install marqo
  2. Follow this Cockbook to create a strcutured index:
  3. Perform the search
  4. The result looks like this: {'hits': [{'_id': '1', 'text_field': 'New York', '_score': 0.0, '_highlights': []}], 'query': 'New York', 'limit': 10, 'offset': 0, 'processingTimeMs': 57}

Expected behavior I expect a non-zero _score, like when an unstructured index is used.

Desktop:

farshidz commented 2 weeks ago

Hi @Art480-arch . Thanks a lot for reporting this. This issue will be addressed in Marqo 2.9 which will be released tomorrow.