Git Product home page Git Product logo

databridge's Introduction

Data Bridge

Welcome

This repository hosts the source code for the project we did for PostNL. We created an application that translates data requests from natural language to a SQL Query.

Running the application

Data

First, the application needs a database. In order to get one, insert the raw anonimized .csv files to /data, then run /data/db_init/db_init.py which is a script that creates a database. Please note, this takes several minutes.

Application Container

In order to run the application we set up a Dockerfile. The image requires an OPEN AI API key to be inserted as environment variable. Run the following commands to test the application locally:

Building the image

docker build -t databridge .

Running the image

docker run -d -p 8080:5000 -e OPENAI_API_KEY=<your-key> databridge

Repository Structure

In this section you will find a high level explanation of the contents of this repository.

.
├── Dockerfile
├── README.MD
├── data
├── requirements.txt
├── services
│   ├── querier
│   └── ui
└── test

Description

  • data: In this directory all data and the related scripts are kept.
  • querier: in this directory the source code of the backend is kept.
  • ui: in this directory, you will find the source code of the front-end application
  • Dockerfile: the blueprint for building a docker image that hosts the application.
  • test: in this directory all scripts, results and data is kept related to testing the application.

databridge's People

Contributors

hvdv99 avatar

Watchers

 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.