HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
circlemind-ai
fast-graphrag
Python2024–2024
circlemind-ai / fast-graphrag

fast-graphrag

RAG that intelligently adapts to your use case, data, and queries

3Distinct people
5Mentions
0Explicit recommenders
4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

RAG that intelligently adapts to your use case, data, and queries

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day5 dated mentions

Observed mentions: 2024-11-01 23:19:29 UTC to 2024-11-18 18:24:04 UTC.

0122024-11-01 00:00:00 UTC to 2024-11-02 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsNov 12024-11-02 00:00:00 UTC to 2024-11-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-03 00:00:00 UTC to 2024-11-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-04 00:00:00 UTC to 2024-11-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-05 00:00:00 UTC to 2024-11-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-06 00:00:00 UTC to 2024-11-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-07 00:00:00 UTC to 2024-11-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-08 00:00:00 UTC to 2024-11-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-09 00:00:00 UTC to 2024-11-10 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsNov 92024-11-10 00:00:00 UTC to 2024-11-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-11 00:00:00 UTC to 2024-11-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-12 00:00:00 UTC to 2024-11-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-13 00:00:00 UTC to 2024-11-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-14 00:00:00 UTC to 2024-11-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-15 00:00:00 UTC to 2024-11-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-16 00:00:00 UTC to 2024-11-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-17 00:00:00 UTC to 2024-11-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-18 00:00:00 UTC to 2024-11-19 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsNov 18

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 12024-11-01 00:00:00 UTC2024-11-02 00:00:00 UTC211
Nov 22024-11-02 00:00:00 UTC2024-11-03 00:00:00 UTC000
Nov 32024-11-03 00:00:00 UTC2024-11-04 00:00:00 UTC000
Nov 42024-11-04 00:00:00 UTC2024-11-05 00:00:00 UTC000
Nov 52024-11-05 00:00:00 UTC2024-11-06 00:00:00 UTC000
Nov 62024-11-06 00:00:00 UTC2024-11-07 00:00:00 UTC000
Nov 72024-11-07 00:00:00 UTC2024-11-08 00:00:00 UTC000
Nov 82024-11-08 00:00:00 UTC2024-11-09 00:00:00 UTC000
Nov 92024-11-09 00:00:00 UTC2024-11-10 00:00:00 UTC110
Nov 102024-11-10 00:00:00 UTC2024-11-11 00:00:00 UTC000
Nov 112024-11-11 00:00:00 UTC2024-11-12 00:00:00 UTC000
Nov 122024-11-12 00:00:00 UTC2024-11-13 00:00:00 UTC000
Nov 132024-11-13 00:00:00 UTC2024-11-14 00:00:00 UTC000
Nov 142024-11-14 00:00:00 UTC2024-11-15 00:00:00 UTC000
Nov 152024-11-15 00:00:00 UTC2024-11-16 00:00:00 UTC000
Nov 162024-11-16 00:00:00 UTC2024-11-17 00:00:00 UTC000
Nov 172024-11-17 00:00:00 UTC2024-11-18 00:00:00 UTC000
Nov 182024-11-18 00:00:00 UTC2024-11-19 00:00:00 UTC211

What Hacker News says

5 sources
liukidar·Nov 18, 2024Submission

Show HN: FastGraphRAG – Better RAG using good old PageRank

Hey there HN! We’re Antonio, Luca, and Yuhang, and we’re excited to introduce Fast GraphRAG, an open-source RAG approach that leverages knowledge graphs and the 25 years old PageRank for better information retrieval and reasoning. Building a good RAG pipeline these days takes a lot of manual optimizations. Most engineers intuitively start from naive RAG: throw everything in a vector database and hope that semantic search is powerful enough. This can work for use cases where accuracy isn’t too important and hallucinations are tolerable, but it doesn’t work for more difficult queries that involve multi-hop reasoning or more advanced domain understanding. Also, it’s impossible to debug it. To address these limitations, many engineers find themselves adding extra layers like agent-based preprocessing, custom embeddings, reranking mechanisms,
Read the rest
and hybrid search strategies. Much like the early days of machine learning when we manually crafted feature vectors to squeeze out marginal gains, building an effective RAG system often becomes an exercise in crafting engineering “hacks.” Earlier this year, Microsoft seeded the idea of using Knowledge Graphs for RAG and published GraphRAG - i.e. RAG with Knowledge Graphs. We believe that there is an incredible potential in this idea, but existing implementations are naive in the way they create and explore the graph. That’s why we developed Fast GraphRAG with a new algorithmic approach using good old PageRank. There are two main challenges when building a reliable RAG system: (1) Data Noise: Real-world data is often messy. Customer support tickets, chat logs, and other conversational data can include a lot of irrelevant information. If you push noisy data into a vector database, you’re likely to get noisy results. (2) Domain Specialization: For complex use cases, a RAG system must understand the domain-specific context. This requires creating representations that capture not just the words but the deeper relationships and structures within the data. Our solution builds on these insights by incorporating knowledge graphs into the RAG pipeline. Knowledge graphs store entities and their relationships, and can help structure data in a way that enables more accurate and context-aware information retrieval. 12 years ago Google announced the knowledge graph we all know about [1]. It was a pioneering move. Now we have LLMs, meaning that people can finally do RAG on their own data with tools that can be as powerful as Google’s original idea. Before we built this, Antonio was at Amazon, while Luca and Yuhang were finishing their PhDs at Oxford. We had been thinking about this problem for years and we always loved the parallel between pagerank and the human memory [2]. We believe that searching for memories is incredibly similar to searching the web. Here’s how it works: - Entity and Relationship Extraction: Fast GraphRAG uses LLMs to extract entities and their relationships from your data and stores them in a graph format [3]. - Query Processing: When you make a query, Fast GraphRAG starts by finding the most relevant entities using vector search, then runs a personalized PageRank algorithm to determine the most important “memories” or pieces of information related to the query [4]. - Incremental Updates: Unlike other graph-based RAG systems, Fast GraphRAG natively supports incremental data insertions. This means you can continuously add new data without reprocessing the entire graph. - Faster: These design choices make our algorithm faster and more affordable to run than other graph-based RAG systems because we eliminate the need for communities and clustering. Suppose you’re analyzing a book and want to focus on character interactions, locations, and significant events: from fast_graphrag import GraphRAG DOMAIN = "Analyze this story and identify the characters. Focus on how they interact with each other, the locations they explore, and their relationships." EXAMPLE_QUERIES = [ "What is the significance of Christmas Eve in A Christmas Carol?", "How does the setting of Victorian London contribute to the story's themes?", "Describe the chain of events that leads to Scrooge's transformation.", "How does Dickens use the different spirits (Past, Present, and Future) to guide Scrooge?", "Why does Dickens choose to divide the story into \"staves\" rather than chapters?" ] ENTITY_TYPES = ["Character", "Animal", "Place", "Object", "Activity", "Event"] grag = GraphRAG( working_dir="./book_example", domain=DOMAIN, example_queries="\n".join(EXAMPLE_QUERIES), entity_types=ENTITY_TYPES ) with open("./book.txt") as f: grag.insert(f.read()) print(grag.query("Who is Scrooge?").response) This code creates a domain-specific knowledge graph based on your data, example queries, and specified entity types. Then you can query it in plain English while it automatically handles all the data fetching, entity extractions, co-reference resolutions, memory elections, etc. When you add new data, locking and checkpointing is handled for you as well. This is the kind of infrastructure that GenAI apps need to handle large-scale real-world data. Our goal is to give you this infrastructure so that you can focus on what’s important: building great apps for your users without having to care about manually engineering a retrieval pipeline. In the managed service, we also have a suite of UI tools for you to explore and debug your knowledge graph. We have a free hosted solution with up to 100 monthly requests. When you’re ready to grow, we have paid plans that scale with you. And of course you can self host our open-source engine. Give us a spin today at https://circlemind.co and see our code at https://github.com/circlemind-ai/fast-graphrag We’d love feedback :) [1] https://blog.google/products/search/introducing-knowledge-gr... [2] Griffiths, T. L., Steyvers, M., & Firl, A. (2007). Google and the Mind: Predicting Fluency with PageRank. Psychological Science, 18(12), 1069–1076. http://www.jstor.org/stable/40064705 [3] Similarly to Microsoft’s GraphRAG: https://github.com/microsoft/graphrag [4] Similarly to OSU’s HippoRAG: https://github.com/OSU-NLP-Group/HippoRAG https://vhs.charm.sh/vhs-4fCicgsbsc7UX0pemOcsMp.gif
457 points · Open discussion
In the past few weeks we’ve been working on implementing a fast and cheap version of graphrag. I hope that it can be helpful for your projects and it’d be great to have feedback to keep improving it and keep moving in the right direction. We’re trying to keep the code tidy and organized. We enforced typing, and we’re raising the bar on test coverage. We’re still working on the docs, but the readme should help you get started. Check it out here on GitHub: https://github.com/circlemind-ai/fast-graphrag We’re still adding features and improving it based on the latest research and community input. We’d love to get feedback and see what people build with it. Any contribution is welcomed.
In Show HN: Fast-Graphrag

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.