A New Pipeline For Generating Instruction Dataset via RAG and Self Fine-Tuning
Not on the map. Why?
Abstract (arXiv)
With the rapid development of large language models in recent years, there has been an increasing demand for domain-specific Agents that can cater to the unique needs of enterprises and organizations. Unlike general models, which strive for broad coverage, these specialized Agents rely on focused datasets tailored to their intended applications. This research proposes a pipeline that leverages the power of LLMs and the Retrieval-Augmented Generation related framework to construct high-quality instruction datasets for fine-tuning on specific domains using custom document collections. By ingesting domain-specific documents, the pipeline generates relevant and contextually appropriate instructions, thus effectively creating a comprehensive dataset for fine-tuning LLMs on the target domain. This approach overcomes the limitations of traditional dataset creation methods, which often rely on manual curation or web-scraping techniques that may introduce noise and irrelevant data. Notably, our pipeline offers a dynamic solution that can quickly adapt to updates or modifications in the domain-specific document collection, eliminating the need for complete retraining. Additionally, it addresses the challenge of data scarcity by enabling the generation of instruction datasets from a limited set of initial documents, rendering it suitable for unpopular or specialized domains where comprehensive datasets are scarce. As a case study, we apply this approach to the domain of psychiatry, a field requiring specialized knowledge and sensitive handling of patient information. The resulting fine-tuned LLM demonstrates showcases the viability of the proposed approach and underscores its potential for widespread adoption across various industries and domains where tailored, accurate, and contextually relevant language models are indispensable.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 11 of its 17 references that are in the map. First posted on arXiv 12 Aug 2024.
Builds on
11 of 17 references.
References · 11
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Mistral 7Bcited by 3,065
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 255
- 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 80
- 2024Revolutionizing Mental Health Care through LangChain: A Journey with a Large Language Modelcited by 8
Built on by
Citing papers per year: 2024: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024RAG-Instruct: Boosting LLMs with Diverse Retrieval-Augmented Instructions
- 2025Instruction-Tuning Data Synthesis from Scratch via Web Reconstruction
- 2026DS2-Instruct: Domain-Specific Data Synthesis for Large Language Models Instruction Tuning
- 2025Enhancing LLM Tool Use with High-quality Instruction Data from Knowledge Graph
- 2024Fine Tuning LLM for Enterprise: Practical Guidelines and Recommendations
- 2024Toward General Instruction-Following Alignment for Retrieval-Augmented Generation
- 2025SeDi-Instruct: Enhancing Alignment of Language Models through Self-Directed Instruction Generation
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Models