I would like to use Marqo to get recommendations of a similar nature to the query from the database.
Instead of querying the index with text, I want to search with an existing document from the index. The idea is I can get similar documents (i.e recommendations).
I have downloaded the marqo package in python and followed through the docs, but I do not know how to query with an existing document from the index.
You can implement a recommendation system in Marqo by searching with the vector of something that’s already in your index. This will return neighbouring products, you can also combine this with search terms to combine a search and recommendation effect into one action. In code this pattern would look like:
You can also include a search term like so:
This with search for "shirt" and the vector of item_id with a weighted mean using the weights of 1 and 0.2.