-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
49 lines (40 loc) · 1.21 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
# Mandukya Upanishad Video Analysis Pipeline
.PHONY: setup download run index search clean
# 🛠️ Setup the environment
setup:
@echo "Setting up Python environment..."
pip install -r requirements.txt
python3 cognee_setup.py
# 📥 Download a playlist/video
# Usage: make download URL="https://youtube.com/..."
download:
@if [ -z "$(URL)" ]; then echo "Usage: make download URL=..."; exit 1; fi
python3 downloader.py "$(URL)"
# 🚀 Run the processing pipeline
run:
@echo "Starting video processing pipeline..."
python3 process_pipeline.py
# 🧠 Build the Knowledge Graph (Cognee)
index:
@echo "Indexing transcripts into Graph, Vector, and RDBMS..."
python3 cognee_indexer.py
# 🔍 Semantic Search
# Usage: make search QUERY="meaning of aum"
search:
@if [ -z "$(QUERY)" ]; then echo "Usage: make search QUERY=..."; exit 1; fi
python3 search.py "$(QUERY)"
# 🧪 Run tests
test:
@echo "Running tests..."
PYTHONPATH=. pytest tests/
# 🧹 Clean temporary data
clean:
@echo "Cleaning up..."
rm -rf __pycache__ .pytest_cache .hypothesis pipeline.log
# 🖥️ Desktop Setup Wizard
setup-app:
@echo "Launching Desktop Setup Wizard..."
python3 setup_wizard.py
rm -rf audio/*
rm -rf slides/frames/*
@echo "Done."