Skip to content
Sort Passages icon

Sort Passages

Put the best search snippets first

AISearch

Sort Passages takes a short list of search snippets or retrieved paragraphs and puts the ones that actually answer your question at the top.

Use it after a search or a first-pass retrieval, not over a whole library. Each candidate gets a relevance score. You then keep the top few and send only those to the answering model.

This is cheaper than pasting every snippet into chat. A typical call finishes in about a tenth of a second.

What you can do

  • rerank retrieved paragraphs before the answering model sees them
  • rerank web-search snippets against the original question
  • Drop clearly irrelevant candidates instead of reading them

Who it's for

Search UIs, retrieval pipelines, and agents that found more passages than they should paste.

How to use it

  1. Fetch a short list in code (max 40)
  2. Call rerank with the question and candidates
  3. Send only the top few passages to the answering model

Getting started

Pass a refund-window question and three snippets. The policy passage should beat shipping and product copy.

Information

Price
From $0.005
Billing
The final price is shown before running. Failed paid calls do not charge.
Provider
TypeSafe
TypeSafe API Key
Use your own TypeSafe account instead of the platform default. ยท Get key

Related Tools

Open Match
Match icon
MatchWhich of these fits what you need?1 skill ยท from $0.005
Open App Store ASO
App Store ASO icon
App Store ASOASO keywords, listings, competitors16 skills
Rated 3.0 of 5 โ€”1
Open SEO Analysis
SEO Analysis icon
SEO AnalysisAudit pages for ranking issues19 skills
Rated 4.7 of 5 โ€”3
Open Generative Engine Optimization
Generative Engine Optimization icon
Generative Engine OptimizationTrack and win AI citations23 skills ยท from $0.005
Rated 4.0 of 5 โ€”3
Open WHOIS & RDAP
WHOIS & RDAP icon
WHOIS & RDAPDomain owner, registrar & expiry1 skill
Rated 5.0 of 5 โ€”1