Product feature extraction

From aifinlab/FinClaw · View interactive version

Product feature 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": "product_specification",
    "source_file": "product_spec.pdf"
  },
  "product_info": {
    "product_name": "示例理财产品",
    "product_code": "PRD001",
    "product_type": "financial_product",
    "product_category": "理财产品",
    "product_description": "一款稳健型理财产品,适合风险承受能力较低的投资者"
  },
  "features": [
    {
      "feature_id": "FEAT001",
      "feature_name": "预期收益率",
      "feature_type": "performance",
      "feature_value": "4.5%",
      "feature_unit": "%",
      "feature_category": "收益特征",
      "confidence": 0.98
    },
    {
      "feature_id": "FEAT002",
      "feature_name": "投资期限",
      "feature_type": "time",
      "feature_value": "365",
      "feature_unit": "天",
      "feature_category": "期限特征",
      "confidence": 0.95
    },
    {
      "feature_id": "FEAT003",
      "feature_name": "风险等级",
      "feature_type": "risk",
      "feature_value": "R2",
      "feature_unit": null,
      "feature_category": "风险特征",
      "confidence": 0.97
    },
    {
      "feature_id": "FEAT004",
      "feature_name": "起购金额",
      "feature_type": "amount",
      "feature_value": "10000",
      "feature_unit": "CNY",
      "feature_category": "门槛特征",
      "confidence": 0.96
    }
  ],
  "attributes": {
    "physical_attributes": [],
    "functional_attributes": [
      {"name": "预期收益率", "value": "4.5%"},
      {"name": "风险等级", "value": "R2"}
    ],
    "price_attributes": [
      {"name": "起购金额", "value": "10000 CNY"}
    ],
    "time_attributes": [
      {"name": "投资期限", "value": "365天"}
    ]
  },
  "tags": [
    "稳健型",
    "低风险",
    "中长期",
    "理财产品"
  ],
  "statistics": {
    "total_features": 15,
    "extracted_features": 14,
    "missing_features": 1,
    "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.