DevInsight

A developer's field notes

Topic Archive

AI

LLMs, AI tools, automation flows, and product updates.

2 published posts belong to this topic.

AI

Why Finer Chunking Takes the Answer Further Away

Chunk size and the splitting criterion alone determine the quality of the embedding vectors. Cut wrong and similarity search returns only half-finished fragments with broken context, shattering the correct answer — but splitting larger doesn't fix it either. This article examines the mechanics behind common splitting mistakes and lays out practical evaluation metrics that look at search recall and response completeness together. It's structured so candidate chunk validation, context retrieval strategies, and per-criterion experiment methods can be applied directly to your pipeline.

#RAG#청크 분할#임베딩#벡터 검색
AI

Why the Screen Shatters While Tokens Flow

When an LLM response streams token by token over SSE and is painted to the screen, markdown syntax breaks midway, abort requests don't propagate properly, and rendering stutters on every token. This article walks through the real failures you hit in streaming UI—markdown parsing collapse, abort handling and error recovery, and rendering performance problems—in the order they break, then lays out proven fixes like partial rendering and a backpressure approach that minimizes buffer accumulation.

#SSE#스트리밍#LLM#마크다운 파싱