Kani:一个用于构建语言模型应用的轻量级且高度可定制的框架
Kani: A Lightweight and Highly Hackable Framework for Building Language Model Applications
AI总结:
针对现有语言模型应用框架可定制性差且限制复现的问题,提出了轻量级、模型无关的开源框架 Kani,通过支持模型接口、聊天管理和函数调用等可重写核心模块,帮助开发者在保持细粒度控制的同时加速应用开发。
摘要:
语言模型应用正变得日益流行和复杂,通常包含工具使用和检索增强等功能。然而,现有的此类应用框架往往带有强烈的主观预设,替开发者决定提示词的格式,并对可定制性和可复现性施加限制。为解决这一问题,我们提出了 Kani:一个用于构建语言模型应用的轻量级、灵活且模型无关的开源框架。Kani 通过支持聊天交互的核心构建模块(模型接口、聊天管理和稳健的函数调用),帮助开发者实现各种复杂功能。所有 Kani 核心函数均易于重写且有完善的文档,赋予开发者根据自身需求定制功能的能力。因此,Kani 成为对研究人员、业余爱好者和行业专业人士都有用的工具,在保持互操作性和细粒度控制的同时加速开发进程。
英文摘要:
Language model applications are becoming increasingly popular and complex, often including features like tool usage and retrieval augmentation. However, existing frameworks for such applications are often opinionated, deciding for developers how their prompts ought to be formatted and imposing limitations on customizability and reproducibility. To solve this we present Kani: a lightweight, flexible, and model-agnostic open-source framework for building language model applications. Kani helps developers implement a variety of complex features by supporting the core building blocks of chat interaction: model interfacing, chat management, and robust function calling. All Kani core functions are easily overridable and well documented to empower developers to customize functionality for their own needs. Kani thus serves as a useful tool for researchers, hobbyists, and industry professionals alike to accelerate their development while retaining interoperability and fine-grained control.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。