Metric field extraction

From aifinlab/FinClaw · View interactive version

Metric field extraction is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于报表指标抽取的指标字段抽取原子 skill,适用于通用行业信息抽取场景。

How to use this skill

Skill file

指标字段抽取 Skill

数据来源

本 Skill 支持多种报表数据输入格式,核心数据来源包括:

1. 报表类型

2. 文档格式

3. 数据格式要求

4. 指标类型

说明:本 Skill 不包含数据采集功能,需要用户提供报表文件。建议报表格式规范,以便进行准确的指标抽取。


功能

本 Skill 提供全面的指标字段抽取能力,涵盖多种抽取功能:

1. 指标识别

2. 指标值抽取

3. 指标标准化

4. 指标验证

5. 指标分类

6. 高级处理功能


使用示例

输出示例

{
  "source_info": {
    "document_id": "DOC001",
    "document_type": "business_report",
    "report_period": "2024-Q1",
    "source_file": "business_report.pdf"
  },
  "metrics": [
    {
      "metric_id": "MET001",
      "metric_name": "营业收入",
      "standard_name": "revenue",
      "metric_type": "amount",
      "value": 1000000000,
      "unit": "CNY",
      "period": "2024-Q1",
      "confidence": 0.98,
      "position": {
        "page": 3,
        "row": 5,
        "column": 2
      },
      "category": "financial",
      "tags": ["收入", "财务"],
      "related_metrics": ["MET002", "MET003"]
    },
    {
      "metric_id": "MET002",
      "metric_name": "同比增长率",
      "standard_name": "yoy_growth_rate",
      "metric_type": "percentage",
      "value": 15.5,
      "unit": "%",
      "period": "2024-Q1",
      "confidence": 0.95,
      "position": {
        "page": 3,
        "row": 5,
        "column": 3
      },
      "category": "growth",
      "tags": ["增长率", "同比"],
      "related_metrics": ["MET001"]
    }
  ],
  "statistics": {
    "total_metrics": 50,
    "extracted_metrics": 48,
    "missing_metrics": 2,
    "average_confidence": 0.96
  }
}

注意事项与限制

1. 报表格式要求

2. 指标识别准确性

3. 数值提取准确性

4. 指标完整性

5. 使用限制


参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.