apps/docs/memory-api/features/reranking.mdx
Reranking is a feature that allows you to rerank search results based on the query.
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'
await client.search.create({
q: "What is the capital of France?",
rerank: true,
});
client.search.create(
q="What is the capital of France?",
rerank=True
)
bge-reranker-base model for reranking.