# -*- coding: utf-8 -*-
from utils.animal_rag import get_animal_rag

rag = get_animal_rag()
rag._init_db()

df = rag.table.to_pandas()

# 개시딘 청크들 확인
gaesidin = df[df['source'] == 'gaesidin_gel_pyoderma_fusidic_acid.md']
print(f'개시딘 청크 수: {len(gaesidin)}개')
print('=' * 60)

for i, row in gaesidin.head(5).iterrows():
    section = row['section']
    text = row['text'][:200].replace('\n', ' ')
    print(f'\n[섹션] {section}')
    print(f'  → {text}...')
