Skip to content

From Commands to Prompts: LLM-based Semantic File System for AIOS

License

Notifications You must be signed in to change notification settings

agiresearch/AIOS-LSFS

Repository files navigation

AIOS-LSFS

This is the official code implementation of paper From Commands to Prompts: LLM-based Semantic File System for AIOS.

🏠 Architecture of LSFS

🚀 Quickstart

⚙️ Installation

conda create -n lsfs python=3.11
conda activate lsfs
pip install -r requirements.txt

🏃Run

Important

Please make sure you have read the instructions in AIOS to set up the environment and launch the AIOS kernel and set up the configurations in aios/config/config.yaml.

Warning

The rollback feature of the AIOS terminal requires the connection to the redis server. Make sure you have the redis server running if you would like to use the rollback feature.

· You need to create a folder to put the files you want to manage, which will be mounted as the root directory of LSFS. By default, it is ./root.

After that, you can run the following command to start the LSFS terminal.

python scripts/run_terminal.py

When you successfully enter the system, the interface is as follows:

Then you can start interacting with the LSFS terminal by typing natural language commands.

📎 Available Functions

LSFS currently supports the following operations, with more features planned for future releases:

Operation Description Example Commands
Mount Mount a directory as the root folder for LSFS mount the /root as the root folder for the LSFS
Create Create files or directories with semantic indexing create a aios.txt file in the root folder
Write Write content to a file write 'this is AIOS' into the aios.txt file
Search file Perform keyword-based or semantic search of files search 3 files that are mostly related to Machine Learning
Rollback Restore files to previous versions rollback the aios.txt to its previous 2 versions
Share Generate shareable links for files generate a shareable link for the aios.txt

APIs

Please refer to the Cerebrum (AIOS SDK) for more details of the LSFS APIs.

🌹Reference

If you find this project useful, please cite our paper:

@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}
}

About

From Commands to Prompts: LLM-based Semantic File System for AIOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •