# training_samples

id: ts_5520a3fb03524c7d
model_id: cm_65308f58acf24e48
text: 患者张三患有高血压，正在服用降压药治疗。
metadata: {"source": "manual"}
created_at: 2026-02-26T00:08:08.805202
entities:
  [{"start": 2, "end": 4, "label": "PERSON", "text": "\u5f20\u4e09"}, {"start": 6, "end": 9, "label": "DISEASE", "text": "\u9ad8\u8840\u538b"}, {"start": 14, "end": 17, "label": "DRUG", "text": "\u964d\u538b\u836f"}]


id: ts_a03279a5dd374924
model_id: cm_65308f58acf24e48
text: 李四因感冒发烧到医院就诊，医生开具了退烧药。
metadata: {"source": "manual"}
created_at: 2026-02-26T00:08:08.807355
entities:
  [{"start": 0, "end": 2, "label": "PERSON", "text": "\u674e\u56db"}, {"start": 3, "end": 5, "label": "SYMPTOM", "text": "\u611f\u5192"}, {"start": 5, "end": 7, "label": "SYMPTOM", "text": "\u53d1\u70e7"}, {"start": 21, "end": 24, "label": "DRUG", "text": "\u9000\u70e7\u836f"}]


id: ts_fb68c03813324a82
model_id: cm_65308f58acf24e48
text: 王五接受了心脏搭桥手术，术后恢复良好。
metadata: {"source": "manual"}
created_at: 2026-02-26T00:08:08.809457
entities:
  [{"start": 0, "end": 2, "label": "PERSON", "text": "\u738b\u4e94"}, {"start": 5, "end": 11, "label": "TREATMENT", "text": "\u5fc3\u810f\u642d\u6865\u624b\u672f"}]


# kg_rag_configs

id: kgr_64c72a939e0d4b78
tenant_id: tenant_001
project_id: project_001
name: 项目知识问答
description: 基于项目知识图谱的智能问答
retrieval_config: {"top_k": 5, "similarity_threshold": 0.7, "expand_relations": true}
generation_config: {"temperature": 0.3, "max_tokens": 1000, "include_sources": true}
created_at: 2026-02-26T00:08:09.836739
updated_at: 2026-02-26T00:08:09.836739
kg_config:
  {"entity_types": ["PERSON", "ORG", "PROJECT", "TECH"], "relation_types": ["works_with", "belongs_to", "depends_on"]}


# prediction_results

id: pr_03fb48e2f00b4070
model_id: pm_8e29e55a4be14fc0
prediction_type: trend
explanation: 基于7个历史数据点，预测趋势为increasing
created_at: 2026-02-26T00:08:09.829461
prediction_data:
  {"predicted_value": 23.96, "trend": "increasing", "slope": 1.9643, "confidence": 0.74, "explanation": "\u57fa\u4e8e7\u4e2a\u5386\u53f2\u6570\u636e\u70b9\uff0c\u9884\u6d4b\u8d8b\u52bf\u4e3aincreasing"}


id: pr_d85f43d43e54465b
model_id: pm_fc12aed6fb6d4bbf
prediction_type: anomaly
explanation: 当前值偏离均值28.14个标准差，检测到异常
created_at: 2026-02-26T00:08:09.832686
prediction_data:
  {"is_anomaly": true, "anomaly_score": 1.0, "z_score": 28.14, "mean": 12.14, "std": 1.35, "confidence": 0.77, "explanation": "\u5f53\u524d\u503c\u504f\u79bb\u5747\u503c28.14\u4e2a\u6807\u51c6\u5dee\uff0c\u68c0\u6d4b\u5230\u5f02\u5e38"}


# user_profiles

id: up_383e8d7c390f446f
tenant_id: test_tenant_001
user_id: test_user_001
first_seen: 2026-02-26T06:16:32.189455
last_seen: 2026-02-26T06:16:32.198537
subscription_history: []
created_at: 2026-02-26T06:16:32.189455
updated_at: 2026-02-26T06:16:32.198537
feature_usage:
  {"dashboard_view": 1, "entity_extraction": 1, "relation_discovery": 1, "upgrade_click": 1, "user_registration": 1}


# funnels

id: fnl_9a15d15db8e5466a
tenant_id: test_tenant_001
name: 用户注册转化漏斗
description: 从访问到完成注册的转化流程
created_at: 2026-02-26T06:16:32.121380
updated_at: 2026-02-26T06:16:32.121380
steps:
  [{"name": "\u8bbf\u95ee\u9996\u9875", "event_name": "page_view_home"}, {"name": "\u70b9\u51fb\u6ce8\u518c", "event_name": "signup_click"}, {"name": "\u586b\u5199\u4fe1\u606f", "event_name": "signup_form_fill"}, {"name": "\u5b8c\u6210\u6ce8\u518c", "event_name": "signup_complete"}]


# experiments

id: exp_d8df1edd2af7468c
tenant_id: test_tenant_001
name: 首页按钮颜色测试
description: 测试不同按钮颜色对转化率的影响
hypothesis: 蓝色按钮比红色按钮有更高的点击率
status: running
traffic_allocation: random
traffic_split: {"control": 0.34, "variant_a": 0.33, "variant_b": 0.33}
target_audience: {"conditions": []}
primary_metric: button_click_rate
secondary_metrics: ["conversion_rate", "bounce_rate"]
start_date: 2026-02-26T06:16:32.129172
created_at: 2026-02-26T06:16:32.125695
updated_at: 2026-02-26T06:16:32.129172
created_by: test
variants:
  [{"id": "control", "name": "\u7ea2\u8272\u6309\u94ae", "is_control": true}, {"id": "variant_a", "name": "\u84dd\u8272\u6309\u94ae", "is_control": false}, {"id": "variant_b", "name": "\u7eff\u8272\u6309\u94ae", "is_control": false}]


# email_templates

id: et_acec7dc880c547b8
tenant_id: test_tenant_001
name: 欢迎邮件
template_type: welcome
subject: 欢迎加入 InsightFlow！
variables: ["user_name", "dashboard_url"]
from_name: InsightFlow 团队
from_email: welcome@insightflow.io
created_at: 2026-02-26T06:16:32.162040
updated_at: 2026-02-26T06:16:32.162040
html_content:
                  <h1>欢迎，{{user_name}}！</h1>
                  <p>感谢您注册 InsightFlow。我们很高兴您能加入我们！</p>
                  <p>您的账户已创建，可以开始使用以下功能：</p>
                  <ul>
                      <li>知识图谱构建</li>
                      <li>智能实体提取</li>
                      <li>团队协作</li>
                  </ul>
                  <p><a href="{{dashboard_url}}">立即开始使用</a></p>
                  

text_content:
                  欢迎，{{user_name}}！
                  感谢您注册 InsightFlow。我们很高兴您能加入我们！
                  您的账户已创建，可以开始使用以下功能：
                  
                      知识图谱构建
                      智能实体提取
                      团队协作
                  
                  立即开始使用
                  


# automation_workflows

id: aw_bf95cdb4be1543cb
tenant_id: test_tenant_001
name: 新用户欢迎序列
description: 用户注册后自动发送欢迎邮件序列
trigger_type: user_signup
trigger_conditions: {"event": "user_signup"}
created_at: 2026-02-26T06:16:32.173111
updated_at: 2026-02-26T06:16:32.173111
actions:
  [{"type": "send_email", "template_type": "welcome", "delay_hours": 0}, {"type": "send_email", "template_type": "onboarding", "delay_hours": 24}, {"type": "send_email", "template_type": "feature_tips", "delay_hours": 72}]


# code_examples

id: ex_839e1368b54d4de4
title: 使用 Python SDK 创建项目
description: 演示如何使用 Python SDK 创建新项目
language: python
category: quickstart
explanation: 首先导入 Client 类，然后使用 API Key 初始化客户端，最后调用 create 方法创建项目。
tags: ["python", "quickstart", "projects"]
author_id: dev_001
author_name: InsightFlow Team
api_endpoints: ["/api/v1/projects"]
created_at: 2026-02-26T06:42:07.807212
updated_at: 2026-02-26T06:42:07.807212
code:
  from insightflow import Client

  client = Client(api_key="your_api_key")
  project = client.projects.create(name="My Project")
  print(f"Created project: {project.id}")


id: ex_71636dc265f24eb0
title: 使用 JavaScript SDK 上传文件
description: 演示如何使用 JavaScript SDK 上传音频文件
language: javascript
category: upload
explanation: 使用 JavaScript SDK 上传文件到 InsightFlow
tags: ["javascript", "upload", "audio"]
author_id: dev_002
author_name: JS Team
api_endpoints: []
created_at: 2026-02-26T06:42:45.518017
updated_at: 2026-02-26T06:42:45.518017
code:
  const { Client } = require('insightflow');

  const client = new Client({ apiKey: 'your_api_key' });
  const result = await client.uploads.create({
    projectId: 'proj_123',
    file: './meeting.mp3'
  });
  console.log('Upload complete:', result.id);


