왼쪽은 PDF에서 뽑은 그대로의 텍스트, 오른쪽은 같은 대목을 XML로 옮긴 것이다. 글자는 같다. 다른 것은 경계가 보이느냐다.On the left, text as extracted from the PDF. On the right, the same passage as XML. The words are identical. What differs is whether the boundaries are visible.
vintage with the 2021 PPPs. Hence, the difference between the two series is not only due to new PPPs and the new international poverty line, but also due to the inclusion of new survey data. Dotted lines are projected data or nowcasts.□ Working poverty rate has decreased worldwide but persists in vulnerable regions Worldwide, working poverty has significantly declined over the past 25 years, but recent trends in most regions suggest a slowdown in progress. In 2024, 6.9 per cent of the employed population – more than 240 million workers worldwide – lived on less than $2.15 in 2017 PPP per day, down from 8.4 per cent in 2015. Eastern and South-Ea
<goal number="1" name="No poverty" pages="10-11">
<subsection heading="Working poverty rate has decreased worldwide but persists …">
<paragraph>Worldwide, working poverty has significantly declined over the past 25 years, but recent trends …</paragraph>
<paragraph>Eastern and South-Eastern Asia and Central and Southern Asia have made significant progress, red…</paragraph>
</subsection>
</goal>
어디까지가 한 소제목의 몫인지, 이 줄이 제목인지 본문인지 — 전부 추론해야 한다. 추론은 틀릴 수 있고, 틀리면 조용히 틀린다.Where one heading’s territory ends, whether a line is a heading or body — all of it must be inferred. Inference can be wrong, and when it is, it fails silently.
</subsection>이 경계를 말한다. 프로그램은 묻지 않고 읽기만 한다. 추측이 사라지면 오류도 사라진다.</subsection> states the boundary. The program does not ask; it reads. Remove the guessing and you remove that class of error.
XML에서 모든 문단은 자기가 어디에 속하는지 안다. 트리에서의 위치가 그대로 인용 주소가 된다. 아무 마디나 눌러 보라.In XML every paragraph knows where it belongs. Its position in the tree is already a citation. Click any node.
이것이 XML의 가장 실질적인 이점이다. 자료를 다시 파싱하지 않고, 코드 한 줄만 바꿔 청크 단위를 바꿀 수 있다.This is XML’s most practical advantage. Without re-parsing anything, one line of code changes what a chunk is.
셋 다 장단이 있다. 우리는 소제목을 기본 단위로 삼되, 인코더 한도를 넘는 것만 문단 경계에서 나눴다. 메뉴에서 고른 것이 아니라 조합한 것이다.Each has its trade-off. We took the subsection as the base unit and split only those exceeding the encoder’s limit, at paragraph boundaries. Not picked off the menu — composed.
17개 전부가 한도를 넘는다. 맥락은 완전하지만 검색 단위로는 쓸 수 없다.All 17 exceed the limit. Complete in context, unusable as a search unit.
하나의 주장이 하나의 청크가 된다. 전거도 여기서 가장 자연스럽다.One claim becomes one chunk. Provenance sits most naturally here too.
크기는 안전하지만 한 주장이 여러 조각으로 흩어진다.Safe in size, but a single claim scatters across pieces.
교감을 마친 정본이 있으면 이후의 모든 인용이 그 위에서 이뤄진다. XML은 그 정본에 해당한다 — 한 번 만들어 두면 청킹·검색·인용이 전부 이 하나를 근거로 삼는다.Once a collated edition exists, every later citation rests on it. The XML plays that role — settle it once, and chunking, retrieval and citation all refer back to it.
</subsection>이 말해 준다.No guessing where to cut. </subsection> says so.Source/sdg_report_2025.xml을 실제로 파싱해 계산했습니다 · 토큰은 all-MiniLM-L6-v2의 WordPiece 실측All figures were computed by parsing the real Source/sdg_report_2025.xml · Token counts use the actual all-MiniLM-L6-v2 WordPiece vocabulary