RAG · Extraction · Evals · .NET / C# / Java / Node — since 2005

RAG · 抽取 · 评测 · .NET / C# / Java / Node — 2005 年至今

I don't rebuild your product.
I put AI inside it.

我不重做你的产品,
只把 AI 装进去。

Twenty years writing production backends — C#, then Java, then Node and Strapi. The recent years go into one thing: putting models inside systems that already run, without asking anyone to rewrite them in Python. Retrieval, extraction, evaluation, local inference — the unglamorous stretch between "the demo looked great" and "it still works on Tuesday".

二十年写生产后端——先 C#,再 Java,然后是 Node 和 Strapi。近几年只做一件事:把模型接进已经在跑的系统,不要求任何人把它重写成 Python。检索、抽取、评测、本地推理——「demo 很好看」和「周二还能跑」之间那段没人愿意干的活。

20years writing production backends年,一直在写生产后端
3stacks still in production: .NET, Java, Node套仍在生产上的技术栈:.NET、Java、Node
8self-hosted VMs, own compute台自建虚拟机,算力和数据都在自己手里
0clients told to rewrite in Python个客户,被我要求过重写成 Python

Who I am

我是谁

I started writing code in 2005 — portals, e-commerce, SaaS. Then years of client backends in C#, then Java, then Node and Strapi for content-heavy products, and a private cloud underneath all of it. Somewhere along the way the interesting problem changed: it stopped being "can we build it" and became "will it still behave when real data hits it".

2005 年入行写代码。门户、电商、SaaS。然后是几年客户后端的 C#,再是 Java,再是给内容型产品做 Node 和 Strapi,底下还压着一套私有云。做到某一年,有意思的问题变了:不再是「能不能做出来」,而是「真数据砸上去,它还听话吗」。

That order matters. Most people doing AI work today started in a Python notebook and have never been paged at 4 a.m. about a failed migration. I came the other way round: I spent the years before models learning how to keep a system alive with real traffic on it. So when I say I'll put retrieval into your .NET service, I mean in that service — same repository, same deploy, same logs — not a Python sidecar you now have to operate forever.

这个顺序很重要。今天做 AI 的人,多数从 Python notebook 起步,没在凌晨四点因为一次迁移失败被叫起来过。我是反过来的:在有模型之前的那十几年,学的是怎么让系统在真实流量下活着。所以我说「把检索放进你的 .NET 服务」,就是放进那个服务——同一个仓库、同一套部署、同一套日志,不是再塞一个 Python 边车、还得你养它一辈子。

Today I run 8 VMs, a build pipeline, and a few inference services — alone. No team means everything has to be reproducible: what changed, why, and where to look when it breaks. It also means I turn down work I can't verify.

现在一个人跑 8 台虚拟机、一条自动构建流水线、几套在跑的推理服务。没有团队,所以每一步都要能复现:改了什么、为什么改、出问题从哪查。也因为没有团队,验证不了的活我会直接推掉。

I don't do model research. I do the landing: pick the smallest model that works, measure the baseline before touching anything, and write down in advance what would make me roll it back.

我不做模型研究,我做模型的落地点:挑够用的最小模型,动手前先量基线,并且提前写清「什么情况下我该把它撤回去」。

"Models aren't scarce. People who can put one inside your workflow without breaking the workflow are." 「模型不缺。缺的是能把它放进你的流程里、又不把流程搞坏的人。」 — McKay Dai —— 阿戴(McKay Dai)

Daily tools: C#/.NET · Java · Node · Strapi · Python · Postgres · vLLM · ONNX · Docker · Cloudflare  ·  Language-agnostic, problem-specific.

日常在用:C#/.NET · Java · Node · Strapi · Python · Postgres · vLLM · ONNX · Docker · Cloudflare · 不挑语言,挑问题。

Selected work

做过什么

Three systems that keep running when I'm not in the room — each one ends with what it can't do.

三个交出去之后不用我盯着的系统,每个都写了「它做不到什么」。

Turning a phone video into an inventory sheet

把一段手机视频,变成一张清点单

YOLO-World · ONNX · self-hosted YOLO-World · ONNX · 自建推理

The ask

需求

Count the furniture and appliances in a room. Manual photo logging is slow and misses things — and the only input available was ordinary phone video, no special hardware.

清点房间里的家具电器。人工拍照记录慢、还容易漏,而客户手上只有普通手机视频,没有专业设备。

What I built

我做了什么

  • Open-vocabulary model: new categories by changing words, not retraining
  • A 37-category vocabulary, tuned per room type
  • Outputs category, frame coverage, co-occurrence, plus boxed evidence frames
  • High/low confidence split — humans correct errors instead of labelling from scratch
  • 开放词表模型:加类别靠改词,不靠重新训练
  • 按房间类型调过的一套 37 类词表
  • 输出类别、出现帧比例、同帧同现数,外加带框证据图
  • 高低置信分开,人工只改错的,不从零标

Result

结果

One walkthrough video in, an A4 inventory out. The finding that mattered was counter-intuitive: swapping category words beat swapping in a larger model — confidence on "desk" went from 0.65–0.79 to 0.84 once the vocabulary matched how people actually talk.

一段视频进去,一张 A4 清点单出来。最关键的发现是反直觉的:换词比换更大的模型有效——「desk」原来 0.65–0.79,换成人真正会说的词之后到 0.84。

run log运行记录real output, not an illustration真实输出,非示意
runsingle-room walkthrough · phone video—
modelYOLO-World v2s · ONNX runtime · CPU hostok
vocab37 open-vocabulary labels, per room typeok
label"desk" 0.65–0.79  →  "work table"0.84
coverage55% of frames reach the high-confidence bandok
tracking4 chairs → 9–19 tracks (geometric MOT)rejected
outputclass · frame ratio · co-occurrence · boxesok

Tracking failed on real footage, so I dropped it rather than ship a number that looks better than it is.

跨帧追踪在真实素材上跑不通,我把它砍了,而不是交一个「看起来更好」的数字。

Boundary边界2D only. No 3D pose, no metric dimensions — monocular video can't deliver that, and anyone who says otherwise is betting you won't check.只给 2D。没有三维位姿,没有米制尺寸——单目视频做不到,谁说能做到,是在赌你不懂。

Getting quoted correctly by AI search

让 AI 搜索正确引用你

51 pages · 6 clusters · monthly re-test 51 页 · 六簇 · 月度复核

The problem

问题

Buyers now ask ChatGPT which supplier to trust. Most companies pay for content and get either ignored or quoted wrong — and nobody is checking.

买家现在直接问 ChatGPT「哪家供应商靠谱」。多数公司花了钱做内容,结果要么不被提,要么被说错——而且没人去查。

What I built

我做了什么

  • A neutral reference site: no vendor names, no self-promotion
  • Six topic clusters closed end to end, no gap left in the chain
  • Every claim carries a source; nothing asserted without one
  • A 40-question set re-run monthly to see what models actually answer
  • 中立参考站:不写厂商名,不做自我推销
  • 六个主题簇完整闭合,链条不留缺口
  • 每条事实带出处,没出处的话不写
  • 40 个问题月度重跑,看模型到底怎么答

Result

结果

51 pages, zero dead links, every title and description within limits. The metric changed too: not traffic, but how often the answer is cited — and whether it's cited accurately.

51 个页面、零死链、标题与描述全部达标。衡量指标也换了:不看流量,看「被引用几次」以及「引用的内容对不对」。

run log运行记录real output, not an illustration真实输出,非示意
crawl51 pages · 6 clusters · 0 dead linksok
titles51 / 51 within length limitsok
freshness46 pages carry a reviewed dateok
baseline4 days · 85 impressions · 0 clicks—
rankavg position 32.9 · 4 queries in the top 10ok
re-test40 buyer prompts, re-run monthlyscheduled

The first month had zero clicks. I published the number anyway — a crawler ramp-up looks exactly like this.

第一个月零点击,我照原样写出来了——纯收录爬坡期看起来就是这样。

Boundary边界I can't guarantee a citation. Model versions change and answers drift — the honest deliverable is a repeatable check, not a promise.我不保证被引用。模型版本在变,答案会漂——能交付的是「可重复的检查方法」,不是一句承诺。

Private AI infrastructure, run by one person

一个人的私有 AI 基础设施

8 VMs · GitLab · Harbor · CI · inference 8 台 VM · GitLab · Harbor · CI · 推理

Why

为什么

Client data can't leave the building, and the inference bill can't be unbounded. Public cloud answered neither question. So: own metal, own network, own pipeline.

客户数据不能出门,推理账单也不能没上限。公有云这两条都答不了。所以:自己的机器、自己的网络、自己的流水线。

What I run

在跑什么

  • Bare-metal hypervisor, 8 VMs split by role
  • Self-hosted GitLab, container registry, continuous integration
  • Inference services isolated from public-facing sites
  • Build gates that refuse to deploy a broken artifact
  • 裸金属虚拟化,8 台虚拟机按职责分工
  • 自建 GitLab、镜像仓库、持续集成
  • 推理服务与外网站点隔离
  • 构建闸门:产物不合格就拒绝上线

Result

结果

Commit to live with no manual steps. The marginal cost of one more service is close to zero, so experiments stay cheap — and data never crosses the network edge.

从提交到上线全自动。多跑一个服务的边际成本接近零,所以实验可以做得很便宜——而且数据不出内网。

run log运行记录real output, not an illustration真实输出,非示意
hardware2 × Dell rack servers · 13.5 TB raw—
vms8 on the primary host · spare stays idleok
servicesGitLab 17.10.4 · Harbor · Jenkins · LDAPok
migrated247 commits · 531.7 MB · full historyok
deploycommit → live, no manual stepok
failureno rack-level failover · single siteknown

The failure line is why I refuse to call this enterprise grade.

«failure» 那一行,就是我拒绝把它说成「企业级」的原因。

Boundary边界This is not enterprise HA: one site, one administrator, no failover for a rack-level failure. It carries a business, not a datacenter.这不是企业级高可用:单机房、单管理员,扛不住整机柜级故障。它扛得起一门生意,扛不起一个机房。

What I build

我能交付什么

Four things I ship. Each has a fixed starting price.

四类交付物。每一类都有明确的起价。

Retrieval & Q&A

检索与问答

For teams whose help docs contradict each other and whose support answers drift. Ships inside your .NET, Java or Node service — no new runtime to run.

适合「帮助文档互相打架、客服口径各说各话」的团队。装进你的 .NET、Java 或 Node 服务里——不用再多养一套运行时。

  • Cited answers with a link back to the source paragraph
  • A refusal path: "not in the docs, escalate"
  • An eval set you can re-run after any change
  • 答案带引用,能点回原文段落
  • 拒答通道:答不出就说「文档里没有,转人工」
  • 一套评测集,改完随时重跑
from $6,000
起价 $6,000

Document extraction

文档抽取

For teams still typing invoices, bills of lading and contracts by hand.

适合还在手工录发票、提单、合同的团队。

  • Field extraction with per-field confidence
  • A review queue for low-confidence fields only
  • Export to the format your accountant already uses
  • 字段抽取,每个字段带置信度
  • 只把低置信字段送进人工复核队列
  • 导出成你财务现在就在用的格式
from $5,000
起价 $5,000

On-prem model serving

本地模型部署

For teams whose legal team vetoed the public API, and whose bill had no ceiling.

适合法务否掉了公有云 API、账单又没有上限的团队。

  • vLLM + a quantized model on your own hardware
  • Local retrieval, nothing leaves the network
  • A side-by-side quality table on your own examples
  • 用自己的机器跑 vLLM + 量化模型
  • 本地检索,数据不出内网
  • 拿你自己的样本做并排质量对比表
from $18,000
起价 $18,000

Vision on footage you already have

基于现有视频的视觉识别

For teams with a counting or inspection problem and a phone, not a camera rig.

适合有清点或检查需求、手上只有手机没有专业设备的团队。

  • Open-vocabulary detection: new categories by changing words
  • Boxed evidence frames a human can check
  • A one-page output someone can actually use
  • 开放词表识别:加类别靠改词
  • 带框证据图,人能一眼核对
  • 输出一页纸,拿起来就能用
from $6,000
起价 $6,000

How we work

怎么合作

Four steps. You can stop me at any of them.

四步。中间每一步你都能叫停。

01 Day 0当天

Measure first

先量基线

How you do it today, where it's wrong, what "good" would even look like. No baseline, no project.

你现在怎么做的、错在哪、多少算好。没有基线就不开工。

02 Within 3 days3 天内

One page, not a deck

一页纸,不做 PPT

The cheapest approach that works, what I'd skip, and what I'd refuse to build.

最省的那个做法、我建议不做哪些、以及哪些我不接。

03 Every week每周

A demo you can click

一个能点开的东西

Monday plan, Friday demo. You watch it work every week, not at the end. Direction can change in between.

周一给计划,周五给演示。你每周都看见它在跑,不是等到最后。方向可以在两步之间改。

04 After launch上线后

Leave the keys

钥匙交给你

Production deploy, docs, an evaluation set, a rollback path, and 30 days of fixes included. Nothing locked to me being available.

上线、文档、评测集、回滚方式,外加 30 天内的修复包含在内。不把任何东西锁在「必须找我」上。

Engagements

合作形式

Three ways to start. No hidden line items.

三种开始方式,没有隐藏项。

Diagnostic
诊断
from $1,500one week, one report
$1,500 起一周内交付,一份报告

Before you commit to anything: quality baseline on your own data, cost per task, failure modes ranked by what they cost you.

决定要不要做之前先做这个:用你自己的数据量质量基线、单任务成本、失败模式按损失排序。

Build
交付
from $5,0004–8 weeks, staged sign-off
$5,000 起4–8 周,按阶段验收

One of the four things above, shipped and handed over with docs and an eval set.

上面四类里的任意一类,做完交付,附文档和评测集。

Retainer
长期
$1,800 / mothree-month minimum
$1,800 / 月最少三个月

For systems already live: monthly quality and cost review, drift checks, small changes on a rolling queue.

适合已经在跑的系统:月度质量与成本复核、漂移检查、小改造按队列排期。

How pricing works: every quote follows a 20-minute call. Scope and price get written down before any code exists. Out-of-scope work is priced before it starts — not after. If the estimate turns out wrong, that is my problem, not an invoice for you.

报价规则:每次报价前先通一次 20 分钟电话。范围和价格在动第一行代码之前就写下来。范围外的事,动手前先报价,不是做完再说。如果估错了,那是我的问题,不是给你加一张账单。

Straight answers

常见问题

Six questions, answered without hedging.

六个问题,我都直接答。

Our system is .NET or Java. Do we have to rebuild it in Python?我们的系统是 .NET 或 Java,必须重写成 Python 吗?

No — and I'd argue against it. Retrieval, extraction and evaluation are ordinary library calls; none of them needs a separate Python process. Doing it inside your existing service means one deploy, one log stream, one on-call rota instead of two. If a Python service is genuinely the better call — training, GPU scheduling, a library that only exists there — I'll say so. But the default is your codebase, not a new one.

不用,而且我会反对。「检索、抽取、评测」本质都是普通的库调用,没有一个需要一个独立的 Python 进程。放进你现有服务里,意味着一次部署、一条日志、一个值班表,而不是两套。如果某种情况下 Python 服务确实更对——训练、GPU 调度、只有那边才有的库——我会直说。但默认是你的代码库,不是一个新的。

What do you need from us before starting?开工前需要我们提供什么?

Three things: a sample of real documents or real questions, one person who can say what "correct" means, and a path to deploy to staging. If the second one doesn't exist yet, that is the first project — deciding what good looks like, before anyone writes code.

三样:一批真实文档或真实提问、一个能拍板说「什么算对」的人、一条能部署到测试环境的路。如果第二样现在还没有,那它就是第一个项目——在任何代码写下去之前,先把「什么算好」定下来。

Can you guarantee accuracy?你能保证准确率吗?

No — and be suspicious of anyone who does before seeing your data. What I can do is measure the current baseline on a set you approve, improve it, and report the number honestly, including the parts where it got worse.

不能。谁在没看过你数据之前就保证,都该警惕。我能做的是:在你认可的样本上量出当前基线,把它提上去,然后诚实报数字——包括变差的那部分。

Will an on-prem model be worse than GPT?本地模型是不是比 GPT 差很多?

On general tasks, yes — usually noticeably. On one narrow task with good retrieval and a tight prompt, the gap is often small enough that cost and data residency win. I'd rather show you a side-by-side table on your own examples than argue about benchmarks.

通用任务上,是,通常差得明显。但在一个窄任务上,配上好的检索和收敛的提示词,差距经常小到让「成本」和「数据不出门」占上风。我宁愿拿你自己的样本做一张并排对比表,也不想跟你争 benchmark。

Why not just use an off-the-shelf platform?为什么不用现成的 AI 平台?

Often you should. If a platform covers 80% of the need at a price you accept, building is waste. My value isn't "always custom" — it's telling you which 80% is free and which 20% is where your problem actually lives.

经常是该用的。如果平台能覆盖 80% 的需求、价格你也接受,自建就是浪费。我的价值不是「什么都要定制」,而是告诉你哪 80% 可以白拿、剩下 20% 才是你问题真正待的地方。

Can one person really handle this?一个人做得过来吗?

Two build projects at a time; a third waits. Deliberately. One more and quality drops a tier — and in this work, a system that fails quietly costs you more than a delayed start.

同时两个交付项目,第三个排队。这是故意的——多接一个,质量就掉一档。而在这类活里,一个「安静地出错」的系统,比晚开工更贵。

Get in touch

联系

Tell me where it breaks — that's more useful than asking the price.

先说清它坏在哪,比先问价格有用。

Two paragraphs is enough: what the system does, and where it stops behaving. I'll tell you straight whether I can help — and if not, who to ask.

两段话就够:这套系统是干什么的、它从哪一步开始不对。我会直接说能不能帮,不能帮也会说该找谁。

mckay@mkd-ai.com

December 2026: one build slot open. Diagnostics can start immediately. 2026 年 12 月:可接 1 个新项目,诊断随时能插队。