Bringing Preferred Results to Top

Description

Currently using weaviate for semantic search usecase. The index is a product index where i am doing a hybrid search. The problem I am running into is I have a set of popular products which I want to rank first. Is there a way to achieve this?

Server Setup Information

  • Weaviate Server Version:32.x
  • Deployment Method: K8
  • Multi Node? Number of Running Nodes: 10
  • Client Language and Version: Python
  • Multitenancy?: No

Any additional Information

hi @apattnaik !!

Welcome to our community :hugs:

In Hybrid, you can have the option to MoveAway and MoveTo.

Not sure this is what want. :thinking:

However, if you have specific products you want on top, you can query does product separately between them and “monkey patch” them into your initial result set.

So you will do a first query on all products, excluding your preferred products.

Then a second query, only for those preferred products.

Now you add those products on top of it, as post processing step.

Let me know if that helps!