Skip to main content

DataHub Describer

Generate missing DataHub descriptions with an OpenAI-compatible LLM.

The connector works from fields upward:

fields → datasets → parent containers

Field prompts use field metadata. Parent prompts use the names and descriptions of their immediate children. Existing descriptions are preserved by default.

Install

pip install datahub-describer

Configure

Complete recipe with all available options:

source:
  type: datahub-describer
  config:
    llm_model: "${LLM_MODEL}"
    llm_base_url: "${LLM_BASE_URL}" # Any OpenAI-compatible endpoint.
    llm_api_key: "${LLM_API_KEY}" # Use a DataHub secret.
    llm_timeout_seconds: 60
    llm_max_retries: 0

    field_prompt: |
      You document data catalog fields.
      Return JSON only:
      {
        "fields": [
          {"name": "<exact field name>", "description": "<description>"}
        ]
      }
      Rules:
      - Describe only the requested fields.
      - Use the field name, datatype, and surrounding schema.
      - Do not invent business rules.
      - Write 300-500 characters for each description.
      - Use clear factual language suitable for semantic search.
      - Do not add an AI-generated label.

    parent_prompt: |
      You document a data catalog parent from its children.
      Return JSON only:
      {"description": "<description>"}
      Rules:
      - Base the description only on the supplied child names and descriptions.
      - Do not invent business rules.
      - Write 300-500 characters.
      - Use clear factual language suitable for semantic search.
      - Do not add an AI-generated label.

    mode: generate # generate or delete_generated

    # Optional scope. The deepest configured level and its children are processed.
    platform: postgres
    container_name: sales
    # dataset_name: customers
    # field_name: email # Requires dataset_name.

    max_datasets: 1000
    max_containers: 5000
    max_fields_per_call: 20
    max_children_per_parent: 100
    document_containers: true
    rewrite_existing_descriptions: false

sink:
  type: datahub-rest
  config:
    server: "${DATAHUB_GMS_URL:-http://localhost:8080}"

Development

pip install -e '.[dev]'
pytest

Metadata

Release files for datahub-describer 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datahub-describer 0.1.1
File Size Uploaded Provenance Actions
datahub_describer-0.1.1.tar.gz 15.5 kB Without provenance Details for datahub_describer-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datahub-describer 0.1.1
File Interpreter ABI Platform Actions
datahub_describer-0.1.1-py3-none-any.whl Python 3 none any Details for datahub_describer-0.1.1-py3-none-any.whl

Total release size: 26.8 kB

Release files / datahub_describer-0.1.1.tar.gz

Download URL datahub_describer-0.1.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9835a53b9503f2900e04bf50112a4a5d659e7c65ee3dd094e52008427835a06c
BLAKE2b-256 checksum
How to use checksums
06875a73ce2fa5844fbcf5fd042ee4259f3061257ca022ec5a54b2e811d64998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / datahub_describer-0.1.1-py3-none-any.whl

Download URL datahub_describer-0.1.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e975d4251531bef8ecac8ac85df8fafe5e54b2c18b383d4a50ee600f47ef2c0a
BLAKE2b-256 checksum
How to use checksums
97b29dfe3561cb09e486d0a46ce337d8880e08ff82351dd88d222bef5367ba95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for datahub-describer 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page