作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (10): 375-389. doi: 10.19678/j.issn.1000-3428.0070735

• 大模型与生成式人工智能 • 上一篇    

PromptDEX:基于区块链的大模型提示词服务平台

张凌浩1,2, 谭海波1,2, 赵赫2, 陈中1,2   

  1. 1. 中国科学技术大学研究生院科学岛分院, 安徽 合肥 230026;
    2. 中国科学院合肥物质科学研究院, 安徽 合肥 230031
  • 收稿日期:2024-12-23 修回日期:2025-03-11 发布日期:2026-09-29
  • 作者简介:张凌浩,男,硕士研究生,主研方向为区块链技术、机器学习;谭海波,研究员、博士;赵赫(通信作者),正高级工程师、博士,E-mail:zhaoh@hfcas.ac.cn;陈中,硕士研究生。
  • 基金资助:
    国家重点研发计划(2021YFB2700800);安徽省科技创新攻坚计划项目(202423k09020016)。

PromptDEX: Blockchain-Based Servicing Platform for Large Model Prompt

ZHANG Linghao1,2, TAN Haibo1,2, ZHAO He2, CHEN Zhong1,2   

  1. 1. Science Island Branch of Graduate School, University of Science and Technology of China, Hefei 230026, Anhui, China;
    2. Hefei Institute of Physical Science, Chinese Academy of Sciences, Hefei 230031, Anhui, China
  • Received:2024-12-23 Revised:2025-03-11 Published:2026-09-29

摘要: 近年来,大模型已经成为人类生活的重要工具之一。作为人类与大模型沟通的桥梁,提示词发挥着至关重要的作用。虽然高质量提示词能够充分激发大模型的潜力,但其设计不仅需要专业技能,还需耗费大量资源,这促使提示词交易市场以及授权服务模式的出现。然而,将提示词作为商品存在以下3个问题:1)提示词明文一旦泄露就会被轻易地复制以及传播,使其失去价值;2)缺乏客观的提示词质量标准和价格体系;3)用户难以对虚假提示词的提供者追究责任,同时中心化平台的行为也会影响提供者的权益。针对上述挑战,本文提出了PromptDEX,一种基于区块链的大模型提示词服务平台。基于智能合约的提示词租用机制和基于LangChain的服务模板,使提供者直接与需求方对接,削弱中心化机构对参与者利益和隐私的影响。所有交易记录将被公开透明地记录在链上,确保交易流程安全、可靠、可追责。此外,平台还设计了以需求方评分为依据的动态定价机制。实验结果表明,PromptDEX引入区块链所带来的额外成本开销以角为单位计算,几乎可以忽略不计。提供者仅需约10行代码即可构建API服务,对于网络带宽要求极低,具备较强的可行性与实用性。

关键词: 区块链, 大模型, 提示词, LangChain, 隐私保护, 智能合约

Abstract: In recent years, large models have become one of the most important tools for humans. Prompts play a crucial role as bridges of communication between humans and large models. Although high-quality prompts can fully unleash the potential of large models, their design requires both specialized skills and substantial resources, leading to the emergence of prompt trading markets and licensing service models. However, treating prompts as commodities presents three main challenges: 1) Loss of value of prompts owing to them being easily copied and disseminated once the prompt text is leaked; 2) Lack of objective standards and pricing systems to ensure prompt quality; 3) Difficulty experienced by users in holding providers of false prompts accountable, and rights of providers being affected by the actions of centralized platforms. To address these challenges, this study proposes PromptDEX, a blockchain-based service platform for large model prompts. Through a prompt rental mechanism based on smart contracts and service templates built on LangChain, the platform enables direct interaction between providers and demanders, thereby reducing the impact of centralized institutions on interests and privacy of the participants. All transaction records are transparently stored in the blockchain to ensure security, reliability, and accountability. Additionally, a dynamic pricing mechanism based on demand-side ratings is implemented. The experimental results show that the additional cost incurred by integrating the blockchain is negligible, as calculated in terms of fractions of a cent. Providers can build API services with only approximately 10 lines of code, requiring minimal network bandwidth and demonstrating strong feasibility and practicality.

Key words: blockchain, large model, prompt, LangChain, privacy protection, smart contract

中图分类号: