Giter Site home page Giter Site logo

datacontract-gpt's Introduction

Data Contract GPT

Slack Status

Data Contract GPT for the Data Contract Specification to create data contracts from your example data, chat with your data contracts, or export in other formats. And yes, we know that GPTs can be wrong. That's why we also offer a deterministic open source tool around data contracts written in Python.

Data Contract GPT Browser Window{: width="100%"}

Create an initial data contract for your domain

Open Example in Data Contract GPT (Requires free ChatGPT account)

User

Create a data contract for data in the logistics domain for my table shipments in Snowflake.

Data Contract GPT

dataContractSpecification: "0.9.3"
id: "logistics_shipments_001"
info:
  title: "Logistics Shipments"
  version: "1.0.0"
  status: "active"
  description: "Data contract for the shipments table in the logistics domain."
  owner: "Logistics Team"
...

Create a data contract from example data

Open Example in Data Contract GPT (Requires free ChatGPT account)

User

Upload example data to ChatGPT

Create a data contract for the uploaded example data.

Data Contract GPT

dataContractSpecification: "0.9.3"
id: "shipment-data-contract"
info:
  title: "Shipment Data Contract"
  version: "1.0.0"
  status: "active"
  description: |
    This data contract defines the structure and requirements for shipment data, including details 
    about the shipment ID, order ID, shipping address, shipment date, and delivery date.
  owner: "Logistics Team"
...

Extend an existing data contract interactively

Open Example in Data Contract GPT (Requires free ChatGPT account)

User

Paste example contract into prompt

Add new field location to this data contract.

Data Contract GPT

...
models:
  shipments:
    fields:
      location:
        type: "string"
        description: "Current location of the shipment."
...
examples:
  - type: "json"
    model: "shipments"
    data:
    - shipment_id: "SHIP12345"
      ...
      location: "San Francisco, CA"
...

User

Can you give recommendations for the service levels?

Data Contract GPT

 servicelevels:
   availability:
     description: "The server is available 24/7 with a guaranteed uptime."
     percentage: "99.9%"
   retention:
     description: "Data is retained for one year from the shipment date."
     period: "P1Y"
   latency:
     description: "Data is available within 24 hours after the shipment is processed."
     threshold: "PT24H"
     sourceTimestampField: "shipped_date"
     processedTimestampField: "delivery_date"
 ...

You have even better prompt ideas?

Help others and contribute your great prompt ideas to datacontract-gpt repository.

Credits

Created by Simon Harrer and Jochen Christ, with the help of many folks from INNOQ.

<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

datacontract-gpt's People

Contributors

simonharrer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.