Coder Social home page Coder Social logo

asifrahaman13 / aldrax Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 887 KB

๐Ÿ A full stack application to retrieve data from sql database. Users can interact with natural language and the agent will generate the sql query corresponding to it. The applicaion will also execute the program on behalf of the user.

Dockerfile 2.04% Python 56.34% JavaScript 0.30% CSS 0.21% TypeScript 41.12%
fastapi javascipt nextjs python reactjs typescript

aldrax's Introduction

About the application ๐Ÿ‘จ๐Ÿปโ€๐Ÿš€

Full stack application to io interact with sample SQLite database through natural language. Users can interact in natural language. Train the existing system with more simple queries to make the system more accurate.

Screenshot from 2024-07-16 23-02-06

Screenshot from 2024-07-16 23-14-50

Screenshot from 2024-07-16 22-53-11

Screenshot from 2024-07-16 22-57-03

Architecture ๐Ÿš€

aldraxdrawio drawio

  • First, pull the repository. git clone https://github.com/asifrahaman13/aldrax.git

  • Go to the root directory. cd aldrax

  • Enable virtual environment for the poetry. poetry config virtualenvs.in-project true

  • Now install the dependencies. poetry install

  • Now rename the .env.example. mv .env.example .env. Give the proper configuration by giving the API keys. For example set the open ai key etc. Also set the configuration data in the config.yaml file.

Install precommit hooks.

You need to install the pre-commit hooks to ensure that your code follows the proper guidelines and linting.

poetry run pre-commit install

Run the server ๐Ÿš€

You need to run the application using the following script: poetry run uvicorn src.main:app --reload

Frontend

Next go to the front end folder

cd frontend/

Now, install the dependencies.

bun install

Next, you can run the code.

bun run dev

Now rename .env.example to .env file.

mv .env.example .env

Run with docker

The best way of utilizing the docker is through the docker-compose file.

docker compose up -d

PORT ๐Ÿ‘จ๐Ÿปโ€๐Ÿš€

  • Backend: 8000
  • Frontend: 3000

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.