Domain-Specific Generative AI in Energy Engineering: A Case Study in Geothermal Energy
Bibliographic record
Abstract
The integration of large language models (LLMs) in domain-specific applications has been limited due to high computational costs, and the need for expensive and challenging training datasets. This thesis explores Retrieval-Augmented Generation (RAG) and Graph-RAG pipelines to enhance question-answering precision in geothermal energy, addressing these challenges while optimizing computational efficiency. In this thesis, a domain-specific RAG pipeline for geothermal energy is firstly developed by fine-tuning an open-source classifier and embedding model to improve information retrieval. The RAG pipeline uses an open-source LLM to address concerns over proprietary models. The classifier effectively filters relevant geothermal data, increasing domain focus, while the optimized embedding model enhances retrieval accuracy. The results demonstrate that applying RAG improves question-answering accuracy from 55.5% using an untrained embedding model to 72.5% with a fine-tuned embedding model. Additionally, the fine-tuned classifier achieved over 99% precision in classifying text based on context. Meanwhile, the study highlights the environmental impact of increased computational demands, emphasizing the trade-offs between retrieval accuracy and CO2 emissions. A Graph-RAG approach, which enhances RAG by integrating structured relationships between entities, is then employed to improv contextual understanding. Unlike traditional RAG, which relies solely on similarity-based retrieval, Graph-RAG incorporates concept relationships to refine responses. The study evaluates Graph-RAG’s performance in geothermal energy question-answering tasks and demonstrates a 13% improvement in precision compared to RAG, particularly when retrieving fewer nodes and relationships. Moreover, Graph-RAG reduces computational costs by achieving similar accuracy to RAG while using 35% fewer input tokens. This ii improvement comes from Graph-RAG’s ability to leverage nodes and their relationships to better understand the concept. The study further reveals that Graph-RAG is more resilient against misleading statements by cross-referencing nodes and relationships between concepts. This research contributes to the advancement of AI-driven information retrieval in energy engineering by demonstrating the effectiveness of RAG and Graph-RAG pipelines. The findings highlight the benefits of structured entity relationships in improving precision, reducing computational costs, and optimizing knowledge retrieval. The thesis concludes that Graph-RAG offers a more efficient and reliable approach for domain-specific question answering, paving the way for future applications in geothermal energy and beyond.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame machine prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. The Gemma side is a direct model label for every work in the frame, read from the title-only record. The Codex side is a classifier learned from the 10,348 direct Codex labels and calibrated to design-weighted sample rates; fields without enough sample support carry no Codex call. Candidate is the union of the two sides; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels.
Distilled classifier scores by category (both heads)
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.004 |
| Meta-epidemiology (narrow) | 0.001 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.001 |
| Bibliometrics | 0.001 | 0.001 |
| Science and technology studies | 0.000 | 0.001 |
| Scholarly communication | 0.001 | 0.002 |
| Open science | 0.001 | 0.001 |
| Research integrity | 0.001 | 0.001 |
| Insufficient payload (model declined to judge) | 0.003 | 0.001 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one source (direct Gemma or distilled Codex), not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".