POST
https://bizgpt.vn/wp-json/llm/router/v1/rerank
Rerank danh sách candidate
Auth: Bearer
Branch #08 — Tăng độ chính xác retrieval trước khi model tạo câu trả lời cuối.
https://bizgpt.vn/wp-json/llm/router/v1/rerank
Rerank danh sách candidate
Auth: Bearer
https://bizgpt.vn/wp-json/llm/router/v1/rerank/health
Health rerank
Auth: Public
| Method | Path | Auth | Mô tả |
|---|---|---|---|
| POST | https://bizgpt.vn/wp-json/llm/router/v1/rerank |
Bearer | Rerank danh sách candidate |
| GET | https://bizgpt.vn/wp-json/llm/router/v1/rerank/health |
Public | Health rerank |
curl -X POST "https://bizgpt.vn/wp-json/llm/router/v1/rerank" -H "Authorization: Bearer biz-YOUR_KEY" -H "Content-Type: application/json" -d '{"sample":true}'
const res = await fetch('https://bizgpt.vn/wp-json/llm/router/v1/rerank', {
method: 'POST',
headers: {
Authorization: 'Bearer biz-YOUR_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({"sample":true}),
});
const data = await res.json();
console.log(data);
import requests
url = "https://bizgpt.vn/wp-json/llm/router/v1/rerank"
headers = {'Authorization': 'Bearer biz-YOUR_KEY', 'Content-Type': 'application/json'}
payload = '{"sample":true}'
res = requests.request("POST", url, headers=headers, data=payload)
print(res.json())
curl -X GET "https://bizgpt.vn/wp-json/llm/router/v1/rerank/health"
const res = await fetch('https://bizgpt.vn/wp-json/llm/router/v1/rerank/health', {
method: 'GET',
});
const data = await res.json();
console.log(data);
import requests
url = "https://bizgpt.vn/wp-json/llm/router/v1/rerank/health"
headers = {}
res = requests.get(url, headers=headers)
print(res.json())
curl -X POST https://bizgpt.vn/wp-json/llm/router/v1/rerank -H "Authorization: Bearer biz-YOUR_KEY" -H "Content-Type: application/json" -d "{\"query\":\"tối ưu SEO local\",\"candidates\":[{\"id\":\"d1\",\"text\":\"...\"}],\"top_k\":5}"
docs/api/08-rerank.md