> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# दस्तावेज़ों को फिर से रैंक करें

> TypeScript SDK से query के लिए candidate दस्तावेज़ों को प्रासंगिकता के क्रम में रखें।

`client.rerank.create()` का उपयोग करके candidate दस्तावेज़ों को query से उनकी प्रासंगिकता के अनुसार क्रमबद्ध करें।

```typescript theme={null}
import Phaseo from "@phaseo/sdk";

const client = new Phaseo({ apiKey: process.env.PHASEO_API_KEY! });

const result = await client.rerank.create({
  model: "voyage/rerank-2",
  query: "How do I check whether a model is routable?",
  documents: [
    "Call GET /v1/models and use the default availability filter.",
    "Create an image with POST /v1/images/generations.",
  ],
});

console.log(result.results);
```

Production में उपयोग करने से पहले `GET /v1/models` से model ID की पुष्टि करें।


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.