计算机科学 > 数据库
[提交于 2024年10月11日]
标题:Using off-the-shelf LLMs to query enterprise data by progressively revealing ontologies
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Evgeny Sherkhonov[v1] 2024年10月11日 星期五 20:41:04 UTC