Customize agent instructions via task_notes_LLM
mainTo improve research outcomes, you can provide specific instructions to agents by modifying the task_notes_LLM structure within ai_lab_repo.py. This allows you to define requirements for specific research phases, such as 'plan formulation', 'data preparation', or 'running experiments'.
You can use these notes to:
- Specify the number of experiments.
- Define preferred LLM models for sub-tasks (e.g., using
gpt-4o-minifor experiments). - Provide specific code snippets for inference.
- Inform agents about available hardware resources (e.g., GPU types, CPU cores, or using
mpson MacBook). - Set constraints on dataset sizes or design preferences for figures.
task_notes_LLM = [
{"phases": ["plan formulation"],
"note": f"You should come up with a plan for TWO experiments."},
{"phases": ["plan formulation", "data preparation", "running experiments"],
"note": "Please use gpt-4o-mini for your experiments."},
{"phases": ["running experiments"],
"note": f"Use the following code to inference gpt-4o-mini: \nfrom openai import OpenAI\nos.environ[\"OPENAI_API_KEY\"] = \"{api_key}\"\nclient = OpenAI()\ncompletion = client.chat.completions.create(\nmodel=\"gpt-4o-mini-2024-07-18\", messages=messages)\nanswer = completion.choices[0].message.content\n"},
{"phases": ["running experiments"],
"note": f"You have access to only gpt-4o-mini using the OpenAI API, please use the following key {api_key} but do not use too many inferences. Do not use openai.ChatCompletion.create or any openai==0.28 commands. Instead use the provided inference code."},
{"phases": ["running experiments"],
"note": "I would recommend using a small dataset (approximately only 100 data points) to run experiments in order to save time. Do not use much more than this unless you have to or are running the final tests."},
{"phases": ["data preparation", "running experiments"],
"note": "You are running on a MacBook laptop. You can use 'mps' with PyTorch"},
{"phases": ["data preparation", "running experiments"],
"note": "Generate figures with very colorful and artistic design."},
]