arXiv:2410.11843cs.HCcs.AI2024-10中稿 · ICLR被引 19

用自然语言操作文件系统,让AIOS更智能好用。

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

  • 用大模型构建语义索引,支持按内容搜索、更新监控等操作。
  • 实验表明,语义查找准确率高,操作效率提升显著。
  • 适合开发AI操作系统或需要智能文件管理的场景。

大型语言模型(LLMs)在智能应用与系统(如基于LLM的代理和代理操作系统,AIOS)中展现出巨大潜力。然而,这些系统与底层文件系统交互时仍依赖传统模式:需通过精确命令手动导航。这成为使用瓶颈,因用户须记忆复杂目录结构与晦涩文件名。为此,我们提出一种基于大模型的语义文件系统(LSFS),支持通过自然语言提示进行文件管理。宏观上,构建完整API集实现语义文件检索、更新监控与摘要、语义回滚等功能;微观上,为文件构建语义索引,设计并实现由向量数据库驱动的语义操作系统调用(如CRUD、分组、关联)。实验表明,相比传统文件系统,LSFS在用户便捷性、功能多样性、文件操作的准确性与效率方面均有显著提升。结合大模型能力,系统还支持内容摘要、版本对比等智能任务,进一步增强其功能。

原文摘要 · Abstract (English)

Large language models (LLMs) have demonstrated significant potential in the development of intelligent applications and systems such as LLM-based agents and agent operating systems (AIOS). However, when these applications and systems interact with the underlying file system, the file system still remains the traditional paradigm: reliant on manual navigation through precise commands. This paradigm poses a bottleneck to the usability of these systems as users are required to navigate complex folder hierarchies and remember cryptic file names. To address this limitation, we propose an LLM-based semantic file system ( LSFS ) for prompt-driven file management. Unlike conventional approaches, LSFS incorporates LLMs to enable users or agents to interact with files through natural language prompts, facilitating semantic file management. At the macro-level, we develop a comprehensive API set to achieve semantic file management functionalities, such as semantic file retrieval, file update monitoring and summarization, and semantic file rollback). At the micro-level, we store files by constructing semantic indexes for them, design and implement syscalls of different semantic operations (e.g., CRUD, group by, join) powered by vector database. Our experiments show that LSFS offers significant improvements over traditional file systems in terms of user convenience, the diversity of supported functions, and the accuracy and efficiency of file operations. Additionally, with the integration of LLM, our system enables more intelligent file management tasks, such as content summarization and version comparison, further enhancing its capabilities.

文件系统大模型语义搜索AIOS

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。