ArticleOctober 11, 2025

How to Run GraphRAG at Low Cost

Use cheaper cloud-based models as well as local large models.

Key Takeaway

  • The cost issue of GraphRAG can be addressed in two ways: by using cheaper cloud-based models or local large models.
  • Although OpenAI’s GPT-4o mini offers average performance, its low price makes it extremely suitable for reducing the operating costs associated with GraphRAG.
  • The GraphRAG model provided by Microsoft has a relatively high cost of implementation. However, by switching to GPT-4o mini, the costs associated with index creation and query operations can be significantly reduced.
  • Local large models (such as Ollama) encounter embedding issues when running GraphRAG, but these issues can be resolved by modifying the relevant Python documentation.
  • During local deployment, you can set the OLLAMA_KEEP_ALIVE=-1 environment variable to ensure that the model remains in memory at all times, thereby avoiding delays caused by repeated loading of the model.
  • Contributions from the open-source community, such as revised versions of the embedding documentation, are very helpful in addressing issues related to local deployment.

Full Content

If GraphRAG can address the issues related to costs, it will certainly take AI knowledge bases one step closer to practical application. In this video, I’ll share two methods for running GraphRAG at a low cost.

The first method is quite simple: simply switch to a cheaper cloud-based model.

A few days ago, OpenAI released GPT-4o mini. Although its performance is average, the price is incredibly low: for every 1 million input tokens, GPT-4o costs just $0.15. In contrast, GPT-3.5 Turbo costs $0.05 per token.

So, when I saw this model, my first thought was: I’ll use it with GraphRAG!

Member only

Continue reading the full article

Sign in as a member or explore membership options.