Queries and galleries have different nature: for examples queries are texts, galleries are images, and a model is something like CLIP having image and text encoders.
Gallery embeddings are pre-computed, but we receive new batches of queries online.
To address this cases, we may implement something like:
In the example above different nature of queries and galleries is acceptable. We can also easily organize loop over queries without need of recalculating gallery embeddings.
Here is the current usage of
RetrievalResults
:The problem may appear in a few following cases:
To address this cases, we may implement something like:
In the example above different nature of queries and galleries is acceptable. We can also easily organize loop over queries without need of recalculating gallery embeddings.