Reranking is a feature that allows you to rerank search results based on the query.

Usage

In supermemory, you can enable answer rewriting by setting the rerank parameter to true in the search API.

curl https://api.supermemory.ai/v3/search?q=What+is+the+capital+of+France?&rerank=true \
  --request GET \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'

Notes and limitations

  • We currently use bge-reranker-base model for reranking.
  • There is no additional costs associated with reranking.
  • While reranking makes the quality much better, it also incurs additional latency.
  • All other features like filtering, hybrid search, recency bias, etc. work with reranked results as well.