eddmpython commited on
Commit
5846e0d
·
verified ·
1 Parent(s): 597537f

sync aiKnowledge: 150 insights, 1544 playbook

Browse files
ai/knowledge/error_patterns.json ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "error_type": "TypeError",
4
+ "error_signature": "analysis() takes <N> positional arguments but 1 was given",
5
+ "wrong_code": "c.analysis(\"수익성\")",
6
+ "correct_code": "c.analysis(\"financial\", \"수익성\")",
7
+ "tool_name": "analysis",
8
+ "frequency": 5,
9
+ "last_seen": 1775313437.0288768
10
+ },
11
+ {
12
+ "error_type": "TypeError",
13
+ "error_signature": "analysis() missing 1 required positional argument",
14
+ "wrong_code": "c.analysis(\"성장성\")",
15
+ "correct_code": "c.analysis(\"financial\", \"성장성\")",
16
+ "tool_name": "analysis",
17
+ "frequency": 5,
18
+ "last_seen": 1775313437.0288768
19
+ },
20
+ {
21
+ "error_type": "TypeError",
22
+ "error_signature": "macro() got an unexpected keyword argument 'topic'",
23
+ "wrong_code": "dartlab.macro(topic=\"종합\")",
24
+ "correct_code": "dartlab.macro(\"종합\")",
25
+ "tool_name": "macro",
26
+ "frequency": 5,
27
+ "last_seen": 1775313437.0288768
28
+ },
29
+ {
30
+ "error_type": "TypeError",
31
+ "error_signature": "macro() got an unexpected keyword argument 'axis'",
32
+ "wrong_code": "dartlab.macro(axis=\"사이클\")",
33
+ "correct_code": "dartlab.macro(\"사이클\")",
34
+ "tool_name": "macro",
35
+ "frequency": 5,
36
+ "last_seen": 1775313437.0288768
37
+ },
38
+ {
39
+ "error_type": "KeyError",
40
+ "error_signature": "KeyError: 'cycle'",
41
+ "wrong_code": "result[\"cycle\"]",
42
+ "correct_code": "print(result.keys()) # 먼저 키 확인",
43
+ "tool_name": "macro",
44
+ "frequency": 5,
45
+ "last_seen": 1775313437.0288768
46
+ },
47
+ {
48
+ "error_type": "KeyError",
49
+ "error_signature": "KeyError: 'factors'",
50
+ "wrong_code": "result[\"factors\"]",
51
+ "correct_code": "print(result.keys()) # 먼저 키 확인",
52
+ "tool_name": "macro",
53
+ "frequency": 5,
54
+ "last_seen": 1775313437.0288768
55
+ },
56
+ {
57
+ "error_type": "KeyError",
58
+ "error_signature": "KeyError: 'narrative'",
59
+ "wrong_code": "result[\"narrative\"]",
60
+ "correct_code": "print(result.keys()) # 먼저 키 확인",
61
+ "tool_name": "macro",
62
+ "frequency": 5,
63
+ "last_seen": 1775313437.0288768
64
+ },
65
+ {
66
+ "error_type": "AttributeError",
67
+ "error_signature": "has no attribute 'empty'",
68
+ "wrong_code": "df.empty",
69
+ "correct_code": "len(df) == 0 # Polars는 .empty 없음",
70
+ "tool_name": "polars",
71
+ "frequency": 5,
72
+ "last_seen": 1775313437.0288768
73
+ },
74
+ {
75
+ "error_type": "AttributeError",
76
+ "error_signature": "has no attribute 'iterrows'",
77
+ "wrong_code": "df.iterrows()",
78
+ "correct_code": "df.iter_rows(named=True) # Polars 문법",
79
+ "tool_name": "polars",
80
+ "frequency": 5,
81
+ "last_seen": 1775313437.0288768
82
+ },
83
+ {
84
+ "error_type": "AttributeError",
85
+ "error_signature": "has no attribute 'sort_values'",
86
+ "wrong_code": "df.sort_values(\"col\")",
87
+ "correct_code": "df.sort(\"col\") # Polars 문법",
88
+ "tool_name": "polars",
89
+ "frequency": 5,
90
+ "last_seen": 1775313437.0288768
91
+ },
92
+ {
93
+ "error_type": "AttributeError",
94
+ "error_signature": "has no attribute 'to_dict'",
95
+ "wrong_code": "df.to_dict()",
96
+ "correct_code": "df.to_dicts() # Polars는 to_dicts()",
97
+ "tool_name": "polars",
98
+ "frequency": 5,
99
+ "last_seen": 1775313437.0288768
100
+ },
101
+ {
102
+ "error_type": "MemoryError",
103
+ "error_signature": "c.sections",
104
+ "wrong_code": "c.sections",
105
+ "correct_code": "c.show(\"IS\") # sections는 409MB. show(topic)으로 개별 조회",
106
+ "tool_name": "company",
107
+ "frequency": 5,
108
+ "last_seen": 1775313437.0288768
109
+ },
110
+ {
111
+ "error_type": "TimeoutError",
112
+ "error_signature": "scan join timeout",
113
+ "wrong_code": "df1.join(df2, ...)",
114
+ "correct_code": "# scan DataFrame join 금지 (타임아웃). 개별 scan 결과를 순차 해석",
115
+ "tool_name": "scan",
116
+ "frequency": 5,
117
+ "last_seen": 1775313437.0288768
118
+ },
119
+ {
120
+ "error_type": "TypeError",
121
+ "error_signature": "review() should be used only for explicit report requests",
122
+ "wrong_code": "c.review(\"수익성\")",
123
+ "correct_code": "c.analysis(\"financial\", \"수익성\") # 분석에는 analysis 사용",
124
+ "tool_name": "review",
125
+ "frequency": 5,
126
+ "last_seen": 1775313437.0288768
127
+ },
128
+ {
129
+ "error_type": "AttributeError",
130
+ "error_signature": "has no attribute 'rename'",
131
+ "wrong_code": "df.rename({\"old\": \"new\"})",
132
+ "correct_code": "df.rename({\"old\": \"new\"}) # Polars rename은 동일하나 columns= 불필요",
133
+ "tool_name": "polars",
134
+ "frequency": 5,
135
+ "last_seen": 1775313437.0288768
136
+ }
137
+ ]
ai/knowledge/insights.json ADDED
The diff for this file is too large to render. See raw diff
 
ai/knowledge/meta.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "exported_at": 1776066621.8841176,
4
+ "stats": {
5
+ "insights": 150,
6
+ "playbook": 1544
7
+ }
8
+ }
ai/knowledge/playbook.json ADDED
The diff for this file is too large to render. See raw diff
 
ai/knowledge/skills.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "question": "삼성전자 수익성 분석해줘",
4
+ "category": "profitability",
5
+ "tools_used": "[\"analysis\"]",
6
+ "code_template": "c = dartlab.Company(\"{stockCode}\")\nr = c.analysis(\"financial\", \"수익성\")\nflags = r.get(\"profitabilityFlags\", {})\nhistory = r[\"marginTrend\"][\"history\"][:5]\nprint(\"| 기간 | 매출(억) | 영업이익률 | 순이익률 |\")\nprint(\"| --- | --- | --- | --- |\")\nfor h in history:\n rev = h.get(\"revenue\", 0)\n opm = h.get(\"operatingMargin\", 0)\n npm = h.get(\"netMargin\", 0)\n print(f'| {h[\"period\"]} | {rev/1e8:,.0f} | {opm:.1f}% | {npm:.1f}% |')",
7
+ "result_keys": "[\"marginTrend\", \"profitabilityFlags\", \"returnTrend\"]",
8
+ "success_count": 1,
9
+ "quality_score": 0.8,
10
+ "mode": "analysis",
11
+ "created_at": 1775314511.7738278,
12
+ "last_used": 1775314511.7738278
13
+ },
14
+ {
15
+ "question": "신용등급 분석해줘",
16
+ "category": "credit",
17
+ "tools_used": "[\"credit\"]",
18
+ "code_template": "c = dartlab.Company(\"{stockCode}\")\ncr = c.credit(detail=True)\nprint(f\"등급: {cr['grade']}, 건전도: {cr['healthScore']}/100\")\nprint(f\"\\n주요 지표:\")\nfor k, v in cr.get(\"metrics\", {}).items():\n print(f\" {k}: {v}\")",
19
+ "result_keys": "[\"grade\", \"healthScore\", \"score\", \"metrics\", \"narratives\"]",
20
+ "success_count": 1,
21
+ "quality_score": 0.8,
22
+ "mode": "analysis",
23
+ "created_at": 1775314511.7953985,
24
+ "last_used": 1775314511.7953985
25
+ },
26
+ {
27
+ "question": "시장에서 수익성 좋은 회사 찾아줘",
28
+ "category": "profitability",
29
+ "tools_used": "[\"scan\"]",
30
+ "code_template": "df = dartlab.scan(\"profitability\")\nprint(df.columns)\nprint(df.head(10))",
31
+ "result_keys": "[]",
32
+ "success_count": 1,
33
+ "quality_score": 0.8,
34
+ "mode": "analysis",
35
+ "created_at": 1775314511.8073995,
36
+ "last_used": 1775314511.8073995
37
+ },
38
+ {
39
+ "question": "경제 사이클 분석해줘",
40
+ "category": "macro",
41
+ "tools_used": "[\"macro\"]",
42
+ "code_template": "r = dartlab.macro(\"사이클\")\nprint(r.keys())\nfor k, v in r.items():\n if isinstance(v, dict):\n print(f\"\\n{k}:\")\n for k2, v2 in v.items():\n print(f\" {k2}: {v2}\")\n else:\n print(f\"{k}: {v}\")",
43
+ "result_keys": "[]",
44
+ "success_count": 1,
45
+ "quality_score": 0.8,
46
+ "mode": "analysis",
47
+ "created_at": 1775314511.8153992,
48
+ "last_used": 1775314511.8153992
49
+ },
50
+ {
51
+ "question": "최근 주가 추이 보여줘",
52
+ "category": "quant",
53
+ "tools_used": "[\"gather\"]",
54
+ "code_template": "c = dartlab.Company(\"{stockCode}\")\nprice = c.gather(\"price\")\nif price is not None:\n print(price.tail(20))\nelse:\n print(\"주가 데이터 없음\")",
55
+ "result_keys": "[]",
56
+ "success_count": 1,
57
+ "quality_score": 0.8,
58
+ "mode": "analysis",
59
+ "created_at": 1775314511.82488,
60
+ "last_used": 1775314511.82488
61
+ },
62
+ {
63
+ "question": "공시 검색",
64
+ "category": "search",
65
+ "tools_used": "[\"search\"]",
66
+ "code_template": "results = dartlab.search(\"유상증자\")\nprint(f\"검색 결과: {len(results)}건\")\nprint(results.head(10))",
67
+ "result_keys": "[]",
68
+ "success_count": 1,
69
+ "quality_score": 0.8,
70
+ "mode": "analysis",
71
+ "created_at": 1775314511.8328826,
72
+ "last_used": 1775314511.8328826
73
+ },
74
+ {
75
+ "question": "종합 분석해줘",
76
+ "category": "general",
77
+ "tools_used": "[\"analysis\"]",
78
+ "code_template": "c = dartlab.Company(\"{stockCode}\")\n# 3축 동시 수집\nprof = c.analysis(\"financial\", \"수익성\")\ngrowth = c.analysis(\"financial\", \"성장성\")\nstab = c.analysis(\"financial\", \"안정성\")\n\n# 수익성 요약\nh = prof[\"marginTrend\"][\"history\"][0]\nprint(f\"최근 영업이익률: {h.get('operatingMargin', 0):.1f}%\")\n\n# 성장성 요약\ng = growth.get(\"revenueGrowth\", {})\nprint(f\"매출 성장률: {g.get('yoy', 'N/A')}\")\n\n# 안정성 요약\ns = stab.get(\"debtAnalysis\", {})\nprint(f\"부채비율: {s.get('debtRatio', 'N/A')}\")",
79
+ "result_keys": "[\"marginTrend\", \"revenueGrowth\", \"debtAnalysis\"]",
80
+ "success_count": 1,
81
+ "quality_score": 0.8,
82
+ "mode": "analysis",
83
+ "created_at": 1775314511.842193,
84
+ "last_used": 1775314511.842193
85
+ },
86
+ {
87
+ "question": "재고자산 주석 분석",
88
+ "category": "general",
89
+ "tools_used": "[]",
90
+ "code_template": "c = dartlab.Company(\"{stockCode}\")\ninv = c.notes.inventory\nif inv is not None:\n print(inv)\nelse:\n print(\"재고자산 주석 데이터 없음\")",
91
+ "result_keys": "[]",
92
+ "success_count": 1,
93
+ "quality_score": 0.8,
94
+ "mode": "analysis",
95
+ "created_at": 1775314511.8515372,
96
+ "last_used": 1775314511.8515372
97
+ }
98
+ ]