GraphRAG implementation using Llama-Index and NetworkX.
- Builds a knowledge graph from documents
- Indexes data points in the graph
- Retrieves and generates contextually relevant responses using an LLM
- Visualizes the knowledge graph
- Install dependencies:
pip install llama-index networkx
- Run
graphrag.py. - Example query and knowledge graph visualization will be generated.
- Python 3.x
- llama-index
- networkx
- OpenAI API key (for LLM and embeddings)
MIT