James' Growth Diary
Author

James' Growth Diary

I am James, focusing on AI Agent learning and growth. I continuously update two series: “AI Agent Mastery Path,” which systematically outlines core theories and practices of agents, and “Claude Code Design Philosophy,” which deeply analyzes the design thinking behind top AI tools. Helping you build a solid foundation in the AI era.

56
Articles
0
Likes
5
Views
0
Comments
Recent Articles

Latest from James' Growth Diary

56 recent articles
James' Growth Diary
James' Growth Diary
Apr 24, 2026 · Artificial Intelligence

How LangGraph Turns LLMs into a State Machine

This article dissects LangGraph's core execution engine, showing how it transforms LLM calls into a state‑machine workflow with mutable State, Nodes, Edges, Reducers, a scheduler loop, conditional branching, and parallel fan‑out/fan‑in execution.

JavaScriptLLMLangGraph
0 likes · 12 min read
How LangGraph Turns LLMs into a State Machine
James' Growth Diary
James' Growth Diary
Apr 21, 2026 · Artificial Intelligence

Boosting RAG Performance with Milvus: Chunking, Hybrid Search, and Rerank Best Practices

This article analyzes why Retrieval‑Augmented Generation often underperforms, then walks through concrete engineering steps—optimal chunking, overlap settings, hybrid vector + BM25 retrieval, RRF fusion, and reranking—while providing code snippets, parameter tables, and a full pipeline diagram to turn a usable RAG system into a high‑quality one.

ChunkingHybrid SearchLangChain
0 likes · 18 min read
Boosting RAG Performance with Milvus: Chunking, Hybrid Search, and Rerank Best Practices
James' Growth Diary
James' Growth Diary
Apr 19, 2026 · Artificial Intelligence

Vector Database Basics: Embeddings, Similarity Search, and Index Structures

This article explains how embeddings turn text into high‑dimensional vectors, compares commercial and open‑source embedding models, details cosine, Euclidean and inner‑product similarity metrics, reviews common index structures such as Flat, IVF, HNSW and PQ, and shows how to choose and use a vector database with LangChain.js while avoiding typical pitfalls.

LangChainRAGembeddings
0 likes · 25 min read
Vector Database Basics: Embeddings, Similarity Search, and Index Structures
James' Growth Diary
James' Growth Diary
Apr 18, 2026 · Artificial Intelligence

Inside Claude Code: What 510,000 Lines of TypeScript Reveal About AI Agent Architecture

The article dissects Anthropic's open‑source Claude Code—an AI coding agent built on half a million lines of TypeScript—by walking through its agent loop, tool registry, permission system, context‑window management, hierarchical CLAUDE.md configuration, and comparing its agent‑first design to IDE‑first tools like Cursor.

AI AgentAgent LoopCLAUDE.md
0 likes · 20 min read
Inside Claude Code: What 510,000 Lines of TypeScript Reveal About AI Agent Architecture
James' Growth Diary
James' Growth Diary
Apr 17, 2026 · Artificial Intelligence

Advanced System Prompt Design Patterns & Few-Shot Techniques for Reliable LLM Outputs

This article breaks down System Prompt engineering into a five‑layer contract, presents four design patterns—role anchoring, output schema, chain‑of‑thought steering, and guardrails—explains how to select effective few‑shot examples, provides production‑grade prompt templates with code snippets, and warns about common pitfalls such as token length, sample bias, and contradictory constraints.

AIFew-ShotLLM
0 likes · 16 min read
Advanced System Prompt Design Patterns & Few-Shot Techniques for Reliable LLM Outputs
James' Growth Diary
James' Growth Diary
Apr 17, 2026 · Artificial Intelligence

How to Encode Project Conventions into AI Memory with CLAUDE.md

This article explains why the .cursorrules file is limited, introduces the cross‑tool CLAUDE.md specification, shows its hierarchical structure, provides a complete Vue 3 + TypeScript example, and lists common pitfalls and best‑practice tips for keeping AI assistants aligned with project standards.

AI code assistanceCLAUDE.mdPrompt Engineering
0 likes · 10 min read
How to Encode Project Conventions into AI Memory with CLAUDE.md
James' Growth Diary
James' Growth Diary
Apr 17, 2026 · Artificial Intelligence

How to Load and Split Documents for RAG: First Step to Building a Knowledge Base

This tutorial explains why document loading and splitting are critical for RAG pipelines, introduces LangChain's Document format, demonstrates loaders for various file types, details the RecursiveCharacterTextSplitter and alternative splitters, and provides practical tips on parameter tuning, metadata preservation, Chinese text handling, and common pitfalls.

AIChunkingDocument Loader
0 likes · 27 min read
How to Load and Split Documents for RAG: First Step to Building a Knowledge Base