Code repository for "Leveraging Knowledge Graph–Based Retrieval Augmented Generation to Accelerate Insights on Mealworm Larvae and Plastic Degradation"
1
stars
2
commits
Jupyter Notebook
primary language
Dec 10, 2025
updated
A repository for exploring and comparing different Retrieval-Augmented Generation (RAG) approaches for scientific literature about mealworms and related organisms. Leveraging Retrieval-Augmented Generation to Accelerate Discoveries on Mealworm Larvae and Plastic Degradation
This repository contains code and data for applying different RAG systems and specialized tools to scientific literature on mealworms and related biodegradation text. It allows for comparing different approaches of RAG-based information retrieval and question answering.
data/: Contains source materials for RAG processing
graphrag/: Configuration of Microsoft's GraphRAG
lightrag/: Configuration of LightRAG
rag_baseline/: Traditional vector-based RAG system using LangChain and FAISS for comparison
ft_bio.py: Fine-tuned biological language model evaluation script with BioMistral-7B-SLERP
pdfconvertor_new.py: Advanced PDF-to-Markdown conversion pipeline
answers/: Output directory for query responses
knowledge graphs/: Generated knowledge graphs from different RAG systems
Install the GraphRAG package:
pip install graphrag
Initialize your workspace:
graphrag init --root ./your_workspace
Configure settings in the .env and settings.yaml files with your API keys and model preferences.
Build the graph index:
graphrag index --root ./your_workspace
Query the graph using global or local search methods:
graphrag query --root ./your_workspace --method local --query "Your question here"
See the GraphRAG README for detailed instructions.
Configure your model and API settings in lightrag/config.env
Run queries using the lightrag_api_mw.py script
This repository implements existing RAG technologies (GraphRAG from Microsoft and LightRAG) for research purposes. Please refer to their respective licenses for usage terms.
2 commits
Jupyter Notebook
65.2%
Python
34.8%
Code repository for "Leveraging Knowledge Graph–Based Retrieval Augmented Generation to Accelerate Insights on Mealworm Larvae and Plastic Degradation"
1
stars
2
commits
Jupyter Notebook
primary language
Dec 10, 2025
updated
A repository for exploring and comparing different Retrieval-Augmented Generation (RAG) approaches for scientific literature about mealworms and related organisms. Leveraging Retrieval-Augmented Generation to Accelerate Discoveries on Mealworm Larvae and Plastic Degradation
This repository contains code and data for applying different RAG systems and specialized tools to scientific literature on mealworms and related biodegradation text. It allows for comparing different approaches of RAG-based information retrieval and question answering.
data/: Contains source materials for RAG processing
graphrag/: Configuration of Microsoft's GraphRAG
lightrag/: Configuration of LightRAG
rag_baseline/: Traditional vector-based RAG system using LangChain and FAISS for comparison
ft_bio.py: Fine-tuned biological language model evaluation script with BioMistral-7B-SLERP
pdfconvertor_new.py: Advanced PDF-to-Markdown conversion pipeline
answers/: Output directory for query responses
knowledge graphs/: Generated knowledge graphs from different RAG systems
Install the GraphRAG package:
pip install graphrag
Initialize your workspace:
graphrag init --root ./your_workspace
Configure settings in the .env and settings.yaml files with your API keys and model preferences.
Build the graph index:
graphrag index --root ./your_workspace
Query the graph using global or local search methods:
graphrag query --root ./your_workspace --method local --query "Your question here"
See the GraphRAG README for detailed instructions.
Configure your model and API settings in lightrag/config.env
Run queries using the lightrag_api_mw.py script
This repository implements existing RAG technologies (GraphRAG from Microsoft and LightRAG) for research purposes. Please refer to their respective licenses for usage terms.
2 commits
Jupyter Notebook
65.2%
Python
34.8%