BridgeScope:连接大型语言模型与数据库的通用工具包
BridgeScope: A Universal Toolkit for Bridging Large Language Models and Databases
AI总结:
针对LLM与数据库交互中的可用性、安全性和效率问题,BridgeScope通过细粒度工具模块化、安全策略对齐及代理数据传输机制,实现了更高效、安全的数据库操作,并显著降低令牌消耗。
摘要:
随着大型语言模型(LLM)展现出日益强大的推理与编排能力,基于LLM的智能体正迅速普及于复杂的数据相关任务中。尽管取得了这些进展,当前LLM与数据库交互的设计在可用性、安全性、权限管理以及数据传输效率方面仍存在关键限制。为解决这些挑战,我们引入了BridgeScope,一个通过三项关键创新连接LLM与数据库的通用工具包。首先,它将SQL操作模块化为细粒度的工具,用于上下文检索、CRUD执行以及符合ACID的事务管理,从而实现对功能更精确且对LLM友好的控制。其次,它将工具实现与数据库权限及用户安全策略对齐,引导LLM远离不安全或未经授权的操作,在保障数据库安全的同时提升任务执行效率。第三,它引入了一种代理机制,实现工具间无缝数据传输,绕过了LLM传输瓶颈。所有这些设计均与数据库无关,并可透明地集成到现有智能体架构中。我们还发布了BridgeScope针对PostgreSQL的开源实现。在两个新基准上的评估表明,BridgeScope使LLM智能体能够更有效地操作数据库,通过增强的安全意识将令牌使用量减少高达80%,并独特地支持现有工具包之外的数据密集型工作流,确立了BridgeScope作为下一代智能数据自动化的坚实基础。
英文摘要:
As large language models (LLMs) demonstrate increasingly powerful reasoning and orchestration capabilities, LLM-based agents are rapidly proliferating for complex data-related tasks. Despite this progress, the current design of how LLMs interact with databases exhibits critical limitations in usability, security, privilege management, and data transmission efficiency. To resolve these challenges, we introduce BridgeScope, a universal toolkit bridging LLMs and databases through three key innovations. First, it modularizes SQL operations into fine-grained tools for context retrieval, CRUD execution, and ACID-compliant transaction management, enabling more precise and LLM-friendly functionality controls. Second, it aligns tool implementations with both database privileges and user security policies to steer LLMs away from unsafe or unauthorized operations, improving task execution efficiency while safeguarding database security. Third, it introduces a proxy mechanism for seamless inter-tool data transfer, bypassing LLM transmission bottlenecks. All of these designs are database-agnostic and can be transparently integrated with existing agent architectures. We also release an open-source implementation of BridgeScope for PostgreSQL. Evaluations on two novel benchmarks demonstrate that BridgeScope enables LLM agents to operate databases more effectively, reduces token usage by up to 80% through improved security awareness, and uniquely supports data-intensive workflows beyond existing toolkits, establishing BridgeScope as a robust foundation for next-generation intelligent data automation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。