A light-weight "most of the way there" adaptation of the GraphRAG package.
The goal of GraphRAGlet is to be a RAG search engine that is cheaper to index but has similar strenghts as GraphRAG. In regular GraphRAG, indexing (building the knowledge graph) is expensive. GraphRAGlet aims to GraphRAGlet addresses this by building the knowledge graph through embeddings instead of extracting entities, relations and facts with an LLM. This is cheaper.
However, GraphRAG aims for a "global understanding" of the corpus, so that the original corpus is not needed in favor for the knowledge graph's community summaries. This is not the case for GraphRAGlet, which aims to return the most relevant documents for a query.
Then, with this augmented knowledge graph, we can implement the following search strategies: