<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>提示词测试 on AI 观察</title><link>https://ai.wujiong.cc/tags/%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B5%8B%E8%AF%95/</link><description>Recent content in 提示词测试 on AI 观察</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 17 Oct 2026 14:58:00 +0800</lastBuildDate><atom:link href="https://ai.wujiong.cc/tags/%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B5%8B%E8%AF%95/index.xml" rel="self" type="application/rss+xml"/><item><title>用 promptfoo 搭建提示词回归测试：改提示词前先跑一遍</title><link>https://ai.wujiong.cc/posts/2026-10-17-tools-promptfoo-regression-setup/</link><pubDate>Sat, 17 Oct 2026 14:58:00 +0800</pubDate><guid>https://ai.wujiong.cc/posts/2026-10-17-tools-promptfoo-regression-setup/</guid><description>&lt;p&gt;用 promptfoo 做提示词回归测试，基本流程是：&lt;strong&gt;初始化项目 → 在配置文件里写好提示词、模型和测试用例 → 为每个用例设置断言 → 运行评测并在网页界面对比结果。&lt;/strong&gt; 以后每次改提示词或换模型，先跑一遍测试，就能及时发现「改好了这里、弄坏了那里」。&lt;/p&gt;
&lt;h2 id="promptfoo-是什么"&gt;promptfoo 是什么&lt;/h2&gt;
&lt;p&gt;promptfoo 是一个开源的命令行工具，用于评测和对比提示词与模型输出。它通过一个 YAML 配置文件定义提示词、模型提供方和测试用例，支持多种断言方式，并提供本地网页界面查看结果。具体功能和参数请以官方文档为准。&lt;/p&gt;</description></item></channel></rss>