# HarmonyAI HarmonyAI is a powerful, self-improving AI system designed to understand and execute commands with human-like comprehension and intention. It continuously self-evaluates and optimizes its capabilities, focusing on generating financial success through ethical, innovative software solutions. ## Directory Structure \``` harmonyai/ ├── dataset/ │ └── commands_dataset.csv ├── scripts/ │ ├── execute_command.py │ ├── fine_tune.py │ └── web_scrape.py ├── models/ │ └── model_config.py ├── server/ │ └── app.py ├── workflows/ │ └── airflow_dags.py ├── monitoring/ │ ├── prometheus_config.yaml │ └── grafana_dashboard.json └── README.md \``` ## Components ### Dataset The dataset includes a variety of commands, intents, effective methods, permissions, safety checks, self-improvement directives, and user interaction examples. ### Scripts - `execute_command.py`: Handles the execution of commands sent to HarmonyAI. - `fine_tune.py`: Fine-tunes the selected models using the prepared dataset. - `web_scrape.py`: Scrapes websites for data to be used in fine-tuning the model. ### Models - `model_config.py`: Configuration for the models used by HarmonyAI. ### Server - `app.py`: Flask server to handle command execution requests. ### Workflows - `airflow_dags.py`: Apache Airflow DAGs for workflow automation. ### Monitoring - `prometheus_config.yaml`: Configuration for Prometheus monitoring. - `grafana_dashboard.json`: Configuration for Grafana dashboard. ## Setup 1. **Run the setup script**: \``` bash setup_harmonyai_auto.sh \``` 2. **Fine-tune the model**: \``` python ~/harmonyai/scripts/fine_tune.py \``` 3. **Start the server**: \``` python ~/harmonyai/server/app.py \``` 4. **Run Airflow**: \``` airflow initdb airflow webserver -p 8080 airflow scheduler \``` 5. **Monitor using Prometheus and Grafana**: - Follow the configurations in `prometheus_config.yaml` and `grafana_dashboard.json`.