meilisearch / meilisearch-ruby

Ruby SDK for the Meilisearch API
https://meilisearch.com
MIT License
198 stars 43 forks source link

Vectors being returned in version 1.8 #537

Closed doutatsu closed 4 months ago

doutatsu commented 4 months ago

Description The latest version of Meilisearch mentioned the removal of vectors in the payload, to increase search response times and reduce bandwidth usage.

Expected behavior Vectors shouldn't be shown when using ruby integration

Current behavior They do get returned, and as can be seen below, has a massive impact on the performance.

Screenshots or Logs

Bandwidth change with embeddings

image

RAM usage with embeddings

image

Environment (please complete the following information):

doutatsu commented 4 months ago

After discussing this on meilisearch repo directly, it turns out I had to declare displayed_attributes and then just not include vectors to make sure they are not returned.