README.md
February 16, 2025 ยท View on GitHub
HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model
๐ Overview
HiAgent is a novel hierarchical working memory management framework for solving long-horizon agent tasks with large language models (LLMs). It introduces a hierarchical memory structure that helps LLMs better organize and utilize information during complex task solving.
Key features:
- ๐ง Hierarchical memory management with working memory and long-term memory
- ๐ฏ Effective for long-horizon tasks requiring multi-step planning
- ๐ Dynamic memory updating and pruning mechanisms
- ๐ Structured memory format for better information organization
- ๐ค Compatible with various LLM backends
๐ค Special Thanks
We build this repo based on AgentBoard project. We would like to thank the authors for their excellent work.
๐ Quick Start
๐ ๏ธ Build from source
-
Clone this repo
-
Create and activate virtual environment ๐
conda create -n hiagent python=3.8.18
conda activate hiagent
- Setup AgentBoard environment and data ๐ฅ
๐ Setup environment
Before starting, please make sure you have configured cuda. If not, please configure it first.
If configured, you can check using the following commands:
- Check version information ๐
nvcc -V
๐ ๏ธ Additional Setup
- Download nltk library by running the following code: ๐
import nltk
nltk.download('punkt')
nltk.download('punkt_tab')
- Create and configure
./agentboard/.envfile, Environment Variables needed include: โก
PROJECT_PATH=
OPENAI_API_KEY=
๐ Run script
If the configuration is correct and the code runs successfully, you should see a series of prompts in the terminal.
bash evaluate_model.sh
๐ Visualize results