Why Anchoring AI? | Live Demo and Videos | Docker Deployment | Installation Guide
Anchoring AI is an open-source no-code tool for teams to collaborate on building, evaluating, and hosting applications leveraging GPT and other large language models. You could easily build and share LLM-powered apps, manage your budget and run batch jobs. With Anchoring AI, managing access, controlling budgets, and running batch jobs is a breeze. We aim to be the destination of choice for transforming your team into an AI-centric powerhouse.
We provide:
You can check out our Alpha Release here.
If you prefer to deploy Anchoring AI using Docker, this section provides a step-by-step guide to do so.
Clone the GitHub Repository
If you haven't already, clone the repository to your local machine.
git clone https://github.com/AnchoringAI/anchoring-ai.gitNavigate to the Project Root Directory
cd anchoring-aiBuild the Docker Image
docker-compose buildRun Docker Containers
docker-compose upYour application should now be accessible at localhost:3000.
Stop Docker Containers
docker-compose downRemove All Docker Resources (Optional)
docker system prune -aThis guide is primarily designed for Linux and macOS. Windows users can still follow along with some adjustments specified below.
Before starting the installation, ensure you have administrator-level access to your system.
Note for Windows Users
- Install and start Redis which is not supported on Windows through Windows Subsystem for Linux (WSL).
- Comment out
uwsgi==2.0.21inback-end/requirements.txtas this package is not supported for Windows.- Add
--pool=solofor the Celery worker args inback-end/src/celery_worker.pyto support batch jobs.
Download MySQL 8.0: Go to the official MySQL downloads page and download the MySQL 8.0 installer for your operating system.
Install MySQL: Run the installer and follow the on-screen instructions to install MySQL.
Start MySQL:
sudo systemctl start mysqlVerify Installation: Open a terminal and execute the following:
mysql --versionThis should display the installed MySQL version.
Download Redis 5.0.7: Visit the official Redis downloads page and download the Redis 5.0.7 tarball or installer for your operating system.
Install Redis:
cd redis-5.0.7
make
make installStart Redis:
redis-serverVerify Installation: Open a new terminal and run:
redis-cli pingIf Redis is running, this will return "PONG".
node -v in the terminal.python --version or python3 --version in the terminal.Run the following command in the terminal:
git clone https://github.com/AnchoringAI/anchoring-ai.gitOpen your terminal and navigate to the scripts directory within your project:
cd path/to/your/project/scriptsOpen the MySQL shell by entering the following command:
mysql -u [your_username] -pYou will be prompted to enter the password for [your_username].
Once inside the MySQL shell, switch to the database you intend to use (if it already exists). Replace [your_database] with the name of your database:
use [your_database];Execute the init_db.sql script to initialize your MySQL database:
source init_db.sqlNavigate to the config.py file located in the back-end/src directory:
cd path/to/your/project/back-end/srcOpen config.py in your favorite text editor and locate the DevelopmentConfig class.
Update the database configuration class to match your MySQL settings:
class DevelopmentConfig(BaseConfig):
USERNAME = '[your_username]'
PASSWORD = '[your_password]'
HOST = 'localhost'
PORT = '3306'
DATABASE = '[your_database]'
DB_URI = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE}?charset=utf8'
SQLALCHEMY_DATABASE_URI = DB_URIReplace [your_username], [your_password], and [your_database] with the MySQL username, password, and database name you've chosen.
After completing these steps, your database should be initialized and your application configured to connect to it.
front-end folder:cd front-endnpm installnpm startback-end:cd ..
cd back-endpip install -r requirements.txtNavigate to the src directory:
cd srcStart the Python application:
python3 app.pypython app.pyStart the Celery worker in the background:
python3 celery_worker.py >> logs/celery_worker_log.txt 2>&1python celery_worker.py >> logs/celery_worker_log.txt 2>&1After completing these steps, you should be able to see the app running at localhost:3000.