GraphRAG

Configuring GraphRAG Indexing

To start using GraphRAG, you need to configure the system. The init command is the easiest way to get started. It will create a .env and settings.yaml files in the specified directory with the necessary configuration settings. It will also output the default LLM prompts used by GraphRAG.

Usage

python -m graphrag.index [--init] [--root PATH]

Options

Example

python -m graphrag.index --init --root ./ragtest

Output

The init command will create the following files in the specified directory:

Next Steps

After initializing your workspace, you can either run the Prompt Tuning command to adapt the prompts to your data or even start running the Indexing Pipeline to index your data. For more information on configuring GraphRAG, see the Configuration documentation.