목차
문서 재정렬
문서 재정렬
query와 documents로 관련성 순의 index와 relevance_score를 받습니다. 청구 단위는 search이며 모델 페이지 가격에 usage.search_units를 곱하고 문서 수로 청구하지 않습니다. 스트리밍(stream)은 지원하지 않습니다.
POST
/v1/rerankcurl https://api.bazaarlink.ai/v1/rerank \
-H "$BAZAARLINK_AUTH_HEADER" \
-H "Content-Type: application/json" \
-d '{"model":"your-rerank-model-id","query":"capital of France","documents":["Paris is the capital of France.","Berlin is in Germany."],"top_n":1}'