Coder Social home page Coder Social logo

streamlit-app's Introduction

Dataherald Community App ๐Ÿ› ๏ธ

Welcome to the Dataherald Community App! This Streamlit-based web application allows users to interact with the Dataherald engine through a user-friendly interface, making it easier to work with your structured data. ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

Dataherald Logo

Table of Contents ๐Ÿ“š

Features ๐Ÿš€

  • Ask your Questions: ๐Ÿ’ก Connect to various databases by providing their connection details and ask any questions that have on top of your mind from Dataherald's powerful NL-to-SQL engine.

  • Add Golden records: ๐Ÿ’Ž In order to boost the performance of the engine even higher, add verified Question/SQL pairs. These pairs are going to be used by the agent at inference time.

  • View and Remove Golden records: ๐Ÿ“œ This application provides a user-friendly interface for viewing, searching, and removing Question/SQL pairs to control the agent's behavior.

  • Table Scanning: ๐Ÿ—ƒ๏ธ Scan tables in connected databases by specifying the table name. Scanned tables are used by the agent to generate answers.

  • Viewing Tables: ๐Ÿ“Š View descriptions and details of tables within connected databases. Understand the structure and number of columns of each table easily.

Prerequisites โš™๏ธ

Before running Dataherald, ensure that you have the following prerequisites:

  • Dataherald engine: ๐Ÿ’ป Make sure you have Dataherald engine running since this application calls the endpoints provided by the Dataherald engine.

  • Python 3.x: ๐Ÿ Make sure you have Python 3.x installed on your system. You can download it from the official Python website.

Installation ๐Ÿš€

To get started with Dataherald, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/Dataherald/streamlit-app.git
    cd streamlit-app
    
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install required packages: ๐Ÿ“ฆ This app relies on several Python packages. Install them by running the following command within the project directory:

    pip install -r requirements.txt

Usage ๐Ÿ“ˆ

To use Dataherald Community App and interact with databases, follow these steps:

Change the following code parts based on your current implementation of Dataherald engine:

DEFAULT_DATABASE = "RealEstate" # change this to your default database
HOST = st.sidebar.text_input("Engine URI", value="https://streamlit.dataherald.ai") #change the value to your localhost or server URI where your engine is deployed

Start the Dataherald Community App application:

streamlit run ๐Ÿ _Home.py

How it Works ๐Ÿง

If you want to know how the app works, you can take a look at the following figure:

Architecture

Contributions ๐Ÿค

We are extremely open to contributions, be it through new features, new pages, or improved documentation.

We are currently developing this repository, you can take a look at the roadmap we have for this app, and we will appreciate your contribution for the future works that we have. You can find the roadmap here.

streamlit-app's People

Contributors

mohammadrezapourreza avatar qingtianyu avatar priyansh121096 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.