Programmer XiaoFu
Author

Programmer XiaoFu

xiaofucode.com – a programmer learning guide driven by the pursuit of profit

108
Articles
0
Likes
140
Views
0
Comments
Recent Articles

Latest from Programmer XiaoFu

100 recent articles max
Programmer XiaoFu
Programmer XiaoFu
Apr 20, 2026 · Artificial Intelligence

How Java + LangChain4j Can Eliminate Messy Chunking for High‑Quality RAG Document Splitting

The article explains why fixed‑size chunking harms RAG recall, demonstrates three semantic‑chunking strategies—including recursive punctuation splitting, overlapping windows, and parent‑child document mapping—and provides complete Java/LangChain4j code that integrates tokenizers, Redis, and Qdrant to boost retrieval performance.

JavaLangChain4jQdrant
0 likes · 10 min read
How Java + LangChain4j Can Eliminate Messy Chunking for High‑Quality RAG Document Splitting
Programmer XiaoFu
Programmer XiaoFu
Apr 13, 2026 · Artificial Intelligence

Why Prompt‑Based JSON Extraction Breaks LLM‑Driven Intent and NER

The article explains how using plain prompts to force large language models to output JSON for intent recognition and named‑entity extraction leads to unpredictable extra text, key mismatches, and hallucinated fields, and it presents three robust alternatives—placeholders, function calling, and constrained decoding—to achieve reliable structured outputs.

Function CallingLLMNamed Entity Recognition
0 likes · 8 min read
Why Prompt‑Based JSON Extraction Breaks LLM‑Driven Intent and NER
Programmer XiaoFu
Programmer XiaoFu
Mar 27, 2026 · Artificial Intelligence

Top 5 Java AI Frameworks for Enterprise Applications

This article analyzes the emerging Java AI ecosystem, comparing Spring AI, LangChain4j, Spring AI Alibaba, AgentScope‑Java, and Microsoft Semantic Kernel, and provides guidance on selecting the right framework based on features such as RAG, agent support, observability, security sandbox, and cloud integration.

AI frameworksAgentScopeJava
0 likes · 19 min read
Top 5 Java AI Frameworks for Enterprise Applications
Programmer XiaoFu
Programmer XiaoFu
Mar 18, 2026 · Cloud Native

Why Does Traffic Still Hit a Shut‑Down Instance After Clicking “Offline” in Nacos?

The article explains that Nacos‑based service deregistration is not instantly reflected in client load‑balancer caches due to periodic polling and unreliable UDP pushes, leading to a delay where gateways still route requests to a terminated instance, and then presents step‑by‑step lossless shutdown solutions for small teams and large‑scale deployments.

Graceful shutdownKubernetesLoad Balancer
0 likes · 8 min read
Why Does Traffic Still Hit a Shut‑Down Instance After Clicking “Offline” in Nacos?
Programmer XiaoFu
Programmer XiaoFu
Jan 21, 2026 · Databases

How to Add a Column to a Tens‑Million‑Row Order Table Without Locking It

When a tens‑million‑row order table needs a new business column, directly running ALTER TABLE can lock the table and disrupt services, so the article explores master‑slave promotion, online DDL tools, schema‑less JSON extensions, and a clever use of an existing redundant column to achieve the change safely.

DDLJSONLarge Tables
0 likes · 7 min read
How to Add a Column to a Tens‑Million‑Row Order Table Without Locking It
Programmer XiaoFu
Programmer XiaoFu
Dec 22, 2025 · Operations

Speed Up Log Searching: A Practical awk, tail, grep, and sed Toolkit

When a colleague struggles with a 2 GB log file, the author demonstrates how to combine tail, less, grep, sed, and awk commands to quickly locate errors, extract time windows, count occurrences, and analyze traffic, turning cumbersome log inspection into an efficient, repeatable workflow.

Linuxawkgrep
0 likes · 8 min read
Speed Up Log Searching: A Practical awk, tail, grep, and sed Toolkit