GraphRAG Won't Be Democratized Until Data Migration Stops Feeling Like Climbing Everest - Image by Thomas Mareschal from Pixabay - https://pixabay.com/photos/mountaineering-mountain-climbing-895659/Graph database expert Marko Budiselić has some thoughts on why it’s time to be more data source ecumenical.

Coming from the world of graph technology, I’ve seen firsthand how naturally graph technology models complexity. It is a powerful tool for developers solving real-world problems.

However, despite its strengths, particularly as a foundation for AI, graph technology remains a minority sport. The market is expected to expand rapidly. It currently stands at just $2.3 billion in 2024, and will potentially surpass $15 billion by 2032. By comparison, its long-established rival, the relational database (SQL) market, was worth around $80 billion last year. It is projected to exceed $142 billion by 2033.

A relationship-first graph way of working with data has been proven time and again to be hugely scalable, performant and fast to boost programmer productivity. The graph approach has earned its reputation for good reason. Relationship-first data modeling has consistently delivered scalability, high performance, and significant developer productivity gains. These achievements predate the era of large language models (LLMs).

But what’s really made graphs indispensable has been the rampant growth in AI.

Graphs’ indispensable role in AI

While LLMs have become indispensable enterprise assets, they also introduce challenges around accuracy and hallucination. GraphRAG-powered AI, defined by Microsoft’s R&D labs as Graphs + Retrieval Augmented Generation, offers a compelling solution.

By integrating text extraction, network analysis, and LLM prompting and summarization into a unified system, GraphRAG enables richer contextual understanding of data and delivers the reliability required for enterprise-grade AI.

Engineering teams are looking to roll out useful ChatGPT-style interfaces that colleagues across the business can use against a company’s internal data stores. A public LLM can’t match the value of one trained on their own corporate knowledge base.

They’re eager to test, iterate, and figure out what truly works. GraphRAG has shot to the top of the AI charts as a technique for making it super-easy to help your LLM filter its internal knowledge base. It enables it to derive really useful, succinct and clear queries users can basically type in, in their own natural language, not any programming language.

Boosting RAG takes it to the next level

RAG was impressive on its own, but graph-boosted RAG takes it to another level. Yet here’s the problem: the vast majority of the world’s information is still in a non-graph form.

Relational databases account for over 62% of all overall DBMS market revenue in 2023. Gartner also says that unstructured data represents an estimated 80 to 90% of all new enterprise data. That is everything from text files to PDFs.

In other words, there’s a massive hidden iceberg of valuable data that isn’t in graph form. That’s data you simply can’t run GraphRAG over. It’s a common frustration for engineering teams.

They see gigabytes of company data stored in SQL, alongside hundreds or even thousands of unstructured documents — text files, PDFs, and other files containing rich, company-specific business process information. Yet despite the value, this data remains largely inaccessible to GraphRAG workflows in its existing non-graph form.

The non-graph data to graph data to-do list

In an ideal scenario, teams would learn graph and its query languages, Cypher or Gremlin. They’d then build a Knowledge Graph out of all their data, and then apply graph and GraphRAG to unlock insights.

But in reality, especially at large organizations, they rarely have the time. On top of that, there’s already a massive sunk investment in existing SQL databases, Word documents, PDFs, and other legacy data. This creates a substantial barrier.

Despite these challenges, the allure of creating a Knowledge Graph and unleashing GraphRAG across all their data is undeniable. It’s essentially a tough pill that engineering teams must swallow to unlock real value.

These teams need to methodically determine how to translate all that existing data into a format that a graph can ingest before moving on to GraphRAG implementation and exploitation. Indeed, teams do undertake this work, fully aware that it is far from a quick, 30-minute task.

One key challenge is that SQL programmers are trained to think in tables and rows, not nodes and relationships. Their technology is too rigid to allow them to conceptualize data in graph terms.

Adding semantic richness improves data meaning

SQL databases fundamentally lack the semantic richness that graph databases rely on. It creates a significant gap when attempting to capture the meaning and context of relationships between data points. This often results in substantial semantic information loss.

By design, SQL stores data in tables linked by foreign keys and JOIN operations. Converting this structure into meaningful graph relationships requires a deep understanding of the underlying business context.

Translating tables into graphs is, therefore, a painstaking process. One of the greatest challenges lies in transforming domain-specific SQL tables into graph format while preserving the original semantics of the data. Essentially, that means figuring out the intended meaning behind each connection and capturing all the domain-specific context accurately.

Because it requires adapting to an entirely new data model, the SQL-to-graph migration process demands considerable patience and iterative effort.

The same challenge applies to unstructured data. Converting diverse unstructured sources into Knowledge Graphs that can be queried with chatbot-level prompts — ideally using as few prompts as possible to preserve context and minimize hallucinations — is a complex task.

It involves carefully extracting content from documents, applying a rigorous methodology to identify entities and relationships, and constructing a Knowledge Graph that faithfully captures the rich, underlying semantic connections.

There has to be a better way

As we speak, there are engineering teams attempting to do all of this manually. They are gritting their teeth as they realize that the work of cleaning or extracting useful data from one table must be repeated, with minor adjustments, across ten or a hundred more.

Other teams find themselves having to explain to managers that, yes, certain case files would be highly valuable for a business unit to query with AI. But, extracting the relevant information while maintaining a clear record of its provenance is a project that will take at least three months.

Fortunately, transformative approaches are beginning to emerge. There are ways to automate and optimize what has historically been a major barrier to GraphRAG adoption. It is the metaphorical mountain that teams previously had to scale to unlock the wealth of company data for GraphRAG-based analysis.

These modular, open-source tools can be integrated into a wide range of projects. They provide developers with reusable building blocks to efficiently assemble AI pipelines and agents. By leveraging AI-driven automation, they handle complex and repetitive tasks such as extracting relationships from data and evaluating the quality of AI-generated responses. These tasks would otherwise require significant manual effort.

Built-in evaluation capabilities help assess AI system performance and ensure accuracy. They address a common challenge in testing and QA where non-manual methods for determining effectiveness are typically lacking.

Have we found a ‘Google Translate’ for non-graph to graphs?

Overall, the kinds of tools I am talking about can radically streamline the ingestion, transformation, and utilization of diverse data sources in Knowledge Graph form. It makes it easier to develop and iterate on AI-powered applications.

It also tackles scalability, semantic extraction, and quality evaluation as core features. This reduces the need for bespoke engineering and significantly automates processes that would otherwise be labor-intensive.

We anticipate that many teams will adopt these approaches. It will help guide non-graph users onto the on-ramp for developers that are not yet fluent in graph technology. It will enable true GraphRAG-powered AI productivity.

Graph technology’s days of being the secret option that the developer world’s cognoscenti knew about are ending. The door is finally wide open to embracing one of the most powerful and modern approaches to making AI truly work.


MemgraphMemgraph is a high-performance, in-memory graph database that serves as a real-time context engine for AI applications, powering enterprise solutions with richer context, sub-millisecond query performance, and explainable results that developers can trust. Delivering deep insight, accurate answers, and real-time reasoning at scale across domains from cybersecurity and finance to biotech and knowledge-heavy industries, Memgraph is used by a thriving open-source community of 150,000 members and a customer base that includes industry leaders such as NASA, Cedars-Sinai, and Capitec Bank. To find out more, visit memgraph.com

LEAVE A REPLY

Please enter your comment!
Please enter your name here