Groq · Capability

GroqCloud API — Reranking

GroqCloud API — Reranking. 1 operations. Lead operation: Reranks documents based on their relevance to a query.. Self-contained Naftiko capability covering one Groq business surface.

Run with Naftiko GroqReranking

What You Can Do

POST
Createreranking — Reranks documents based on their relevance to a query.
/v1/openai/v1/reranking

MCP Tools

reranks-documents-based-their-relevance

Reranks documents based on their relevance to a query.

read-only

Capability Spec

groq-reranking.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GroqCloud API — Reranking
  description: 'GroqCloud API — Reranking. 1 operations. Lead operation: Reranks documents based on their relevance to a query..
    Self-contained Naftiko capability covering one Groq business surface.'
  tags:
  - Groq
  - Reranking
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GROQ_API_KEY: GROQ_API_KEY
capability:
  consumes:
  - type: http
    namespace: groq-reranking
    baseUri: https://api.groq.com
    description: GroqCloud API — Reranking business capability. Self-contained, no shared references.
    resources:
    - name: openai-v1-reranking
      path: /openai/v1/reranking
      operations:
      - name: createreranking
        method: POST
        description: Reranks documents based on their relevance to a query.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GROQ_API_KEY}}'
  exposes:
  - type: rest
    namespace: groq-reranking-rest
    port: 8080
    description: REST adapter for GroqCloud API — Reranking. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/openai/v1/reranking
      name: openai-v1-reranking
      description: REST surface for openai-v1-reranking.
      operations:
      - method: POST
        name: createreranking
        description: Reranks documents based on their relevance to a query.
        call: groq-reranking.createreranking
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: groq-reranking-mcp
    port: 9090
    transport: http
    description: MCP adapter for GroqCloud API — Reranking. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: reranks-documents-based-their-relevance
      description: Reranks documents based on their relevance to a query.
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: groq-reranking.createreranking
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.