arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09244cs.DBcs.AI
收藏

通过逐步揭示本体利用现成LLM查询企业数据

Using off-the-shelf LLMs to query enterprise data by progressively revealing ontologies

RelationalAI

C. Civili, E. Sherkhonov, R. E. K. Stirewalt

AI总结:

针对LLM因token限制无法容纳大型企业本体的问题,提出逐步揭示恰好足够本体内容的零样本提示解决方案,以提升自然语言到形式化查询的转换准确率。

摘要:

已知本体能提高大型语言模型(LLM)将自然语言查询翻译为SQL或SPARQL等形式化查询语言时的准确率。使用LLM时有两种利用本体的方式。一是微调模型,即用特定领域知识增强它。二是零样本提示方法,即将本体作为输入问题的一部分提供。遗憾的是,现代企业通常拥有过大的本体,由于LLM的token大小限制而无法放入提示中。我们提出一种解决方案,逐步揭示回答给定问题所需的“恰好足够”的本体内容。

英文摘要:

Ontologies are known to improve the accuracy of Large Language Models (LLMs) when translating natural language queries into a formal query language like SQL or SPARQL. There are two ways to leverage ontologies when working with LLMs. One is to fine-tune the model, i.e., to enhance it with specific domain knowledge. Another is the zero-shot prompting approach, where the ontology is provided as part of the input question. Unfortunately, modern enterprises typically have ontologies that are too large to fit in a prompt due to LLM's token size limitations. We present a solution that incrementally reveals "just enough" of an ontology that is needed to answer a given question.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑