├── .gitignore ├── .python-version ├── LICENSE ├── README.MD ├── assets ├── documents_graph.png └── knowledge_graph.png ├── examples ├── documents_graph_usage.ipynb └── knowledge_graph_usage.ipynb ├── knowledge_graph_rag ├── __init__.py ├── document.py ├── documents_cluster.py ├── documents_graph.py ├── knowledge_graph.py ├── utils │ ├── __init__.py │ ├── llm.py │ ├── prompts.py │ └── text_preprocessing.py └── vectordb.py └── setup.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.12.2 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/LICENSE -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/README.MD -------------------------------------------------------------------------------- /assets/documents_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/assets/documents_graph.png -------------------------------------------------------------------------------- /assets/knowledge_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/assets/knowledge_graph.png -------------------------------------------------------------------------------- /examples/documents_graph_usage.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/examples/documents_graph_usage.ipynb -------------------------------------------------------------------------------- /examples/knowledge_graph_usage.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/examples/knowledge_graph_usage.ipynb -------------------------------------------------------------------------------- /knowledge_graph_rag/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/__init__.py -------------------------------------------------------------------------------- /knowledge_graph_rag/document.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/document.py -------------------------------------------------------------------------------- /knowledge_graph_rag/documents_cluster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/documents_cluster.py -------------------------------------------------------------------------------- /knowledge_graph_rag/documents_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/documents_graph.py -------------------------------------------------------------------------------- /knowledge_graph_rag/knowledge_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/knowledge_graph.py -------------------------------------------------------------------------------- /knowledge_graph_rag/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /knowledge_graph_rag/utils/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/utils/llm.py -------------------------------------------------------------------------------- /knowledge_graph_rag/utils/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/utils/prompts.py -------------------------------------------------------------------------------- /knowledge_graph_rag/utils/text_preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/utils/text_preprocessing.py -------------------------------------------------------------------------------- /knowledge_graph_rag/vectordb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/knowledge_graph_rag/vectordb.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarthakrastogi/graph-rag/HEAD/setup.py --------------------------------------------------------------------------------