# Rerank the documents
results = co.rerank(
    query=queries_for_search,
    documents=[doc["data"]["text"] for doc in retrieved_documents],
    top_n=2,
    model="rerank-english-v3.0",
)