This project consists of two modules: EDU-graphRAG and DLRL. You need to run the content of these two parts separately.
To run this project, the following software and libraries are required:
- Python 3.9.21
- PyTorch 2.4.1
- Gym 0.23.0
- graphRAG 0.2.2
-
To run the EDU-graphRAG module:
-
Open the
settings.yamlfile and add the following entries:openai_chat: YOUR_OPENAI_CHAT_API_KEY openai_embedding: YOUR_OPENAI_API_BASE
-
Generate the knowledge graph using the following command:
python -m graphrag.index --root ./ragtest
-
-
To run the KnowLP module:
Navigate to the KnowLP folder and execute the following command:
python DLELP.py