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