Applied AI engineering
Engineering trade-offs rather than memorized answers, each paired with a tool that runs in your browser. Guides are written in Chinese.
Updated 2026-11-27
Guides
Choosing RAG chunk size and overlap
Smaller chunks sharpen similarity but fragment context; overlap prevents broken sentences but inflates the index. Compare on a golden set instead of memorizing one value.
8 min readHybrid search vs vector-only retrieval
Vectors handle paraphrase, BM25 handles exact identifiers, and a reranker handles final precision. They divide the work rather than replace each other.
8 min readWhere LoRA and QLoRA actually save GPU memory
Training memory is roughly weights + gradients + optimizer state + activations. LoRA shrinks gradients and optimizer state; QLoRA also stores frozen weights in about 4 bits.
7 min readMCP vs Function Calling vs Skills
Function Calling is a model capability, MCP is an open protocol for connecting tools to many hosts, and Skills are instructions loaded on demand. The host, not the model, executes the function.
6 min readCan long context replace RAG?
For small corpora or close reading of one document, long context is often simpler. For large, permissioned, frequently updated knowledge with citations, RAG remains the foundation.
7 min readThe agent tool loop: the model names, the host runs
The model does not run functions. It returns a tool name and JSON arguments. The host validates, executes, returns the result, and stops at a round cap.
7 min readRetrieval evaluation: hits before fluent answers
Hit@k only says whether a labeled document is in the top k. MRR says how early the first relevant document appears. Do not add incomparable scores when the top hit differs.
6 min readAgent evaluation: traces, graders, and observability
LangSmith records a run and prompt version, OpenEvals splits correctness from groundedness, and LangFuse is a separate observability path. One overall score hides routing errors.
In-browser tools
LoRA / QLoRA memory calculator
Estimate training memory from weights, gradients, optimizer state and activations.
Chunk splitter visualizer
Paste text and see chunks and overlap redundancy as you tune parameters.
Agent tool loop
Step through validation, execution and the round cap.
Retrieval evaluation
Compare BM25 and character-bigram vectors on Hit@k, MRR and rank gaps.
AI API token cost calculator
Estimate model cost from monthly usage and checked rates.
36-question self-check
Write your own answer, then compare it with the key points. Answers stay in your browser.
Start the self-check →