Skip to main navigation menu Skip to main content Skip to site footer

Electrotechnical and Computer Engineering

Vol. 41 No. 08 (2026): Proceedings of the Faculty of Technical Sciences

One Approach to Relational Database Search Using a Graph RAG System

  • Igor Ilic
DOI:
https://doi.org/10.24867/
Submitted
September 7, 2026
Published
2026-09-09

Abstract

Relational databases remain the backbone of business information systems, but working with them requires knowledge of SQL. While Large Language Models have significantly brought closer the possibility of querying using natural language, turning those questions into reliable and precise answers from relational data remains a challenge. Pure textual RAG (Retrieval Augmented Generation) often ignores schemas, keys, and constraints, while the direct translation of a natural language query into SQL using LLMs is fragile and difficult to verify. This paper presents the GraphRAG (Graph Retrieval Augmented Generation) solution to the problem, which enables natural language access to relational data.

References

  1. [1] Codd, E. F. (1970) “A Relational Model of Data for
  2. Large Shared Data Banks.” Communications of the
  3. ACM 13 (6): pp. 377-387.
  4. https://doi.org/10.1145/362384.362685.
  5. [2] Grohe, M. (2020). “word2vec, node2vec, graph2vec,
  6. x2vec: Towards a theory of vector embeddings of
  7. structured data”, in proceedings of the 39th ACM
  8. SIGMOD-SIGACT-SIGAI symposium on principles of
  9. database systems, pp. 1-16.
  10. [3] Vaswani, Ashish, Noam Shazeer, Niki Parmar, Jakob
  11. Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz
  12. Kaiser, and Illia Polosukhin. (2017) "Attention is all
  13. you need", Advances in neural information processing
  14. systems 30.
  15. [4] Jonathan Larson, Steven Truitt (2024). “GraphRAG:
  16. Unlocking LLM discovery on narrative private
  17. data”, https://www.microsoft.com/enus/research/blog/graphrag-unlocking-llm-discoveryon-narrative-private-data/ (приступано 10.11.2025.)
  18. [5] Cognee Open Source project.
  19. https://github.com/topoteretes/cognee/tree/main
  20. (приступано 10.11.2025.)
  21. [6] Chinook (n.d.) Music store relational database.
  22. https://github.com/lerocha/chinookdatabase/tree/master (приступано 10.11.2025.)