-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_rag.py
More file actions
34 lines (27 loc) · 916 Bytes
/
Copy pathsetup_rag.py
File metadata and controls
34 lines (27 loc) · 916 Bytes
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
#!/usr/bin/env python3
"""
Convenience script to run Gemini RAG setup from project root
Calls the actual setup script from src/rag/
"""
import subprocess
import sys
from pathlib import Path
def main():
"""Run the Gemini RAG setup from its proper location"""
print("🚀 Running Gemini RAG Setup from src/rag/")
print("=" * 50)
# Run the actual setup script
try:
result = subprocess.run([
sys.executable,
"src/rag/setup_gemini_rag.py"
], cwd=Path(__file__).parent, env={**dict(os.environ), "PYTHONPATH": "."})
if result.returncode == 0:
print("\n✅ Setup completed successfully!")
else:
print(f"\n❌ Setup failed with return code: {result.returncode}")
except Exception as e:
print(f"❌ Error running setup: {e}")
if __name__ == "__main__":
import os
main()