![](https://www.bigdatawire.com/wp-content/uploads/2025/02/graph_mem_RAG-300x187.png)
One of the best GenAI functions mix the freshest, most pertinent buyer knowledge with prime language fashions, however getting that knowledge into the mannequin’s context window isn’t simple. That’s the place the brand new GraphRAG functionality introduced at the moment by in-memory graph database Memgraph comes into play.
Memgraph develops an in-memory graph database that excels at real-time use instances which are a mixture of transactional and analytical workloads, reminiscent of fraud detection and provide chain planning. It was launched as an open supply providing in 2016 by Dominik Tomicevic and Marcko Budiselić, who discovered that conventional graph databases couldn’t deal with the calls for of this explicit sort of utility.
Conventional graph databases, reminiscent of Neo4j, are batch oriented and retailer knowledge on disk. This works properly while you wish to ask a variety of graph questions on giant quantities of slow-moving knowledge, however it doesn’t work properly while you want fast solutions on quicker transferring however smaller knowledge units, Tomicevic says.
“The issue begins when you have a number of writes per second (tons of of 1000’s or tens of millions per second),” the Memgraph CEO tells BigDATAwire. “Neo4j can’t deal with that form of writes per second, particularly being responsive on the similar time to the learn queries and analytics.”
Neo4j presents high-performance graph algorithms and analytics by way of its Graph Knowledge Science (GDS) library. Nevertheless, GDS requires works basically as a separate database, which doesn’t deal with real-time wants.
As an alternative of attempting to suit analytic use instances right into a batch graph database, Tomicevic and Budiselić determined to construct a graph database from scratch that caters to this explicit sort of workload. Memgraph shops all knowledge in RAM, offering not solely quick knowledge ingest but in addition the potential to run analytics and knowledge science algorithms on everything of the graph.
This strategy brings tradeoffs, in fact. Storing knowledge in RAM is orders of magnitude costlier than storing it on disk. Prospects will be unable to construct huge graphs on Memgraph, which is constructed on a scale-up structure (a distributed structure would introduce an excessive amount of latency). The everyday Memgraph databases have just a few tons of of tens of millions of nodes and edges, whereas a number of the largest have single-digit billions of edges. Graphs in Neo4j might be a lot larger, measured within the trillions of nodes, with a theoretical restrict within the quadrillions.
However for sure varieties of high-value workloads, Memgraph gives the right combination of real-time ingest and analytics capabilities that offering buyer worth. It makes use of Neo’s open supply Cypher question graph language, which implies Memgraph is a drop-in substitute, Tomicevic factors out.
GraphRAG in Memgraph 3.0
With at the moment’s launch of Memgraph 3.0, the corporate is taking its real-time analytics funding into the world of generative AI. It’s launching a pair of latest options with Memgraph 3.0 that place the database to be extra helpful for rising GenAI workloads, reminiscent of serving chatbots or AI brokers.
The primary new characteristic in Memgraph 3.0 is the addition of vector search. By storing graph knowledge as vector embeddings, customers will be capable of serve express relationships (as outlined by the graph nodes and edges) into the context home windows of language fashions to get a greater end result as a part of a RAG pipeline, or GraphRAG.
Language mannequin context home windows are getting very giant. As an illustration, Google’s Gemini 2.0 mannequin, which was made obtainable to everybody final week, can now settle for 2 million tokens in its context window. That’s a number of knowledge, equal to about 1.5 million phrases, however that, in and of itself, is probably not sufficient to make sure accuracy.
“Even for those who had that, that might most likely be an issue for simply selecting out what the fitting info is,” Tomicevic says. “We are able to leverage a number of the conventional graph algorithms with neighborhood detection to group the info into teams that make sense, after which you are able to do partial summarization on every group.”
Memgraph is offering primary vector capabilities with model 3.0. If clients want extra superior options, they will combine Memgraph with devoted vector databases, reminiscent of Pinecone, Tomicevic says.
GraphRAG help in Memgraph may even minimize down on the tendency for language fashions to hallucinate and supply greater high quality solutions total, he says.
“There’s a number of issues with simply deploying LLMs and coaching and pre-training and positive tuning and different issues,” the CEO says. “LLMs are horrible at accounting, for instance. They’re additionally horrible at hierarchical relationships and considering. When you have a graph and also you perceive that there’s an issue that’s hierarchical, you may ask them to make use of the graph to interrupt down the hierarchy, after which you may create a greater total reply than simply conventional LLM would offer you.”
For extra info on Memgraph’s help for GraphRAG, see memgraph.com/docs/ai-ecosystem/graph-rag.
Pure Language Graphs
Memgraph 3.0 additionally brings enhancements to GraphChat, a pure language interface for Cypher. With this launch, Memgraph clients can ask a graph query in plain English, and GraphChat will convert it to Cypher for execution on Memgraph. This can have the affect of decreasing the barrier to accessing subtle graph knowledge science capabilities, Tomicevic says.
“Graphs are very highly effective. They’ll do a number of issues,” he says. “[With GraphChat] they turn out to be extra in attain of the individuals who don’t have a graph PhD, if you’ll. It may be the builders which are growing these functions and so they could make them extra productive.”
Memgraph can also be supporting fashions from DeepSeek, the Chinese language developer that burst onto the AI scene only a few weeks in the past with a reasoning mannequin corresponding to these from OpenAI. The corporate has additionally launched efficiency and reliabity enhancements with model 3.0, in addition to updates to Python libraries and the Docker bundle.
Associated Objects:
The Way forward for GenAI: How GraphRAG Enhances LLM Accuracy and Powers Higher Choice-Making
O’Reilly and Cloudera Announce Inaugural Strata Knowledge Awards Finalists
Graph Databases All over the place by 2020, Says Neo4j Chief