EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation

Gergely Szlobodnyik

Analytics · 28.07.2026 · 5 (3) · 25

DOI: 10.3390/analytics5030025 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Analytics, online erschienen am 28.07.2026. Verfasst von Gergely Szlobodnyik. Die Arbeit nennt 65 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Research, Development and Innovation Office.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Text-to-Cypher generator systems translate natural language questions into Cypher queries, enabling intuitive interactions with graph databases such as Neo4j and Amazon Neptune. Despite recent advancements in LLM-based Cypher query generation, the vulnerabilities of the known methods—such as prompt injection attacks—are not discussed in detail. In this paper, we employ a robust Retrieval-Augmented Generation (RAG) architecture tailored specifically for text-to-Cypher tasks, leveraging dense vector retrieval to enhance query generation accuracy. We propose a dynamic and self-corrective procedure with feedback-loop-based AI architecture with Large Language Models (LLMs) for near real-time validation and correction of generated queries. We create a systematic procedure for generating datasets specifically designed to assess prompt injection robustness. Comprehensive evaluations are conducted using a diverse set of LLMs, including GPT-4o, DeepSeek R1, Claude 3.5 Sonnet and Qwen 2.5 Coder 32B Instruct. Our evaluation results indicate substantial improvements in resiliency against prompt injection attacks compared to various benchmarks. It is demonstrated that the proposed solution outperforms various training-free prompt injection defense methods.

Förderung

  • National Research, Development and Innovation Office

Zitieren

APA

Szlobodnyik, G. (2026). Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation. Analytics, 5(3), 25. https://doi.org/10.3390/analytics5030025

Vancouver

Szlobodnyik G. Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation. Analytics. 2026;5(3):25. doi:10.3390/analytics5030025

BibTeX
@article{Szlobodnyik2026,
  author = {Szlobodnyik, Gergely},
  title = {Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation},
  journal = {Analytics},
  year = {2026},
  volume = {5},
  number = {3},
  pages = {25},
  doi = {10.3390/analytics5030025}
}
Kostenlos starten →