https://github.com/asifrahaman13/aldrax
🐍 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.
https://github.com/asifrahaman13/aldrax
fastapi javascipt nextjs python reactjs typescript
Last synced: 3 months ago
JSON representation
🐍 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.
- Host: GitHub
- URL: https://github.com/asifrahaman13/aldrax
- Owner: asifrahaman13
- Created: 2024-07-14T09:22:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T09:08:20.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T01:51:36.523Z (over 1 year ago)
- Topics: fastapi, javascipt, nextjs, python, reactjs, typescript
- Language: Python
- Homepage:
- Size: 926 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.




## Architecture 🚀

- 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