-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
70 lines (61 loc) · 2.1 KB
/
Copy pathsetup.sh
File metadata and controls
70 lines (61 loc) · 2.1 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# AKBS Setup Script
# Demonstrates code/data separation
echo "=================================="
echo "AKBS Setup - Code vs Data"
echo "=================================="
# Create directory structure
echo ""
echo "Creating directory structure..."
mkdir -p data/knowledge_db
mkdir -p processed-chapters
mkdir -p raw-pdfs
echo "✓ Created: data/knowledge_db (gitignored)"
echo "✓ Created: processed-chapters (gitignored)"
echo "✓ Created: raw-pdfs (gitignored)"
# Show what's tracked by git
echo ""
echo "=================================="
echo "What Git Tracks (Public Code):"
echo "=================================="
ls -lh *.py *.md requirements.txt .gitignore 2>/dev/null | grep -v total
echo ""
echo "=================================="
echo "What Git Ignores (Private Data):"
echo "=================================="
echo " - data/ directory (your knowledge base)"
echo " - processed-chapters/ (your markdown files)"
echo " - raw-pdfs/ (your source documents)"
# Verify gitignore
echo ""
echo "=================================="
echo "Verifying .gitignore protection:"
echo "=================================="
if [ -f .gitignore ]; then
if git check-ignore data/ > /dev/null 2>&1; then
echo "✓ data/ is protected by .gitignore"
else
echo "⚠ Warning: data/ might not be ignored"
fi
if git check-ignore processed-chapters/ > /dev/null 2>&1; then
echo "✓ processed-chapters/ is protected by .gitignore"
else
echo "⚠ Warning: processed-chapters/ might not be ignored"
fi
else
echo "⚠ .gitignore not found - create it first!"
fi
echo ""
echo "=================================="
echo "Next Steps:"
echo "=================================="
echo "1. Put your markdown files in: processed-chapters/"
echo "2. Run: python akbs_ingest_markdown.py"
echo "3. Your data stays local, code can be shared!"
echo ""
echo "Git commands:"
echo " git add *.py *.md requirements.txt .gitignore"
echo " git commit -m 'Initial AKBS setup'"
echo ""
echo "Your data will NOT be committed (protected by .gitignore)"
echo "=================================="