graphrag/examples
2024-11-27 13:27:43 -05:00
..
custom_input Improve CLI speed with lazy imports (#1319) 2024-11-15 19:41:10 -05:00
single_verb Improve CLI speed with lazy imports (#1319) 2024-11-15 19:41:10 -05:00
use_built_in_workflows Miscellaneous code cleanup procedures (#1452) 2024-11-27 13:27:43 -05:00
__init__.py Initial Release 2024-07-01 15:25:30 -06:00
README.md Initial Release 2024-07-01 15:25:30 -06:00

Indexing Engine Examples

This directory contains several examples of how to use the indexing engine.

Most examples include two different forms of running the pipeline, both are contained in the examples run.py

  1. Using mostly the Python API
  2. Using mostly the a pipeline configuration file

Running an Example

First run poetry shell to activate a virtual environment with the required dependencies.

Then run PYTHONPATH="$(pwd)" python examples/path_to_example/run.py from the python/graphrag directory.

For example to run the single_verb example, you would run the following commands:

cd python/graphrag
poetry shell
PYTHONPATH="$(pwd)" python examples/single_verb/run.py