Skip to main content

Documentation Index

Fetch the complete documentation index at: https://supermemory.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

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 SUPERMEMORY_API_KEY'

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.