Welcome to the Plotting AI Agent project! This README will guide you through the setup process and provide essential information to help you get started.
To set up your development environment, follow these steps:
-
Create a New Conda Environment:
conda create -n agent python=3.12 conda activate agent
We recommend using Conda to manage your Python environments, but you can skip this step and use your system Python if you prefer.
-
Install Required Packages:
Make sure you have the necessary libraries by installing from the
requirements.txtfile.pip install -r requirements.txt
-
Configure the dependencies for the Docker sandbox:
cd sandbox mkdir workspace bash setup.sh .
The Docker sandbox is used to execute code from the LLM, optional.
Before running the application, you need to create a .env file to store your configuration variables:
-
Create a
.envfile:touch .env
-
Add the following environment variables to the
.envfile:MODEL_NAME=qwen-max BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 OPENAI_API_KEY=sk-xxxReplace
sk-xxxwith your actual OpenAI API key.
Once your environment is set up and configured, you can start the application with the following command:
python plot_agent.pyAfter running the application, you can interact with the AI agent to create plots and visualize data.
For questions or suggestions, feel free to reach out via xrysamuel (at) 163 (dot) com.
Thank you for your interest in the Plotting AI Agent! We hope you find it useful.


