{
  "info": {
    "name": "Multilingual Document Reranker API",
    "schema": "https://schema.postman.com/json/collection/v2.1.0/collection.json",
    "description": "Rerank documents for RAG, semantic search, support search, knowledge bases, and multilingual retrieval with the Multilingual Document Reranker API. Send a query plus candidate passages and receive relevance-ranked results. Start with the three ready-to-run fictional examples, then adapt the JSON for your own corpus.\n\nQuick start\n1. Subscribe on RapidAPI: https://rapidapi.com/Myworkingmemory/api/multilingual-document-reranker\n2. Store your RapidAPI subscriber key only as a local Postman value or in Postman Vault. The shared rapidapi_key variable is intentionally empty.\n3. Send one example request to https://multilingual-document-reranker.p.rapidapi.com/rerank, then adapt query and documents.\n\nPlan and safe testing\nThe advertised plan is $9/month for 1,000 requests with a hard request cap and a one-request-per-minute rate. Use fictional or non-sensitive text for initial tests because the RapidAPI gateway can process request and response content. Service availability depends on its serving Mac being awake and online; no uptime SLA is offered.\n\nBuyer preview: https://www.myworkingmemory.ai/specialist-rerank.html\nPricing: https://rapidapi.com/Myworkingmemory/api/multilingual-document-reranker/pricing\nPython tutorial: https://rapidapi.com/Myworkingmemory/api/multilingual-document-reranker/tutorials/test-qwen3-reranking-on-public-documents-in-python\nPlayground: https://rapidapi.com/Myworkingmemory/api/multilingual-document-reranker/playground/Rerank%20Documents\nSupport: https://www.myworkingmemory.ai/specialist-rerank-support.html\nPrivacy: https://www.myworkingmemory.ai/specialist-rerank-privacy.html\nTerms: https://www.myworkingmemory.ai/specialist-rerank-terms.html"
  },
  "auth": {
    "type": "noauth"
  },
  "variable": [
    {
      "key": "rapidapi_key",
      "value": "",
      "type": "string",
      "description": "Sensitive: your own RapidAPI subscriber key. Keep the exported value EMPTY; resolve only in local client settings or your local Vault workflow. Never share or export the populated key."
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "const key = pm.variables.get(\"rapidapi_key\");",
          "if (typeof key !== \"string\" || !key.trim() || key.includes(\"{{\")) {",
          "    if (pm.execution && typeof pm.execution.skipRequest === \"function\") {",
          "        pm.execution.skipRequest();",
          "    }",
          "    throw new Error(\"Request blocked: set your own subscriber key locally as rapidapi_key. Use a current Postman client with skipRequest support. Send one request, then wait at least 60 seconds.\");",
          "}"
        ]
      }
    }
  ],
  "protocolProfileBehavior": {
    "disableCookies": true
  },
  "item": [
    {
      "name": "Cancel without a phone call",
      "description": "Saved response: direct-origin operator recording; not gateway request or latency proof. Correct-first assertion concerns only this fictional fixture.",
      "protocolProfileBehavior": {
        "disableCookies": true
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Host",
            "value": "multilingual-document-reranker.p.rapidapi.com",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Key",
            "value": "{{rapidapi_key}}",
            "type": "text",
            "description": "Use your own locally configured subscriber key. No key is supplied."
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"query\": \"Can I cancel my subscription online without making a phone call?\",\n  \"documents\": [\n    \"To update a payment card, open Settings, choose Billing, and select Payment method. This page does not cancel a subscription.\",\n    \"You can cancel your subscription without calling us. Open Settings, choose Billing, select Cancel plan, and confirm. Your access continues until the end of the current paid period.\",\n    \"Open Settings, choose Billing, then Invoice history. Select a month and choose Download invoice to save that month’s invoice as a PDF.\",\n    \"Press Tab to focus the Search field. Type your query and press Enter. Use Tab to move through result links and Enter to open one. A screen reader can announce the result heading.\"\n  ],\n  \"top_n\": 4\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://multilingual-document-reranker.p.rapidapi.com/rerank",
          "protocol": "https",
          "host": [
            "multilingual-document-reranker",
            "p",
            "rapidapi",
            "com"
          ],
          "path": [
            "rerank"
          ]
        },
        "description": "Fictional fixture: Cancel without a phone call. Send this request individually, then wait at least 60 seconds. The saved example is an actual direct-origin operator model response, not a RapidAPI gateway capture or a latency measurement."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP response is 200\", function () {",
              "    pm.response.to.have.status(200);",
              "});",
              "pm.test(\"Response has ranked indexes, finite relevance scores and actual usage\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.model).to.eql(\"qwen/qwen3-reranker-8b\");",
              "    pm.expect(body.results).to.be.an(\"array\").with.lengthOf(4);",
              "    const seen = new Set();",
              "    let previousScore = Infinity;",
              "    body.results.forEach(function (row) {",
              "        pm.expect(Number.isInteger(row.index)).to.eql(true);",
              "        pm.expect(row.index).to.be.within(0, 3);",
              "        pm.expect(seen.has(row.index)).to.eql(false);",
              "        seen.add(row.index);",
              "        pm.expect(typeof row.relevance_score).to.eql(\"number\");",
              "        pm.expect(Number.isFinite(row.relevance_score)).to.eql(true);",
              "        pm.expect(row.relevance_score).to.be.within(0, 1);",
              "        pm.expect(row.relevance_score <= previousScore).to.eql(true);",
              "        previousScore = row.relevance_score;",
              "    });",
              "    pm.expect(body.usage).to.be.an(\"object\");",
              "    pm.expect(Number.isInteger(body.usage.total_tokens)).to.eql(true);",
              "    pm.expect(body.usage.total_tokens >= 0).to.eql(true);",
              "});",
              "pm.test(\"Fictional fixture only: the expected document is first\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.results[0].index).to.eql(1);",
              "});"
            ]
          }
        }
      ],
      "response": [
        {
          "name": "Recorded direct-origin model response — not a RapidAPI gateway capture",
          "status": "OK",
          "code": 200,
          "header": [],
          "body": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"results\": [\n    {\n      \"index\": 1,\n      \"relevance_score\": 0.9915732145309448\n    },\n    {\n      \"index\": 0,\n      \"relevance_score\": 0.10387071967124939\n    },\n    {\n      \"index\": 2,\n      \"relevance_score\": 0.0007978563662618399\n    },\n    {\n      \"index\": 3,\n      \"relevance_score\": 0.0003216029435861856\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 455\n  }\n}"
        }
      ]
    },
    {
      "name": "Find last month’s invoice",
      "description": "Saved response: direct-origin operator recording; not gateway request or latency proof. Correct-first assertion concerns only this fictional fixture.",
      "protocolProfileBehavior": {
        "disableCookies": true
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Host",
            "value": "multilingual-document-reranker.p.rapidapi.com",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Key",
            "value": "{{rapidapi_key}}",
            "type": "text",
            "description": "Use your own locally configured subscriber key. No key is supplied."
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"query\": \"How do I download an invoice for last month?\",\n  \"documents\": [\n    \"To update a payment card, open Settings, choose Billing, and select Payment method. This page does not cancel a subscription.\",\n    \"You can cancel your subscription without calling us. Open Settings, choose Billing, select Cancel plan, and confirm. Your access continues until the end of the current paid period.\",\n    \"Open Settings, choose Billing, then Invoice history. Select a month and choose Download invoice to save that month’s invoice as a PDF.\",\n    \"Press Tab to focus the Search field. Type your query and press Enter. Use Tab to move through result links and Enter to open one. A screen reader can announce the result heading.\"\n  ],\n  \"top_n\": 4\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://multilingual-document-reranker.p.rapidapi.com/rerank",
          "protocol": "https",
          "host": [
            "multilingual-document-reranker",
            "p",
            "rapidapi",
            "com"
          ],
          "path": [
            "rerank"
          ]
        },
        "description": "Fictional fixture: Find last month’s invoice. Send this request individually, then wait at least 60 seconds. The saved example is an actual direct-origin operator model response, not a RapidAPI gateway capture or a latency measurement."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP response is 200\", function () {",
              "    pm.response.to.have.status(200);",
              "});",
              "pm.test(\"Response has ranked indexes, finite relevance scores and actual usage\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.model).to.eql(\"qwen/qwen3-reranker-8b\");",
              "    pm.expect(body.results).to.be.an(\"array\").with.lengthOf(4);",
              "    const seen = new Set();",
              "    let previousScore = Infinity;",
              "    body.results.forEach(function (row) {",
              "        pm.expect(Number.isInteger(row.index)).to.eql(true);",
              "        pm.expect(row.index).to.be.within(0, 3);",
              "        pm.expect(seen.has(row.index)).to.eql(false);",
              "        seen.add(row.index);",
              "        pm.expect(typeof row.relevance_score).to.eql(\"number\");",
              "        pm.expect(Number.isFinite(row.relevance_score)).to.eql(true);",
              "        pm.expect(row.relevance_score).to.be.within(0, 1);",
              "        pm.expect(row.relevance_score <= previousScore).to.eql(true);",
              "        previousScore = row.relevance_score;",
              "    });",
              "    pm.expect(body.usage).to.be.an(\"object\");",
              "    pm.expect(Number.isInteger(body.usage.total_tokens)).to.eql(true);",
              "    pm.expect(body.usage.total_tokens >= 0).to.eql(true);",
              "});",
              "pm.test(\"Fictional fixture only: the expected document is first\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.results[0].index).to.eql(2);",
              "});"
            ]
          }
        }
      ],
      "response": [
        {
          "name": "Recorded direct-origin model response — not a RapidAPI gateway capture",
          "status": "OK",
          "code": 200,
          "header": [],
          "body": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"results\": [\n    {\n      \"index\": 2,\n      \"relevance_score\": 0.9976671934127808\n    },\n    {\n      \"index\": 3,\n      \"relevance_score\": 0.003123643808066845\n    },\n    {\n      \"index\": 1,\n      \"relevance_score\": 0.0013334148097783327\n    },\n    {\n      \"index\": 0,\n      \"relevance_score\": 0.00028391098021529615\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 447\n  }\n}"
        }
      ]
    },
    {
      "name": "Search without a mouse",
      "description": "Saved response: direct-origin operator recording; not gateway request or latency proof. Correct-first assertion concerns only this fictional fixture.",
      "protocolProfileBehavior": {
        "disableCookies": true
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Host",
            "value": "multilingual-document-reranker.p.rapidapi.com",
            "type": "text"
          },
          {
            "key": "X-RapidAPI-Key",
            "value": "{{rapidapi_key}}",
            "type": "text",
            "description": "Use your own locally configured subscriber key. No key is supplied."
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"query\": \"How can I use search without a mouse?\",\n  \"documents\": [\n    \"To update a payment card, open Settings, choose Billing, and select Payment method. This page does not cancel a subscription.\",\n    \"You can cancel your subscription without calling us. Open Settings, choose Billing, select Cancel plan, and confirm. Your access continues until the end of the current paid period.\",\n    \"Open Settings, choose Billing, then Invoice history. Select a month and choose Download invoice to save that month’s invoice as a PDF.\",\n    \"Press Tab to focus the Search field. Type your query and press Enter. Use Tab to move through result links and Enter to open one. A screen reader can announce the result heading.\"\n  ],\n  \"top_n\": 4\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://multilingual-document-reranker.p.rapidapi.com/rerank",
          "protocol": "https",
          "host": [
            "multilingual-document-reranker",
            "p",
            "rapidapi",
            "com"
          ],
          "path": [
            "rerank"
          ]
        },
        "description": "Fictional fixture: Search without a mouse. Send this request individually, then wait at least 60 seconds. The saved example is an actual direct-origin operator model response, not a RapidAPI gateway capture or a latency measurement."
      },
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"HTTP response is 200\", function () {",
              "    pm.response.to.have.status(200);",
              "});",
              "pm.test(\"Response has ranked indexes, finite relevance scores and actual usage\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.model).to.eql(\"qwen/qwen3-reranker-8b\");",
              "    pm.expect(body.results).to.be.an(\"array\").with.lengthOf(4);",
              "    const seen = new Set();",
              "    let previousScore = Infinity;",
              "    body.results.forEach(function (row) {",
              "        pm.expect(Number.isInteger(row.index)).to.eql(true);",
              "        pm.expect(row.index).to.be.within(0, 3);",
              "        pm.expect(seen.has(row.index)).to.eql(false);",
              "        seen.add(row.index);",
              "        pm.expect(typeof row.relevance_score).to.eql(\"number\");",
              "        pm.expect(Number.isFinite(row.relevance_score)).to.eql(true);",
              "        pm.expect(row.relevance_score).to.be.within(0, 1);",
              "        pm.expect(row.relevance_score <= previousScore).to.eql(true);",
              "        previousScore = row.relevance_score;",
              "    });",
              "    pm.expect(body.usage).to.be.an(\"object\");",
              "    pm.expect(Number.isInteger(body.usage.total_tokens)).to.eql(true);",
              "    pm.expect(body.usage.total_tokens >= 0).to.eql(true);",
              "});",
              "pm.test(\"Fictional fixture only: the expected document is first\", function () {",
              "    const body = pm.response.json();",
              "    pm.expect(body.results[0].index).to.eql(3);",
              "});"
            ]
          }
        }
      ],
      "response": [
        {
          "name": "Recorded direct-origin model response — not a RapidAPI gateway capture",
          "status": "OK",
          "code": 200,
          "header": [],
          "body": "{\n  \"model\": \"qwen/qwen3-reranker-8b\",\n  \"results\": [\n    {\n      \"index\": 3,\n      \"relevance_score\": 0.9795825481414795\n    },\n    {\n      \"index\": 1,\n      \"relevance_score\": 5.62340828764718e-05\n    },\n    {\n      \"index\": 2,\n      \"relevance_score\": 4.892991273663938e-05\n    },\n    {\n      \"index\": 0,\n      \"relevance_score\": 4.049447670695372e-05\n    }\n  ],\n  \"usage\": {\n    \"total_tokens\": 443\n  }\n}"
        }
      ]
    }
  ]
}
