상위 수준의 요약을 얻고, 그다음 중간 수준의 요약을, 마지막으로 매우 구체적인 청크를 얻게
된다. 이렇게 검색된 모든 청크로 응답 생성 단계에 필요한 포괄적인 컨텍스트를 만들 수 있다.
계층적 청킹은 그래프
RAG
GraphRAG
를 단순화한 버전에 해당한다. 그래프
RAG
는 제
4
장
색인 인
식 검색
패턴의 “구성 요소
4
: 그래프
RAG
” 절에서 좀 더 논의할 것이다.
3.2.3
예제
이 예제는 표를 색인화해서 특정한 표 형식 데이터를 쿼리하는 방법을 보여 준다. 간결함을 위
해 표 형식 데이터의 색인화와 쿼리에만 초점을 두기로 한다. 잘 정의된 구조로 된 표 형식 데
이터가 갖추어져 있다고 가정하자. 관계형 데이터베이스나 스프레드시트에서 표 데이터를 추
출했다면 이 가정이 성립한다. 만일 데이터가 구조화된 형식이 아니라면 적절한 전처리 과정이
필요할 것이다.
좀 더 구체적으로, 이 예제에서는 작은 제품 카탈로그를 색인화한다. 각 항목은 제품 이름과 제
품 설명 그리고 여러 개의 수치 필드와 이진(부울
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.