Structured data ingestion

From aifinlab/FinClaw · View interactive version

Structured data ingestion is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于表/API/DB接入的结构化数据接入原子 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": "database",
    "source_name": "financial_db",
    "connection_string": "mysql://user:pass@host:3306/db",
    "table_name": "stock_prices"
  },
  "ingestion_config": {
    "extraction_mode": "incremental",
    "time_field": "trade_date",
    "last_sync_time": "2024-03-14T10:00:00",
    "batch_size": 1000
  },
  "ingestion_results": {
    "total_records": 5000,
    "new_records": 500,
    "updated_records": 4500,
    "failed_records": 0,
    "ingestion_time": "2024-03-15T10:00:00",
    "duration": "30s"
  },
  "data_sample": [
    {
      "trade_date": "2024-03-15",
      "stock_code": "000001",
      "open_price": 10.50,
      "close_price": 10.80,
      "volume": 1000000
    }
  ],
  "data_quality": {
    "completeness": 1.0,
    "accuracy": 0.99,
    "consistency": 0.98,
    "overall_score": 0.99
  },
  "statistics": {
    "records_ingested": 5000,
    "records_failed": 0,
    "ingestion_rate": "166.7 records/s",
    "success_rate": 1.0
  }
}

注意事项与限制

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.