Spaces:
Sleeping
Sleeping
File size: 638 Bytes
047f43e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#!/bin/bash
# GitHub Codespaces์์ ์คํํ๋ ์คํฌ๋ฆฝํธ
# PDF๋ฅผ ํด๋ผ์ฐ๋ ์คํ ๋ฆฌ์ง์์ ๋ค์ด๋ก๋ ํ ์ธ๋ฑ์ฑ
echo "ํด๋ผ์ฐ๋ ํ๊ฒฝ์์ ์ธ๋ฑ์ฑ"
# 1. PDF ๋ค์ด๋ก๋ (์: Google Drive, Dropbox ๋ฑ)
# rclone์ด๋ gdown ๋ฑ์ ์ฌ์ฉ
# Google Drive ์์:
# pip install gdown
# gdown --folder YOUR_GOOGLE_DRIVE_FOLDER_ID -O data/pdfs/
# Dropbox ์์:
# wget "YOUR_DROPBOX_SHARE_LINK&dl=1" -O pdfs.zip
# unzip pdfs.zip -d data/pdfs/
# 2. ์ธ๋ฑ์ฑ ์คํ
python scripts/index_pdfs.py
# 3. GitHub์ ์๋ ํธ์
git add data/chroma_db/
git commit -m "Add vector database"
git push
echo "์๋ฃ!"
|