Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 314 Bytes

f1b24217b1d9ba6ea5e4fa6e6f412022.asciidoc

File metadata and controls

14 lines (13 loc) · 314 Bytes
resp = client.inference.inference(
    task_type="rerank",
    inference_id="cohere_rerank",
    body={
        "input": ["luke", "like", "leia", "chewy", "r2d2", "star", "wars"],
        "query": "star wars main character",
    },
)
print(resp)