Semi structured data ingestion

From aifinlab/FinClaw · View interactive version

Semi structured data ingestion is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于Excel/表单接入的半结构化数据接入原子 skill,适用于通用行业数据接入场景。

How to use this skill

Skill file

半结构化数据接入 Skill

数据来源

本 Skill 支持多种半结构化数据源输入格式,核心数据来源包括:

1. 数据源类型

2. 数据结构类型

3. 数据格式要求

4. 数据特征

说明:本 Skill 不包含数据采集功能,需要用户提供半结构化数据文件。建议数据格式规范,以便进行准确的数据接入。


功能

本 Skill 提供全面的半结构化数据接入能力,涵盖多种接入功能:

1. 文件读取

2. 数据结构解析

3. 数据提取

4. 数据转换

5. 数据验证

6. 高级处理功能


使用示例

输出示例

{
  "source_info": {
    "source_type": "excel_file",
    "source_file": "financial_data.xlsx",
    "file_size": 2048000,
    "sheet_count": 3
  },
  "ingestion_config": {
    "sheets": ["利润表", "资产负债表", "现金流量表"],
    "header_row": 1,
    "data_start_row": 2,
    "encoding": "UTF-8"
  },
  "ingestion_results": {
    "total_sheets": 3,
    "total_records": 5000,
    "successful_records": 4950,
    "failed_records": 50,
    "ingestion_time": "2024-03-15T10:00:00",
    "duration": "45s"
  },
  "data_structure": {
    "sheets": [
      {
        "sheet_name": "利润表",
        "row_count": 30,
        "column_count": 5,
        "headers": ["项目", "2024年", "2023年", "2022年", "2021年"],
        "data_records": 28
      }
    ]
  },
  "data_sample": [
    {
      "sheet": "利润表",
      "row": 2,
      "data": {
        "项目": "营业收入",
        "2024年": 1000000000,
        "2023年": 900000000,
        "2022年": 800000000,
        "2021年": 700000000
      }
    }
  ],
  "data_quality": {
    "completeness": 0.99,
    "accuracy": 0.97,
    "consistency": 0.96,
    "overall_score": 0.97
  },
  "statistics": {
    "files_processed": 1,
    "records_ingested": 4950,
    "records_failed": 50,
    "success_rate": 0.99
  }
}

注意事项与限制

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.