{
  "x402Version": 2,
  "id": 35953,
  "slug": "35953",
  "resource": "https://tanod.dev/v1/rerank",
  "description": "mlpeek (Tanod) rerank: up to 100 documents scored against a query (cross-encoder).",
  "type": "http",
  "serviceName": "Tanod mlpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "max_tokens_per_pair": {
            "type": "integer"
          },
          "model": {
            "properties": {
              "alias": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "license": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              },
              "source": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "source",
              "license"
            ],
            "type": "object"
          },
          "note": {
            "type": "string"
          },
          "results": {
            "items": {
              "properties": {
                "index": {
                  "type": "integer"
                },
                "logit": {
                  "type": "number"
                },
                "rank": {
                  "type": "integer"
                },
                "score": {
                  "type": "number"
                },
                "tokens": {
                  "type": "integer"
                },
                "truncated": {
                  "type": "boolean"
                }
              },
              "required": [
                "index",
                "rank",
                "score"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "usage": {
            "type": "object"
          }
        },
        "required": [
          "model",
          "results"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "documents": [
              "Berlin has 3.7 million inhabitants.",
              "Paris is the capital of France."
            ],
            "query": "how many people live in berlin"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "max_tokens_per_pair": 512,
            "model": {
              "id": "ms-marco-MiniLM-L6-v2",
              "license": "Apache-2.0",
              "revision": "233902d25c440f23af6f7d6e94d2946bac0bee0a",
              "source": "cross-encoder/ms-marco-MiniLM-L6-v2"
            },
            "note": "score = sigmoid(logit), a relevance in (0, 1); English model. Pairs longer than the window are truncated, longest side first (truncated: true).",
            "results": [
              {
                "index": 0,
                "logit": 8.7,
                "rank": 1,
                "score": 0.999833,
                "tokens": 17,
                "truncated": false
              },
              {
                "index": 1,
                "logit": -11.3182,
                "rank": 2,
                "score": 0.000012,
                "tokens": 16,
                "truncated": false
              }
            ],
            "usage": {
              "documents": 2,
              "tokens": 33,
              "truncated": 0
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "documents": {
                    "description": "1-100 documents, each at most 4,000 characters.",
                    "items": {
                      "maxLength": 4000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 100,
                    "minItems": 1,
                    "type": "array"
                  },
                  "query": {
                    "description": "The query (at most 2,000 characters).",
                    "maxLength": 2000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "top_k": {
                    "anyOf": [
                      {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Keep the best k (default: all, ranked)."
                  }
                },
                "required": [
                  "query",
                  "documents"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "max_tokens_per_pair": {
                    "type": "integer"
                  },
                  "model": {
                    "properties": {
                      "alias": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "license": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "source",
                      "license"
                    ],
                    "type": "object"
                  },
                  "note": {
                    "type": "string"
                  },
                  "results": {
                    "items": {
                      "properties": {
                        "index": {
                          "type": "integer"
                        },
                        "logit": {
                          "type": "number"
                        },
                        "rank": {
                          "type": "integer"
                        },
                        "score": {
                          "type": "number"
                        },
                        "tokens": {
                          "type": "integer"
                        },
                        "truncated": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "index",
                        "rank",
                        "score"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "usage": {
                    "type": "object"
                  }
                },
                "required": [
                  "model",
                  "results"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "mlpeek",
    "embeddings",
    "rerank",
    "ner",
    "zero-shot",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-08T21:47:40.318Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T21:47:39.409Z"
  },
  "metadata": {
    "serviceName": "Tanod mlpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "documents": [
                "Berlin has 3.7 million inhabitants.",
                "Paris is the capital of France."
              ],
              "query": "how many people live in berlin"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "max_tokens_per_pair": 512,
              "model": {
                "id": "ms-marco-MiniLM-L6-v2",
                "license": "Apache-2.0",
                "revision": "233902d25c440f23af6f7d6e94d2946bac0bee0a",
                "source": "cross-encoder/ms-marco-MiniLM-L6-v2"
              },
              "note": "score = sigmoid(logit), a relevance in (0, 1); English model. Pairs longer than the window are truncated, longest side first (truncated: true).",
              "results": [
                {
                  "index": 0,
                  "logit": 8.7,
                  "rank": 1,
                  "score": 0.999833,
                  "tokens": 17,
                  "truncated": false
                },
                {
                  "index": 1,
                  "logit": -11.3182,
                  "rank": 2,
                  "score": 0.000012,
                  "tokens": 16,
                  "truncated": false
                }
              ],
              "usage": {
                "documents": 2,
                "tokens": 33,
                "truncated": 0
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "documents": {
                      "description": "1-100 documents, each at most 4,000 characters.",
                      "items": {
                        "maxLength": 4000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 100,
                      "minItems": 1,
                      "type": "array"
                    },
                    "query": {
                      "description": "The query (at most 2,000 characters).",
                      "maxLength": 2000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "top_k": {
                      "anyOf": [
                        {
                          "maximum": 100,
                          "minimum": 1,
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "Keep the best k (default: all, ranked)."
                    }
                  },
                  "required": [
                    "query",
                    "documents"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "max_tokens_per_pair": {
                      "type": "integer"
                    },
                    "model": {
                      "properties": {
                        "alias": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "license": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "source",
                        "license"
                      ],
                      "type": "object"
                    },
                    "note": {
                      "type": "string"
                    },
                    "results": {
                      "items": {
                        "properties": {
                          "index": {
                            "type": "integer"
                          },
                          "logit": {
                            "type": "number"
                          },
                          "rank": {
                            "type": "integer"
                          },
                          "score": {
                            "type": "number"
                          },
                          "tokens": {
                            "type": "integer"
                          },
                          "truncated": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "index",
                          "rank",
                          "score"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "usage": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "model",
                    "results"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "max_tokens_per_pair": 0,
      "model": {
        "alias": "string",
        "id": "string",
        "license": "string",
        "revision": "string",
        "source": "string"
      },
      "note": "string",
      "results": [
        {
          "index": 0,
          "logit": 0,
          "rank": 0,
          "score": 0,
          "tokens": 0,
          "truncated": true
        }
      ],
      "usage": {}
    },
    "type": "string"
  }
}