Rank documents
cURL
results for the ranked matches. Each includes the original index and a relevance_score; return_documents: true also includes the text.
Use embeddings to retrieve candidates, then rerank before sending them to your chat model.