Related Experiment Video
Updated: Jun 12, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Biomedical knowledge graph-optimized prompt generation for large language models
Karthik Soman1, Peter W Rose2, John H Morris3
1Department of Neurology, Weill Institute for Neurosciences, University of California, San Francisco, San Francisco, CA 94158, United States.
This study introduces a token-optimized Knowledge Graph-based Retrieval Augmented Generation (KG-RAG) framework. KG-RAG significantly improves large language model performance on biomedical tasks with reduced token consumption and enhanced accuracy.
Area of Science:
- Biomedical Informatics
- Artificial Intelligence
Background:
- Large language models (LLMs) face challenges in knowledge-intensive domains like biomedicine.
- Current solutions like pretraining and fine-tuning incur high computational costs and require domain expertise.
Purpose of the Study:
- To introduce a token-optimized Knowledge Graph-based Retrieval Augmented Generation (KG-RAG) framework.
- To leverage the SPOKE biomedical knowledge graph (KG) with LLMs for generating accurate biomedical text.
Main Methods:
- Developed a KG-RAG framework utilizing the SPOKE KG and LLMs (Llama-2, GPT-3.5, GPT-4).
- Implemented context extraction with minimal graph schema and context pruning via embedding methods.
- Optimized token consumption for cost-effective RAG on proprietary LLMs.
Main Results:
- Achieved over 50% reduction in token consumption without compromising accuracy.
- Enhanced LLM performance across diverse biomedical prompts, providing provenance and statistical evidence.
- Boosted Llama-2 model performance by 71% on a challenging multiple-choice question dataset.
Conclusions:
- The KG-RAG framework effectively combines explicit KG knowledge and implicit LLM knowledge in a token-optimized manner.
- This approach enhances the adaptability of general-purpose LLMs for domain-specific biomedical questions cost-effectively.
- The framework empowers open-source models for specialized tasks and improves proprietary LLM performance.
Related Concept Videos
Improving Translational Accuracy
Genetic Lingo
Pharmacokinetic Models: Overview
There are three primary types of models: empirical, compartment, and physiological. Empirical models, with minimal...
Synthetic Biology
Golden rice
Golden rice is a genetically modified...
Genomics
Gene Evolution - Fast or Slow?
In contrast, regions which code...

