Storage
AIOS Storage Manager
The storage manager in AIOS is built powered by the LLM-based semantic file system, which is published in ICLR2025, with its paper can be found at From Commands to Prompts: LLM-based Semantic File System for AIOS.
class StorageManager:
def __init__(self, root_dir, use_vector_db=True, filesystem_type="lsfs"):
self.use_vector_db = use_vector_db
self.filesystem_type = filesystem_type
self.root_dir = root_dir
os.makedirs(self.root_dir, exist_ok=True)
if filesystem_type == "lsfs":
self.filesystem = LSFS(root_dir, use_vector_db)
def address_request(self, agent_request):
return self.filesystem.address_request(agent_request)
By default, the storage manager integrates the LLM-based semantic file system as its file system, which supports prompt-driven file management. Its original implementation can be found at https://github.com/agiresearch/AIOS-LSFS.
Available system calls are shown as below
@inproceedings{
shi2025from,
title={From Commands to Prompts: {LLM}-based Semantic File System for AIOS},
author={Zeru Shi and Kai Mei and Mingyu Jin and Yongye Su and Chaoji Zuo and Wenyue Hua and Wujiang Xu and Yujie Ren and Zirui Liu and Mengnan Du and Dong Deng and Yongfeng Zhang},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=2G021ZqUEZ}
}
Last updated