Lucidworks · Capability

Lucidworks Embeddings and Classification API — Embeddings

Lucidworks Embeddings and Classification API — Embeddings. 1 operations. Lead operation: Encode text to embedding. Self-contained Naftiko capability covering one Lucidworks business surface.

Run with Naftiko LucidworksEmbeddings

What You Can Do

POST
Encodetext — Encode text to embedding
/v1/ai/encode/{modelid}

MCP Tools

encode-text-embedding

Encode text to embedding

Capability Spec

embeddings-embeddings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lucidworks Embeddings and Classification API — Embeddings
  description: 'Lucidworks Embeddings and Classification API — Embeddings. 1 operations. Lead operation: Encode text to embedding.
    Self-contained Naftiko capability covering one Lucidworks business surface.'
  tags:
  - Lucidworks
  - Embeddings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LUCIDWORKS_API_KEY: LUCIDWORKS_API_KEY
capability:
  consumes:
  - type: http
    namespace: embeddings-embeddings
    baseUri: https://api.lucidworks.ai
    description: Lucidworks Embeddings and Classification API — Embeddings business capability. Self-contained, no shared
      references.
    resources:
    - name: ai-encode-modelId
      path: /ai/encode/{modelId}
      operations:
      - name: encodetext
        method: POST
        description: Encode text to embedding
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: modelId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LUCIDWORKS_API_KEY}}'
  exposes:
  - type: rest
    namespace: embeddings-embeddings-rest
    port: 8080
    description: REST adapter for Lucidworks Embeddings and Classification API — Embeddings. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/ai/encode/{modelid}
      name: ai-encode-modelid
      description: REST surface for ai-encode-modelId.
      operations:
      - method: POST
        name: encodetext
        description: Encode text to embedding
        call: embeddings-embeddings.encodetext
        with:
          modelId: rest.modelId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: embeddings-embeddings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lucidworks Embeddings and Classification API — Embeddings. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: encode-text-embedding
      description: Encode text to embedding
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: embeddings-embeddings.encodetext
      with:
        modelId: tools.modelId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.