面向不完善提示词的设计:基于模拟的、使用知识图谱的企业级大语言模型数据助手评估
Designing for Imperfect Prompts: A Simulation-Based Evaluation of an LLM-Based Enterprise Data Assistant Using Knowledge Graphs
AI总结:
本研究针对企业级LLM数据助手面临的用户不完善提示词问题,设计并评估两种语义中介方案,通过模拟实验证明基于知识图谱的中介性能更优,提出相关设计原则。
摘要:
使用大语言模型(LLM)的企业级数据助手有望在组织内实现数据访问的民主化。然而,在我们与行业合作伙伴开展的、针对其CFO部门数据湖的实际部署中,我们观察到业务用户经常提出包含领域特定词汇、缺乏模式引用或结构信息的不完善提示词。本设计科学研究研究探讨了使用语义中介层的自动解决方案。我们设计并评估了两种设计变体:基于语义相似度的模式中介,以及利用从数据湖自动构建的知识图谱的基于知识图谱的中介。我们使用实际数据开展的、由LLM作为评判者评估和人工验证支持的基于模拟的评估显示,基于知识图谱的中介在精确率、召回率、F1值以及保留用户意图方面均优于基于模式的方法。我们提出了一项基于知识图谱的中介的设计原则,证明结构化知识表示可连接用户意图与数据库结构,并指导面向不同技能水平的企业级数据助手的设计。
英文摘要:
Enterprise data assistants using large language models (LLMs) promise democratized data access in organizations. Yet in our real-world deployment within the CFO unit's data lake at an industry partner, we observed that business users frequently pose imperfect prompts that include domain-specific vocabulary and lack schema references or structural information. This Design Science Research study examines automatic resolution using a semantic mediation layer. We design and evaluate two design variants: schema-based mediation via semantic similarity, and knowledge graph-based mediation leveraging an automatically constructed knowledge graph from the data lake. Our simulation-based evaluation using real-world data, supported by LLM-as-a-Judge assessments and human validation, shows that knowledge graph-based mediation outperforms the schema-based approach in Precision, Recall, F1, and preserving user intent. We propose a design principle for knowledge graph-based mediation, demonstrating that structured knowledge representation bridges user intent and database structure and guides the design of enterprise data assistants across skill levels.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。