tutorialfine-tuninglegalertas-studiogetting-started
入门指南:使用 Ertas 在 30 分钟内微调您的首个法律 AI 模型
实操教程:注册 Ertas Studio,上传法律样本数据集,配置并运行微调,评估输出结果,导出模型——全程仅需 30 分钟。
Edward Xi Yang
这是一篇实操教程。学完之后,您将拥有一个经过微调的 AI 模型,能够分析法律合同条款——基于样本数据训练、评估完毕、随时可导出。
无需 ML 经验。无需 Python。无需租用 GPU。只需一个浏览器和 30 分钟。
您将构建的内容
一个经过微调的模型,能够:
- 将合同条款作为输入
- 识别条款类型(赔偿、终止、保密等)
- 评估风险等级(低、中、高)
- 提供简要分析及关键关注点
- 建议谈判要点
这是代理机构为律师事务所客户部署合同审查模型的简化版本。流程完全相同——只是训练数据和范围不同。
前置条件
- 一个 Ertas 账号(在 ertas.ai 注册)
- 30 分钟不受打扰的时间
- 无技术先决条件——教程涵盖所有内容
第 0-5 分钟:注册并创建项目
- 前往 ertas.ai 创建账号
- 在仪表盘中点击 New Project
- 命名为:"Legal Contract Review - Tutorial"
- 选择项目类型:Fine-Tuning
您现在进入了 Ertas Studio 工作区。您将在这里上传数据、配置训练并评估模型。
第 5-10 分钟:上传法律样本数据集
本教程使用标注过的合同条款样本数据集。在实际部署中,这些数据来自律师事务所的历史文件审查。
样本数据格式
训练数据是一个 JSONL 文件,每行是一个包含指令和响应的 JSON 对象:
{"instruction": "Analyse the following contract clause for risk level and key concerns:\n\n'The Vendor shall indemnify, defend, and hold harmless the Client from and against any and all claims, losses, damages, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or relating to any breach of this Agreement by the Vendor.'", "response": "Clause Type: Indemnification\nRisk Level: LOW\n\nAnalysis: This is a standard one-way indemnification clause where the vendor indemnifies the client. Key observations:\n1. Scope is limited to breaches of the agreement — this is appropriately narrow\n2. Includes attorneys' fees, which is standard\n3. Uses 'arising out of or relating to' — broader than 'arising out of' alone but still reasonable\n4. One-way protection favours the client\n\nNegotiation Points:\n- Consider adding a reciprocal indemnification clause\n- Consider adding a liability cap (e.g., aggregate limit equal to fees paid)\n- The 'relating to' language could be narrowed to 'directly arising from' if the vendor has leverage"}上传步骤
-
在项目中点击 Upload Data
-
选择您的 JSONL 文件(或拖拽上传)
-
Studio 验证格式并显示预览:
- 总示例数:已显示