-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
754 lines (567 loc) · 50.2 KB
/
atom.xml
File metadata and controls
754 lines (567 loc) · 50.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>无奈何杨(wnhyang)</title>
<icon>https://wnhyang.github.io/icon.png</icon>
<subtitle>I will keep to fight</subtitle>
<link href="https://wnhyang.github.io/atom.xml" rel="self"/>
<link href="https://wnhyang.github.io/"/>
<updated>2025-03-30T05:56:55.125Z</updated>
<id>https://wnhyang.github.io/</id>
<author>
<name>无奈何杨(wnhyang)</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>置顶声明</title>
<link href="https://wnhyang.github.io/article/a50aac1c.html"/>
<id>https://wnhyang.github.io/article/a50aac1c.html</id>
<published>2025-03-30T05:54:25.000Z</published>
<updated>2025-03-30T05:56:55.125Z</updated>
<summary type="html"><h1 id="博客停更了">博客停更了</h1>
<p>因为个人博客运营比不上现如今的微信公众号等等渠道,所以今后所有内容统一更新在微信公众号和语雀中。</p>
<p>个人语雀:<a</summary>
</entry>
<entry>
<title>基于规则引擎的决策系统开放在线体验了</title>
<link href="https://wnhyang.github.io/article/c1d213b2.html"/>
<id>https://wnhyang.github.io/article/c1d213b2.html</id>
<published>2025-03-28T02:26:56.000Z</published>
<updated>2025-03-30T05:52:46.035Z</updated>
<summary type="html"><p>项目地址:<a href="https://github.com/wnhyang/coolGuard"
class="uri">https://github.com/wnhyang/coolGuard</a></p>
<h1</summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>三方数据管理-远程接口调用,供应商&服务接口抽象分析</title>
<link href="https://wnhyang.github.io/article/55f89c19.html"/>
<id>https://wnhyang.github.io/article/55f89c19.html</id>
<published>2025-03-23T14:17:39.000Z</published>
<updated>2025-03-23T14:47:31.054Z</updated>
<summary type="html"><h1 id="前言">前言</h1>
<ol</summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>构建智能安全的三方数据管理体系:技术驱动下的数据协同与创新</title>
<link href="https://wnhyang.github.io/article/925a46b9.html"/>
<id>https://wnhyang.github.io/article/925a46b9.html</id>
<published>2025-03-19T14:18:40.000Z</published>
<updated>2025-03-19T14:19:43.750Z</updated>
<summary type="html"><h1 id="参考">参考</h1>
<p><a href="https://www.woshipm.com/it/5662657.html"
class="uri">https://www.woshipm.com/it/5662657.html</a></p>
<p><a</summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>实时决策系统中的核心组件——实时指标计算</title>
<link href="https://wnhyang.github.io/article/79137ca.html"/>
<id>https://wnhyang.github.io/article/79137ca.html</id>
<published>2025-03-16T11:14:11.000Z</published>
<updated>2025-03-16T11:39:40.008Z</updated>
<summary type="html"><h2 id="参考">参考</h2>
<p>《风控要略:互联网业务反欺诈之路 (马传雷,孙奇,高岳)》第8章</p>
<p><img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250316/image.70ahtfru5o.webp"
alt="image" /> ## 一、核心概念</p>
<ol type="1">
<li><p><strong>指标定义</strong>:在风控反欺诈业务中,无论是基于专家规则还是风控模型,都需要依赖对一定时间范围数据进行回溯加工的变量,这些变量被称为指标。例如“1天内设备上登录的账户过多”这一规则,就需要回溯24小时的历史数据,计算该设备在这段时间内登录的账户个数,并与配置的阈值进行比较判断。</p></li>
<li><p><strong>指标类型</strong>:</p>
<ul>
<li><strong>频度-出现次数统计</strong>:如IP最近5分钟注册次数、手机号最近1小时接收短信次数,次数过多可能对应垃圾注册、短信轰炸等风险。</li>
<li><strong>频度-关联个数统计</strong>:像1天内同一设备接收短信的手机号个数、7天内同一设备充值的账户个数,个数过多可能涉及群控设备、群控账号等风险。</li>
<li><strong>活跃天数</strong>:例如账户最近7天活跃次数、设备最近1个月活跃次数,活跃次数过少可能意味着是僵尸用户。</li>
<li><strong>移动距离</strong>:如设备最近1小时移动距离、设备最近24小时移动距离,移动距离过远可能存在虚假定位的风险。</li>
<li><strong>常用习惯</strong>:包括账户最近7天常用设备型号、账户最近30天常用登录城市,常用型号或城市不一致可能暗示账户被盗等情况。</li>
<li><strong>趋势计算</strong>:如账户最近1天多笔交易支付金额递增、账户最近1天先小额后大额支付,支付趋势异常可能与盗卡试探等风险相关。</li>
<li><strong>其他</strong>:例如账号最近5分钟密码连续错误次数,连续错误可能是账户遭受暴力破解的迹象。</li>
</ul></li>
<li><p><strong>指标特征</strong>:</p>
<ul>
<li><strong>时间窗口</strong>:指标计算所针对的特定时间段,如5分钟、1小时、1天等。</li>
<li><strong>事件</strong>:与指标相关的业务活动,如注册、登录、交易等。</li>
<li><strong>主属性</strong>:指标计算所围绕的主要对象,如IP、手机号、设备、账户等。</li>
<li><strong>副属性</strong>:辅助主属性进行指标计算的属性,如在计算设备接收短信的手机号个数时,手机号就是副属性。</li>
<li><strong>计算逻辑</strong>:对数据进行处理和计算的方式,如求和、去重求和、统计出现次数最多的设备型号等。</li>
</ul></li>
</ol></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>大语言模型(LLM)应用开发平台</title>
<link href="https://wnhyang.github.io/article/aab4179a.html"/>
<id>https://wnhyang.github.io/article/aab4179a.html</id>
<published>2025-03-12T13:50:22.000Z</published>
<updated>2025-03-12T14:56:07.630Z</updated>
<summary type="html"><h1 id="介绍">介绍</h1>
<p>在前文<a
href="https://mp.weixin.qq.com/s/9zxIHcIZCfhNjMgsoWQGog">免费使用满血版DeepSeek-R1的多种方案</a>中已经对大语言模型(LLM)应用开发平台有了相关介绍了,如下:</p>
<p>以 Dify 为代表的生成式 AI 应用平台,具备以下显著特性,为 AI
应用开发带来了新的变革:</p>
<ul>
<li><strong>低代码 /
无代码开发</strong>:提供了极为直观的可视化界面,用户无需深入了解复杂的底层技术细节,只需通过简单的拖拽和配置操作,就能快速定义
Prompt、上下文、插件以及工作流。这一特性大大降低了开发门槛,使得非技术人员也能够参与到
AI 应用的构建和迭代过程中,加速了 AI 应用的开发进程。</li>
<li><strong>多模型支持与灵活编排</strong>:支持
OpenAI、Claude、通义千问、讯飞星火等众多主流大语言模型,同时允许用户通过
API
集成自定义模型,充分满足了不同业务场景的多样化需求。通过模型编排(Agent
Design)技术,用户可以将不同的智能体进行组合,将复杂任务进行分解并协同完成,有效突破了单一模型的能力边界。例如,在一个智能问答系统中,一个智能体负责解析用户输入的问题,另一个智能体根据问题生成回答内容,第三个智能体则对生成的回答进行优化,从而为用户提供更准确、更优质的答案。</li>
<li><strong>模块化设计与丰富功能组件</strong>:采用了先进的模块化架构,提供了包括
RAG(检索增强生成)引擎、Agent
框架、工作流编排、模型管理等一系列丰富的功能组件,全面覆盖了从原型设计到生产部署的整个生命周期。其中,RAG
引擎支持 PDF、PPT、CSV
等多种常见文档格式的文本提取与索引,并且提供了高质量的向量检索模式和经济实惠的关键词索引模式,用户可以根据自身需求和成本预算进行选择,在保证准确性的同时,有效控制成本。</li>
<li><strong>企业级功能与 LLMOps 支持</strong>:</li>
</ul>
<!---->
<ul>
<li><ul>
<li><strong>知识库管理</strong>:支持将企业的私有数据进行集成,通过科学合理的分段策略和清洗规则对检索效果进行优化,确保
AI 在回答问题时能够基于准确、专业的知识,为企业提供可靠的智能服务。</li>
<li><strong>监控与优化</strong>:提供了全面的应用性能监控、交互数据分析以及成本跟踪功能,能够根据生产过程中产生的数据,对应用进行持续的优化和改进,这完全符合
LLMOps 的核心理念,有助于企业不断提升 AI 应用的质量和效率。</li>
<li><strong>灵活部署</strong>:支持本地化私有部署(如
Docker)和云端托管两种方式,企业可以根据自身对数据安全和合规性的要求,选择最适合的部署方案,确保数据的安全性和业务的合规运营。</li>
</ul></li>
</ul>
<!---->
<ul>
<li><strong>广泛的应用场景</strong>:涵盖了智能客服、内容生成、代码辅助、知识问答等多种常见场景,支持快速构建
MVP(最小可行产品),也可以方便地集成到企业现有的业务系统中。例如,通过
Agent 工具调用外部 API(如 Google 搜索、Stable Diffusion),能够扩展 LLM
的能力,使其能够完成如联网检索、图像生成等复杂任务,为用户提供更强大、更全面的服务。</li>
</ul></summary>
<category term="AI" scheme="https://wnhyang.github.io/tags/AI/"/>
</entry>
<entry>
<title>阿里TTL+Log4j2+MDC实现轻量级日志链路追踪</title>
<link href="https://wnhyang.github.io/article/12003acf.html"/>
<id>https://wnhyang.github.io/article/12003acf.html</id>
<published>2025-03-09T13:18:17.000Z</published>
<updated>2025-03-09T14:54:05.576Z</updated>
<summary type="html"><h1 id="参考">参考</h1>
<p>阿里TTL:<a
href="https://github.com/alibaba/transmittable-thread-local"
class="uri">https://github.com/alibaba/transmittable-thread-local</a></p>
<p>TLog:<a href="https://tlog.yomahub.com/"
class="uri">https://tlog.yomahub.com/</a></p>
<h1 id="背景">背景</h1>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250309/image.1zies002b6.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>推荐阅读:<a href="https://tlog.yomahub.com/pages/5b7bd2/"
class="uri">https://tlog.yomahub.com/pages/5b7bd2/</a>,本篇文章也是看了TLog的官方文档和相关源码而产生的。</p>
<p>在微服务架构中,由于线程池复用、异步调用等机制的存在,传统的线程级日志标识(如<code>ThreadLocal</code>)会导致请求链路断裂。例如,当主线程将任务提交到线程池时,子线程无法自动继承主线程的上下文信息,使得日志中的<code>traceId</code>丢失。</p>
<h1 id="核心组件原理">核心组件原理</h1>
<h2 id="mdc机制">MDC机制</h2>
<p><code>Log4j2</code>的<code>Mapped Diagnostic Context(MDC)</code>通过<code>ThreadLocal</code>存储线程级上下文数据。例如,在<code>HTTP</code>请求进入时,通过拦截器将<code>traceId</code>存入<code>MDC</code>,日志模板中通过<code>%X&#123;traceId&#125;</code>动态替换值。</p>
<h2
id="transmittablethreadlocalttl">TransmittableThreadLocal(TTL)</h2>
<p>阿里的<code>TTL</code>组件解决了线程池场景下的上下文传递问题。通过装饰线程池,<code>TTL</code>在任务提交时自动拷贝父线程的上下文到子线程,并在任务结束后清理副本,确保多级线程池调用链路完整。</p>
<h2 id="日志模板配置">日志模板配置</h2>
<p>在<code>log4j2.xml</code>中配置<code>PatternLayout</code>,添加<code>%X&#123;traceId&#125;</code>占位符即可实现日志标识嵌入。</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">Property</span> <span class="attr">name</span>=<span class="string">&quot;LOG_PATTERN&quot;</span> <span class="attr">value</span>=<span class="string">&quot;%d&#123;yyyy-MM-dd HH:mm:ss.SSS&#125; [%X&#123;traceId&#125;] [%t] %-5level %logger&#123;36&#125; - %msg%n&quot;</span>/&gt;</span></span><br></pre></td></tr></table></figure></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>风控系统之规则条件&操作增强,名单&标签&消息模版管理</title>
<link href="https://wnhyang.github.io/article/a1a51094.html"/>
<id>https://wnhyang.github.io/article/a1a51094.html</id>
<published>2025-03-02T11:32:33.000Z</published>
<updated>2025-03-02T14:13:50.799Z</updated>
<summary type="html"><h1 id="提要">提要</h1>
<p>前文:<a
href="https://mp.weixin.qq.com/s/u5FmDX2kVDyeZ8FSTgDh2Q">基于规则引擎的风控决策系统介绍与演示</a></p>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250302/image.5xaryketbz.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>再次说明,此项目还在开发中,还有很多事情要做,并不完善。回想起来,我也觉得挺不可思议的,最开始只是尝试着做,想着把后端做的差不多就行了,可做着做着,愈发确信前端是必不可少的,也因此项目发展到了现在的地步。可以从<code>Github</code>的<code>commit</code>看出来,也是最近半年比较活跃,也是这期间,学到的最多,进展比较快。</p>
<p>本篇文章主要围绕着规则条件与操作、名单&amp;标签&amp;消息模版的管理。</p>
<p>再强调一下,开发版本不代表最终成品。</p>
<h1 id="名单标签消息模版">名单&amp;标签&amp;消息模版</h1>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250302/yuque_diagram.3gojjrh9np.webp"
alt="yuque_diagram" />
<figcaption aria-hidden="true">yuque_diagram</figcaption>
</figure>
<p>还是回顾一下之前讲的,规则就是<code>IF(x)&#123;a&#125;ELSE&#123;b&#125;</code>,其中<code>x</code>为条件,<code>a</code>和<code>b</code>是动作/操作。在规划中,条件不仅仅是简单的普通类条件,还有指标、名单、正则、脚本等,最近也完善了这部分。开始之前我必须要从名单&amp;标签&amp;消息模版说起,方便下面的规则操作展开。</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>免费使用满血版DeepSeak-R1的多种方案</title>
<link href="https://wnhyang.github.io/article/82289aac.html"/>
<id>https://wnhyang.github.io/article/82289aac.html</id>
<published>2025-02-22T08:26:05.000Z</published>
<updated>2025-02-23T02:05:12.726Z</updated>
<summary type="html"><p>排名不分先后</p>
<h2 id="一综合型ai平台">一、综合型AI平台</h2>
<p>1、DeepSeek官方:<a href="https://chat.deepseek.com/"
class="uri">https://chat.deepseek.com/</a>,支持网页端与 APP 端使用</p>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250222/image.64dzie2njs.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>2、腾讯元宝:<a href="https://yuanbao.tencent.com/chat"
class="uri">https://yuanbao.tencent.com/chat</a>,支持网页端与 APP
端使用</p></summary>
<category term="软件/工具" scheme="https://wnhyang.github.io/tags/%E8%BD%AF%E4%BB%B6-%E5%B7%A5%E5%85%B7/"/>
</entry>
<entry>
<title>基于规则引擎的风控决策系统介绍与演示</title>
<link href="https://wnhyang.github.io/article/6843a436.html"/>
<id>https://wnhyang.github.io/article/6843a436.html</id>
<published>2025-02-17T09:43:10.000Z</published>
<updated>2025-02-23T02:04:19.952Z</updated>
<summary type="html"><h1
id="基于规则引擎的风控决策系统介绍与演示">基于规则引擎的风控决策系统介绍与演示</h1>
<h1 id="项目介绍">项目介绍</h1>
<p>项目地址:<a href="https://github.com/wnhyang/coolGuard"
class="uri">https://github.com/wnhyang/coolGuard</a></p>
<p>基于规则引擎的风控决策系统,旨在为企业提供高效、灵活且可扩展的风险控制解决方案。</p>
<h2 id="核心功能">核心功能</h2>
<p>以下是终极目标,部分已经实现,部分未实现,开源版本不会包含所有功能</p>
<ul>
<li><p>实时指标计算,同步决策,异步决策,反馈</p></li>
<li><p>普通字段与动态字段:普通字段支持字符串、整数、小数、日期、布尔值、枚举,动态字段通过普通计算计算而来,高度可配置</p></li>
<li><p>数据接入:灵活配置数据接入的入参和出参</p></li>
<li><p>指标:基于时间计算的指标,目前已有:求和、次数统计、最大值、最小值、平均值、关联次数、历史取值,未来计划加入:移动距离、移动速度、趋势、方差、标准差、业务链、连续次数(不同与次数统计,中间插入其他状态则重新统计)、公式等</p></li>
<li><p>规则:条件支持:普通条件、指标条件、名单条件、正则条件、公式/脚本条件,动作支持:添加标签、添加名单、设置字段、发送消息,可设置正式和模拟状态</p></li>
<li><p>策略:模式分为:顺序模式、最坏模式、投票模式、权重模式</p></li>
<li><p>策略集:编排策略,是规则引擎核心作用的体现</p></li>
<li><p>指标、规则、策略、策略集版本管理</p></li>
<li><p>事件中心:事件数据分析、可视化、报表</p></li>
<li><p>豁免管理:配置式豁免决策,临时通行</p></li>
<li><p>数据服务:名单、标签、IP/证件号/经纬度/手机解析</p></li>
<li><p>三方集成:将三方以配置的方式接入系统</p></li>
<li><p>流量治理:熔断、限流、降级</p></li>
<li><p>监控中心:指标/规则/策略/执行、结果、效率监控等</p></li>
<li><p>系统管理:用户管理、角色管理、权限管理、日志管理、系统配置等</p></li>
<li><p>高级实验特性:A/BTest、冠军挑战、回测、仿真、模型、图谱分析</p></li>
</ul></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>从0到1:商业化的系统化路径与关键策略</title>
<link href="https://wnhyang.github.io/article/ce8ecb06.html"/>
<id>https://wnhyang.github.io/article/ce8ecb06.html</id>
<published>2025-02-15T02:32:19.000Z</published>
<updated>2025-02-23T02:04:09.988Z</updated>
<summary type="html"><h3
id="从0到1商业化的系统化路径与关键策略">从0到1:商业化的系统化路径与关键策略</h3>
<p>在互联网与全球化竞争时代,商业化的成功早已不再是“灵光一现”的偶然,而是对市场规律、用户需求与资源整合的系统性实践。无论是科技初创企业还是传统行业转型,以下八个维度构成了商业化落地的核心框架。</p>
<hr />
<h4
id="一市场验证从假设到数据的科学决策"><strong>一、市场验证:从假设到数据的科学决策</strong></h4>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250215/pexels-energepic-com-27411-159888.13lwggzlw8.webp"
alt="pexels-energepic-com-27411-159888" />
<figcaption
aria-hidden="true">pexels-energepic-com-27411-159888</figcaption>
</figure>
<p>商业化的第一步是<strong>验证需求是否存在</strong>。以共享办公巨头WeWork为例,其早期通过小范围测试(MVP)发现:企业用户不仅需要灵活租赁空间,更依赖社群资源与增值服务。这一发现使其将盈利模式从“工位出租”转向“会员服务+企业生态”。<br />
<strong>关键动作</strong>:</p>
<ul>
<li><strong>精准用户分层</strong>:例如拼多多通过聚焦“价格敏感型下沉市场”,避开与京东、天猫的直接竞争。<br />
</li>
<li><strong>量化市场需求</strong>:使用TAM(潜在市场总量)、SAM(可服务市场)与SOM(可获得市场)模型,如智能硬件企业需评估技术渗透率与替代品威胁。<br />
</li>
<li><strong>动态竞争分析</strong>:Netflix通过持续监测迪士尼+、HBO的内容投入与用户留存率,调整原创内容投资比例。</li>
</ul></summary>
</entry>
<entry>
<title>DeepSeak锐评国内各大社交app</title>
<link href="https://wnhyang.github.io/article/5124ff5d.html"/>
<id>https://wnhyang.github.io/article/5124ff5d.html</id>
<published>2025-02-13T11:37:11.000Z</published>
<updated>2025-02-23T02:03:58.056Z</updated>
<summary type="html"><p>国内社交App市场呈现“一超多强、垂直分化”的竞争格局,各平台在用户争夺、内容生态和商业化之间艰难平衡。以下为针对主流社交App的锐评,直指痛点与趋势:</p>
<hr />
<h3 id="微信国民级工具的社交霸权与生态困局"><strong>1.
微信:国民级工具的“社交霸权”与生态困局</strong></h3>
<ul>
<li><strong>锐评</strong>:<br />
微信早已不是单纯的社交工具,而是集支付、内容、服务于一体的“数字生活操作系统”。其垄断性地位带来两大矛盾:</li>
</ul>
<!---->
<ul>
<li><ul>
<li><strong>社交绑架</strong>:朋友圈沦为“人设橱窗”,三天可见、分组屏蔽成为当代社交礼仪的讽刺;公众号打开率暴跌,订阅制被算法推荐击溃。</li>
<li><strong>生态过载</strong>:小程序、视频号、直播强行缝合,功能臃肿消耗用户体验,年轻用户开始用“小号”逃离熟人社交压力。<br />
<strong>核心矛盾</strong>:张小龙的“克制”理想 vs 腾讯的商业化焦虑。</li>
</ul></li>
</ul>
<hr />
<h3 id="抖音快手短视频帝国的社交幻觉"><strong>2.
抖音/快手:短视频帝国的“社交幻觉”</strong></h3>
<ul>
<li><strong>锐评</strong>:<br />
短视频平台以“杀时间”能力称王,但社交属性始终薄弱:</li>
</ul></summary>
<category term="AI" scheme="https://wnhyang.github.io/tags/AI/"/>
</entry>
<entry>
<title>风控系统指标版本管理,前端实现</title>
<link href="https://wnhyang.github.io/article/8777071f.html"/>
<id>https://wnhyang.github.io/article/8777071f.html</id>
<published>2025-02-06T11:29:18.000Z</published>
<updated>2025-02-06T12:48:34.558Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<h1 id="前言">前言</h1>
<p>本文算是前文《<a
href="https://www.yuque.com/wnh/share/opf5fthwlak8lg38">基于LiteFlow的风控系统指标版本控制</a>》的完善。</p>
<p>前文已经说明了在基于规则引擎系统中版本管理的重要性,并说明了主表+历史表的实现思路和实现方法。</p>
<p>依照着上篇“历史既是历史又是运行”的思路在前端项目中实现版本管理。开发版本不代表最终效果😂</p>
<h1 id="指标状态流转">指标状态流转</h1>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250206/image.7i0hzqvw7m.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>1、创建:无-待发布,新创建的指标都是待发布状态,数据落在主表中;</p>
<p>2、更新:待发布-待发布或已上线-待发布,简单来讲只要是更新都会回到待发布状态,更新并不改变指标的发布状态,只更新主表;</p>
<p>3、发布:待发布-已上线,发布后主表指标状态改为已发布,同时在版本库中生成一个最新版本,新增或修改<code>LiteFlow</code>表<code>chain</code>的<code>EL</code>表达式;</p>
<p>4、下线:已上线-待发布,下线后指标状态回到待发布状态,对应的<code>LiteFlow</code>表<code>chain</code>记录被删除;</p>
<p>5、版本切换:版本库-待发布,版本切换生效于版本库中某个版本用于切换某个版本到主表中,还需要再次发布才生效;</p>
<p>3、删除:待发布-无,删除某指标,清理指标历史数据。</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>ElasticSearch索引别名的应用</title>
<link href="https://wnhyang.github.io/article/1d8f67fc.html"/>
<id>https://wnhyang.github.io/article/1d8f67fc.html</id>
<published>2025-01-19T11:32:31.000Z</published>
<updated>2025-01-19T11:55:46.587Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<p>Elasticsearch
索引别名是一种极为灵活且强大的功能,它允许用户为一个或多个索引创建逻辑上的别名。这些别名用途广泛,涵盖查询、索引操作以及索引管理等多个方面。以下为一些常见的索引别名应用场景:</p>
<h3 id="简化查询">简化查询</h3>
<p>通过创建别名,用户能够以更简洁的名称访问一个或多个索引。例如,若你有一个索引名为products_2024,可创建别名current_products以简化查询流程:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">POST /_aliases</span><br><span class="line">&#123;</span><br><span class="line"> &quot;actions&quot;: [</span><br><span class="line"> &#123; &quot;add&quot;: &#123; &quot;index&quot;: &quot;products_2024&quot;, &quot;alias&quot;: &quot;current_products&quot; &#125; &#125;</span><br><span class="line"> ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>在执行查询时,只需使用别名:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">GET /current_products/_search</span><br><span class="line">&#123;</span><br><span class="line"> &quot;query&quot;: &#123;</span><br><span class="line"> &quot;match&quot;: &#123; &quot;category&quot;: &quot;electronics&quot; &#125;</span><br><span class="line"> &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>如此一来,不仅使查询语句更为简洁,也降低了因索引名称变更而需大规模修改查询代码的风险,提高了代码的可维护性。</p>
<h3 id="索引版本管理">索引版本管理</h3>
<p>当需要滚动更新索引(如按月或按年创建新索引)时,别名可用于指向当前活跃的索引。这种方式下,用户仅需更新别名,而无需对查询代码进行修改。</p></summary>
<category term="ElasticSearch" scheme="https://wnhyang.github.io/tags/ElasticSearch/"/>
</entry>
<entry>
<title>业务链指标,用户行为模式识别</title>
<link href="https://wnhyang.github.io/article/a9488309.html"/>
<id>https://wnhyang.github.io/article/a9488309.html</id>
<published>2025-01-11T05:44:27.000Z</published>
<updated>2025-01-11T13:06:47.567Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20250111/image.6wqtcc4me2.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>此前,我们已经成功搭建起最为基础的聚类指标体系,涵盖计数、求和、最大值、最小值、平均值、历史取值以及关联次数等维度,为数据的初步洞察提供了有力支撑。与此同时,规划在未来进一步拓展指标范畴,引入方差、标准差、趋势、连续次数等更为精细化的指标,力求全方位、深层次地挖掘数据价值。而此次探索之旅的重点,则聚焦于业务链指标。</p>
<p>究竟什么是业务链指标呢?其实,从名称便能直观知晓,业务链即由一系列紧密相连、按特定顺序排列的业务环节所构筑的链条。就拿互联网产品来说,用户从登录应用程序伊始,继而查看头像、切回首页、查看评论,这一连串流畅自然的用户行为轨迹,便是一条典型的业务链。在现实的业务场景之中,业务链的涵盖范畴极其广泛,无论是电商购物流程里的搜索商品、加入购物车、下单支付,还是在线教育平台上的课程选择、试听、报名缴费,无一不是业务链的鲜活例证。这些业务链背后潜藏的海量信息,能够借助业务链指标进行量化呈现,进而助力企业精准把脉业务流程的运行态势、洞悉用户行为的偏好与规律,为优化产品、提升用户体验以及精心制定营销策略筑牢坚实的数据根基。</p>
<h1 id="业务链埋点行为模式">业务链|埋点|行为模式</h1>
<p>从前面阐述的内容来看,这些业务链本质上不就是对用户行为采集后所做的数据分析嘛!没错,而且在互联网产品的世界里,它还有一个更为人熟知的名字
—— 埋点系统。</p></summary>
</entry>
<entry>
<title>Vben5登录过期无法再次登录问题,http状态码</title>
<link href="https://wnhyang.github.io/article/2b9d32e5.html"/>
<id>https://wnhyang.github.io/article/2b9d32e5.html</id>
<published>2024-12-29T02:18:09.000Z</published>
<updated>2024-12-29T04:31:31.990Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<h1 id="前言">前言</h1>
<p>最近在做项目前端,使用的<a href="https://doc.vben.pro/"
class="uri">https://doc.vben.pro/</a>,在登录过期时出现了无法再次登录的问题,在此记录一下。</p>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20241229/image.8adbxbcnyv.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>项目前面那些直接略过,如果感兴趣直接看官方文档就可以
,以下会根据解决过程附带部分官网说明。</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>LiteFlow决策系统的策略模式,顺序、最坏、投票、权重</title>
<link href="https://wnhyang.github.io/article/6a66e1d3.html"/>
<id>https://wnhyang.github.io/article/6a66e1d3.html</id>
<published>2024-12-19T11:28:00.000Z</published>
<updated>2024-12-19T12:24:31.004Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20241219/image.4jo5y81ftv.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<p>想必大家都有听过或做过职业和性格测试吧,尤其是现在的毕业生,在投了简历之后经常会收到一个什么测评,那些测评真的是又臭又长,做的简直让人崩溃,很多时候都是边骂边做,都什么玩意!?</p>
<p>然而,本篇就由此出发,把整个测评作为一个策略的话,其中每一项都是一条规则,通常每一条规则(问答)需要我们输入一个类似1-9的分数,1和9分别代表两个极端,最终这个策略会结合所有的问答结果计算出我们的性格/职业。这是如何做的呢?其实就是一种分类算法,就拿二维平面直角坐标系举例吧!</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>LiteFlow上下文与组件设计,数据依赖梳理</title>
<link href="https://wnhyang.github.io/article/7505f30d.html"/>
<id>https://wnhyang.github.io/article/7505f30d.html</id>
<published>2024-12-12T11:24:47.000Z</published>
<updated>2024-12-12T11:57:45.876Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<h1 id="参考">参考</h1>
<p><a href="https://liteflow.cc/pages/e1e61f/">如何理解上下文这个概念?
| LiteFlow</a></p>
<p><a href="https://liteflow.cc/pages/501abf/">🌯数据上下文的定义和使用
| LiteFlow</a></p>
<p><a
href="https://mp.weixin.qq.com/s/C7F5Kat6Fv6oLBbBKSdIlg">我的业务项目是否适合用LiteFlow?</a></p>
<p>在选择使用<code>LiteFlow</code>之前应该要对其有一些了解,不求熟悉源码,但对于其设计思想还是了解一下的。这将对于后面使用有很大帮助,官方文档和源码都是很好的学习路径哦!</p>
<p>如官网所讲的,为了实现编排,就要消除组件的差异,由此设计了上下文。而使用<code>LiteFlow</code>完成业务,上下文与组件的设计又是极其的关键。方法论还是交给会写论文的人来吧,我只能提供一些经验之谈。</p>
<p>下面还是通过项目<a href="https://github.com/wnhyang/coolGuard/"
class="uri">https://github.com/wnhyang/coolGuard/</a>来讲述吧。</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>规则引擎可以应用于哪些系统,用户画像、触达、风控、推荐、监控...</title>
<link href="https://wnhyang.github.io/article/df64c6f6.html"/>
<id>https://wnhyang.github.io/article/df64c6f6.html</id>
<published>2024-12-07T13:11:35.000Z</published>
<updated>2024-12-07T13:30:19.596Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<h1 id="参考">参考</h1>
<p><a
href="https://cloud.tencent.com/developer/article/1610976">手把手教你做用户画像:3种标签类型、8大系统模块-腾讯云开发者社区-腾讯云</a></p>
<p><a
href="https://zhuanlan.zhihu.com/p/382137186">用户画像最全解析,超详细!</a></p>
<p><a
href="https://www.woshipm.com/pd/2928566.html">复盘:如何从0到1设计触达系统
– 人人都是产品经理</a></p>
<p><a
href="https://www.woshipm.com/user-research/4239618.html">用户运营:触达系统应该如何搭建
– 人人都是产品经理</a></p>
<p><a
href="https://www.woshipm.com/pd/4633109.html">触达系统进阶篇(一):自动化消息
– 人人都是产品经理</a></p>
<p><a
href="https://blog.csdn.net/aaaa_hsjsueu/article/details/139253607">【推荐系统】深入理解:从基础到前沿_推荐系统停留时间-CSDN博客</a></p>
<p><a
href="https://cloud.tencent.com/developer/article/2220394">推荐系统[一]:超详细知识介绍,一份完整的入门指南,解答推荐系统相关算法流程、衡量指标和应用,以及如何使用jieba分词库进行相似推荐-腾讯云开发者社区-腾讯云</a></p>
<p><a
href="https://blog.csdn.net/jcfszxc/article/details/136360002">【机器学习:Recommendation
System】推荐系统-CSDN博客</a></p>
<p><a
href="https://zhuanlan.zhihu.com/p/122996523">智能风控筑基手册:全面了解风控决策引擎</a></p>
<p><a
href="https://zhuanlan.zhihu.com/p/626565122">风控笔记06:一个完整的风控引擎,需要有哪些功能?</a></p>
<p><a
href="https://zhuanlan.zhihu.com/p/627593352">风控笔记07:最常用的风控工具-特征库</a></p>
<p>之前一直在讨论使用规则引擎搭建风控系统,但其实规则引擎应用可太广了。鲁迅曾经说过(假的😂):“人类已经从<code>IT</code>时代走向<code>DT</code>时代,<code>IT</code>时代是以自我控制、自我管理为主,而<code>DT</code>(<code>Data technology</code>)时代,它是以服务大众、激发生产力为主的技术。这两者之间看起来似乎是一种技术的差异,但实际上是思想观念层面的差异。”</p>
<p>说是规则引擎的应用其实是大数据时代下,数据收集整合&amp;分析与挖掘、实时处理、反馈、自动化、智能化过程中需要规则引擎。本文就探讨用户画像、触达、风控、推荐这些系统有哪些核心功能,又在哪里用到了规则引擎,以及它们在日常生活中的应用场景及如何协同工作,共同创造价值。</p>
<p>以下AI生成整理而成。</p>
<h1 id="一用户画像构建个性化的桥梁">一、用户画像:构建个性化的桥梁</h1>
<h2 id="数据聚合与标签化管理">1.1 数据聚合与标签化管理</h2>
<p>用户画像是个性化服务的基础,它通过收集和分析用户的行为数据、偏好信息以及社会属性等多维度数据,形成一个全面且动态的用户形象。这一过程不仅依赖于传统的CRM(客户关系管理)系统中存储的基本信息,还包括来自各种在线平台的行为轨迹,如浏览记录、购买历史、社交媒体互动等。</p>
<p><strong>标签化管理</strong>是用户画像的核心之一。通过对用户进行细致入微的分类和标注,企业可以更加精准地识别出不同类型的用户群体,从而为他们提供定制化的产品和服务。例如,电商平台可以根据用户的购物习惯为其打上“时尚爱好者”、“科技发烧友”或“家庭主妇”等标签;内容平台则可能根据用户的阅读偏好设置“新闻迷”、“美食达人”、“健身爱好者”等标签。</p>
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20241207/image.92q6k5l9bk.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
</entry>
<entry>
<title>MybatisPlus字段类型处理器TypeHandler</title>
<link href="https://wnhyang.github.io/article/697029c0.html"/>
<id>https://wnhyang.github.io/article/697029c0.html</id>
<published>2024-12-01T12:05:59.000Z</published>
<updated>2024-12-01T13:42:14.624Z</updated>
<summary type="html"><p>个人博客:<a
href="https://wnhyang.github.io/">无奈何杨(wnhyang)</a></p>
<p>个人语雀:<a href="https://www.yuque.com/wnhyang"
title="wnhyang">wnhyang</a></p>
<p>共享语雀:<a href="https://www.yuque.com/wnh"
title="在线知识共享">在线知识共享</a></p>
<p>Github:<a href="https://github.com/wnhyang">wnhyang -
Overview</a></p>
<hr />
<figure>
<img data-src="https://jsd.cdn.zzko.cn/gh/wnhyang/picx-images-hosting@master/20241201/image.8dwwrhquoi.webp"
alt="image" />
<figcaption aria-hidden="true">image</figcaption>
</figure>
<h1 id="简介">简介</h1>
<p>官网:<a
href="https://baomidou.com/guides/type-handler/">字段类型处理器</a></p>
<p>在 MyBatis 中,类型处理器(TypeHandler)扮演着 JavaType 与 JdbcType
之间转换的桥梁角色。它们用于在执行 SQL 语句时,将 Java 对象的值设置到
PreparedStatement 中,或者从 ResultSet 或 CallableStatement
中取出值。</p>
<p>具体使用参考官网即可,不再过多<code>copy</code>了。官方示例工程:👉
<a
href="https://github.com/baomidou/mybatis-plus-samples/tree/master/mybatis-plus-sample-jsonb">mybatis-plus-sample-jsonb</a></p>
<h1 id="coolguard">coolGuard</h1>
<p>这篇文章的来由还是要提到此项目:<a
href="https://github.com/wnhyang/coolGuard/"
class="uri">https://github.com/wnhyang/coolGuard/</a></p>
<p>最近在做规则版本控制过程中使用了到了“<code>MybatisPlus</code>字段类型处理器”,感觉挺好用的。</p></summary>
<category term="项目" scheme="https://wnhyang.github.io/tags/%E9%A1%B9%E7%9B%AE/"/>
<category term="Mybatis/Mybatis-plus" scheme="https://wnhyang.github.io/tags/Mybatis-Mybatis-plus/"/>
</entry>
</feed>