Australia/Sydney
BlogJuly 2, 2024

GraphRAG Local Installation - Create RAG Pipeline on Your Own Custom Data

Fahd Mirza

 This video installs GraphRAG locally and create RAG pipeline with your own custom data in a a step-by-by step tutorial.



Code:

conda create -n grag python=3.11 -y && conda activate grag

export OPENAI_API_KEY=""

pip install graphrag

pip install gptcache

mkdir -p ./ragtest/input && cd ./ragtest/input

touch fahd.txt

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

set the .env file.

python3 -m graphrag.index --root ./ragtest

python3 -m graphrag.query --root ./ragtest --method global "Who is Fahd Mirza?"

python3 -m graphrag.query --root ./ragtest --method local "Who is Fahd Mirza and where he lives?"

Share this post:
On this page

Let's Partner

If you are looking to build, deploy or scale AI solutions — whether you're just starting or facing production-scale challenges — let's chat.

Subscribe to Fahd's Newsletter

Weekly updates on AI, cloud engineering, and tech innovations