Making LLMs database-savvy using a retrieval-augmented approach.
Andromeda, proposed in this paper, is a framework that uses LLMs for automatic DBMS configuration debugging, leveraging retrieval-augmented generation to provide domain-specific context from multiple sources.
-----
https://arxiv.org/abs/2412.07548
π Original Problem:
DBMS configuration debugging is challenging and time-consuming, even for experienced DBAs. Existing LLM-based approaches often yield generic, unhelpful recommendations due to lack of domain-specific knowledge.
-----
π οΈ Solution in this Paper:
β Andromeda employs a retrieval-augmented generation (RAG) strategy to enrich NL debugging questions with domain-specific context.
β It retrieves relevant information from historical questions, troubleshooting manuals, and DBMS telemetry data.
β A document retrieval mechanism addresses semantic heterogeneity among different sources using contrastive learning.
β A telemetry analysis method detects and selects relevant anomalous telemetries using seasonal-trend decomposition.
β Andromeda uses a two-phase prompting strategy with LLMs to diagnose issues and recommend specific knob configurations.
-----
π‘ Key Insights from this Paper:
β RAG significantly improves LLM performance in domain-specific tasks like DBMS configuration debugging
β Combining multiple data sources (questions, manuals, telemetry) provides more comprehensive context
β Contrastive learning effectively aligns heterogeneous document types for retrieval
β Telemetry analysis helps identify relevant performance issues for more accurate debugging
-----
π Results:
β Outperforms existing solutions in both NL and runnable evaluation settings
β Achieves over 0.7 success rate in solving real configuration issues
β Reduces performance gap between open-source LLMs and GPT models
β Works well across different knob frequencies and types










