client.rerank.create() لترتيب المستندات المرشحة حسب صلتها بالاستعلام.
GET /v1/models قبل استخدامه في الإنتاج.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
أعِد ترتيب المستندات المرشحة حسب صلتها بالاستعلام باستخدام TypeScript SDK.
client.rerank.create() لترتيب المستندات المرشحة حسب صلتها بالاستعلام.
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);
GET /v1/models قبل استخدامه في الإنتاج.هل كانت هذه الصفحة مفيدة؟