MCPcopy
hub / github.com/TaskingAI/TaskingAI / rerank

Function rerank

backend/tests/api_services/inference/rerank.py:10–15  ·  view source on GitHub ↗
(params: Dict)

Source from the content-addressed store, hash-verified

8
9
10async def rerank(params: Dict):
11 headers = get_headers(CONFIG.Authentication)
12 async with aiohttp.ClientSession(headers=headers) as session:
13 request_url = f"{INFERENCE_BASE_URL}/rerank"
14 response = await session.post(request_url, json=params)
15 return ResponseWrapper(response.status, await response.json())

Callers 3

test_rerankMethod · 0.90
test_error_rerankMethod · 0.90
test_less_rerankMethod · 0.90

Calls 3

get_headersFunction · 0.90
ResponseWrapperClass · 0.90
jsonMethod · 0.45

Tested by 3

test_rerankMethod · 0.72
test_error_rerankMethod · 0.72
test_less_rerankMethod · 0.72