Enhancing Text2Cypher with Schema Filtering

Makbule Gulcin Ozsoy
5/8/2025
cs.DBcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Knowledge graphs represent complex data using nodes, relationships, and properties. Cypher, a powerful query language for graph databases, enables efficient modeling and querying. Recent advancements in large language models allow translation of natural language questions into Cypher queries - Text2Cypher. A common approach is incorporating database schema into prompts. However, complex schemas can introduce noise, increase hallucinations, and raise computational costs. Schema filtering addresses these challenges by including only relevant schema elements, improving query generation while reducing token costs. This work explores various schema filtering methods for Text2Cypher task and analyzes their impact on token length, performance, and cost. Results show that schema filtering effectively optimizes Text2Cypher, especially for smaller models. Consistent with prior research, we find that larger models benefit less from schema filtering due to their longer context capabilities. However, schema filtering remains valuable for both larger and smaller models in cost reduction.

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. 2 weaker matches are hidden by default — 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{ozsoy2025enhancing,
  title  = {Enhancing Text2Cypher with Schema Filtering},
  author = {Makbule Gulcin Ozsoy},
  year   = {2025},
  eprint = {2505.05118},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05118v2}
}

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/2505.05118.svg)](https://codeofpaper.com/paper/2505.05118)

Discussion