确保软件需求规格说明(Software Requirements Specifications,SRS)与更高层级的组织或国家要求保持一致至关重要,在金融、航空航天等受监管领域尤其如此。在这些领域中,维持一致性、遵守监管框架、最大限度减少错误并满足关键预期,是系统可靠运行的必要条件。大语言模型(large language models, LLMs)的广泛应用彰显了其巨大潜力,但在相关信息检索与推理能力提升方面仍有相当大的改进空间。本研究表明,将功能强大的Graph-RAG(图检索增强生成)框架与思维链、思维树等先进提示工程技术相结合,可显著提升性能。与基线RAG方法和简单提示策略相比,该方法能产出更准确、更具上下文感知能力的结果。尽管该方法在性能上展现出显著提升,但也存在挑战:它在不同场景中部署的成本更高、复杂度更高,需要针对特定场景进行精心适配;此外,其有效性高度依赖完整准确的输入数据,而这类数据并非总能轻易获取,这进一步限制了其可扩展性与实用性。
英文摘要:
Ensuring that Software Requirements Specifications (SRS) align with higher-level organizational or national requirements is vital, particularly in regulated environments such as finance and aerospace. In these domains, maintaining consistency, adhering to regulatory frameworks, minimizing errors, and meeting critical expectations are essential for the reliable functioning of systems. The widespread adoption of large language models (LLMs) highlights their immense potential, yet there remains considerable scope for improvement in retrieving relevant information and enhancing reasoning capabilities. This study demonstrates that integrating a robust Graph-RAG framework with advanced prompt engineering techniques, such as Chain of Thought and Tree of Thought, can significantly enhance performance. Compared to baseline RAG methods and simple prompting strategies, this approach delivers more accurate and context-aware results. While this method demonstrates significant improvements in performance, it comes with challenges. It is both costly and more complex to implement across diverse contexts, requiring careful adaptation to specific scenarios. Additionally, its effectiveness heavily relies on having complete and accurate input data, which may not always be readily available, posing further limitations to its scalability and practicality.
Classifier or Prompt: A Case Study on Legal Requirements Traceability
University of Ottawa(渥太华大学);University of Luxembourg(卢森堡大学);Monash University(蒙纳士大学);Lero Research Ireland centre for Software Research(Lero爱尔兰软件研究中心);University of Limerick(利默里克大学)