-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
39 lines (29 loc) · 1.08 KB
/
Copy pathrun.py
File metadata and controls
39 lines (29 loc) · 1.08 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
import sys
from pathlib import Path
# Modules under src/ import each other by top-level name (for example
# "from retrieval.hybrid_search import ..."), so src/ itself has to be on
# sys.path, not just the project root.
ROOT = Path(__file__).parent
sys.path.append(str(ROOT))
sys.path.append(str(ROOT / "src"))
from src.vector_pipeline import VectorDBPipeline
def main():
print("wattbot!!!!")
# Initialize pipeline
pipeline = VectorDBPipeline()
# Build or load index
print("\n Step 1: Building Vector Index...")
pipeline.build_or_load_index()
# Test on training data
print("\n Step 2: Testing on Training Data...")
pipeline.test_on_training_data()
# Ask user whether to proceed
response = input("\n🤔 Proceed with test set? (y/n): ")
if response.lower() == 'y':
print("\n Step 3: Processing Test Questions...")
pipeline.process_test_questions()
print("\n Complete! Check data/processed/submission.csv")
else:
print("\n Pipeline ready. Run process_test_questions() when ready.")
if __name__ == "__main__":
main()