#!/bin/bash set -e echo "πŸ”„ Git μ €μž₯μ†Œ μž¬μ΄ˆκΈ°ν™” (큰 파일 제거)" # 1. ν˜„μž¬ 변경사항 확인 git status # 2. μˆ˜μ •λœ 파일 컀밋 if [ -n "$(git diff --name-only)" ]; then echo "πŸ“ μˆ˜μ •λœ 파일 컀밋 쀑..." git add scripts/chat_history.py git commit -m "perf: MongoDB connection pooling and index optimization" fi # 3. .git λ°±μ—… (선택사항) echo "πŸ’Ύ .git 디렉토리 λ°±μ—… 쀑..." mv .git .git.backup # 4. μƒˆ μ €μž₯μ†Œ μ΄ˆκΈ°ν™” echo "πŸ†• μƒˆ Git μ €μž₯μ†Œ μ΄ˆκΈ°ν™”..." git init git remote add origin https://github.com/KoreaExpressWayCorp/exAiChatBot.git # 5. ν˜„μž¬ 파일 컀밋 (.gitignore 적용됨) echo "βœ… ν˜„μž¬ 파일 컀밋 (큰 파일 μ œμ™Έ)..." git add . git commit -m "init: RAG system with MongoDB optimization - Query Rewriting with two-tier threshold - MongoDB connection pooling (maxPoolSize=50) - Chat history management (24h query, 30d storage) - Smart skip logic for embedding/indexing - FAISS vector store with reranking" # 6. κ°•μ œ ν‘Έμ‹œ echo "πŸš€ GitHub에 ν‘Έμ‹œ 쀑..." git push -f origin main echo "βœ… μ™„λ£Œ! κΉ¨λ—ν•œ Git νžˆμŠ€ν† λ¦¬λ‘œ μž¬μ‹œμž‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€."