이 방법은 크기(글자 수나 단어 수 등)가 임곗값에 도달할 때까지 문장들을 합쳐서 청크를 만든다. 텍스트 블록
의 기본 의미는 보존하지만, 주제 전환을 포착하는 데는 어려움이 있다.
문단 기반 청킹
이 방법은 자연스러운 문단(단락) 나눔을 청크의 경계로 사용한다. 정형 문서(구조화된 문서)에 효과적이다.
문서 구조 기반 청킹
마크다운
Markdown
이나 마크업
Markup
같은 문서 형식들은 문서를 여러 하위 섹션으로 나누는 구조적 힌트를 제공한
다. 예를 들어 마크다운 파일의 경우
2
수준 제목
heading
행
10
섹션의 경계로 간주할 수 있다.
의미 변화 기반 청킹
주제 모델링
topic
modeling
기법(잠재 디리클레 할당이나 비음수 행렬 분해 등)이나 더 작은 문서 하위 섹션의 임베
딩을 이용하면 의미 변화를 식별할 수 있다. 변화가 감지되면 문서를 분할해서 새로운 청크를 만든다. 이 방법은
각 청크가 일관된 주제를 갖도록 보장한다.
Generating
chunks with
overlaps
Generating
chunks based on
paragraphs
Generating
chunks based on
semantic shifts
중첩 있는
길이 기반 청킹
문단 기반 청킹
의미 변화 기반
청킹
그림
3-6
다양한
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.