自动将客服录音转为LLM训练用的问答数据集。
Call2Instruct: Automated Pipeline for Generating Q&A Datasets from Call Center Recordings for LLM Fine-Tuning
- 五步自动化流程:语音处理→文本清洗→语义提取→向量匹配→数据验证
- 成功生成可用于指令微调的问答数据集,支持Llama 2 7B模型微调
- 开源代码,适合做客服领域AI系统研发的团队参考
大型语言模型(LLMs)在特定领域的适配依赖于高质量的指令微调数据集,尤其以问答(Q&A)形式为主。然而,从电话中心音频等非结构化数据中生成此类数据面临巨大挑战,因原始数据存在噪声和混乱。本文提出一个端到端自动化管道,实现从录音到可训练数据集的转化。流程包括:语音处理(含说话人分离、降噪、自动转录)、文本处理(清洗、标准化、匿名化)、基于向量嵌入的客户诉求与应答语义提取,以及通过语义搜索匹配形成最终问答对。该管道成功生成适用于指令微调的数据集,并通过在基于Llama 2 7B的模型上成功微调验证其有效性。研究证明该方法能有效将非结构化对话数据转化为有价值的训练资源,推动客服领域更高效的AI问答系统发展。相关代码已公开,促进复现与后续研究。
原文摘要 · Abstract (English)
The adaptation of Large-Scale Language Models (LLMs) to specific domains depends on high-quality fine-tuning datasets, particularly in instructional format (e.g., Question-Answer - Q&A). However, generating these datasets, particularly from unstructured sources such as call center audio recordings, poses a significant challenge due to the noisy and disorganized nature of the data. This paper presents a solution to this challenge by offering an end-to-end automated pipeline for generating Q&A instructional datasets from such recordings. The methodology developed comprises sequential steps of audio processing (including diarization, noise removal and automatic transcription), textual processing (cleaning, normalization, and anonymization), semantic extraction of customer demands and attendant responses using vector embeddings, and matching via semantic search to form the final Q&A pairs. As a result, the complete pipeline was successfully implemented, generating a dataset specifically formatted for Instruct Fine Tuning. The practical value and feasibility of the generated dataset were substantiated and functionally demonstrated through the successful fine-tuning of an LLM model (based on Llama 2 7B). The conclusion of the paper states that the proposed approach is viable for converting unstructured conversational data from call centers into valuable resources for training LLMs. This development has the potential to open up avenues for creating more effective AI systems for Q&A tasks in the customer service domain. The developed codes have been made publicly available to promote reproducibility and future research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。