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

C. Civili, E. Sherkhonov, R. E. K. Stirewalt
10/11/2024
cs.DBcs.AI

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{civili2024using,
  title  = {Using off-the-shelf LLMs to query enterprise data by progressively revealing ontologies},
  author = {C. Civili and E. Sherkhonov and R. E. K. Stirewalt},
  year   = {2024},
  eprint = {2410.09244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.09244v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.09244.svg)](https://codeofpaper.com/paper/2410.09244)

Discussion