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 -X POST https://v2.api.supermemory.ai/search \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "q": "What is the capital of France?",
    "rerank": true
  }'

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.