tools/rag
poomasi-notes 데이터를 처리하는 RAG 보조 스크립트 모음.
환경
- Python:
/home/haeory/poomasi/rag/venv/bin/python3.11 - 의존성: sentence-transformers, chromadb, pyyaml (venv 안에 설치됨)
- ChromaDB 경로:
/home/haeory/poomasi/rag/chroma_db
스크립트
ingest_activities.py
wiki/활동/*.md → ChromaDB poomasi_docs 컬렉션 증분 인제스트.
# 증분 (변경 파일만)
/home/haeory/poomasi/rag/venv/bin/python3.11 /home/haeory/poomasi/poomasi-notes/tools/rag/ingest_activities.py
# 전체 재인제스트
/home/haeory/poomasi/rag/venv/bin/python3.11 /home/haeory/poomasi/poomasi-notes/tools/rag/ingest_activities.py --full상태 파일: /home/haeory/poomasi/rag/.ingest_state_activities.json
localpay_grade.py
wiki/활동/*.md frontmatter의 grade 필드를 읽어 ledger/localpay.jsonl에 지급 레코드 추가.
# S등급만 (기본)
/home/haeory/poomasi/rag/venv/bin/python3.11 /home/haeory/poomasi/poomasi-notes/tools/rag/localpay_grade.py
# dry-run 미리보기
/home/haeory/poomasi/rag/venv/bin/python3.11 /home/haeory/poomasi/poomasi-notes/tools/rag/localpay_grade.py --dry-run
# 전 등급
/home/haeory/poomasi/rag/venv/bin/python3.11 /home/haeory/poomasi/poomasi-notes/tools/rag/localpay_grade.py --grade all상태 파일: /home/haeory/poomasi/rag/.localpay_state.json
출력 원장: /home/haeory/poomasi/poomasi-notes/ledger/localpay.jsonl