Phase 2.6.1: co_occurrence_edges migration - build_co_occurrence_edges_from_qdrant() - Qdrant embeddings → frame grouping → YOLO objects - Result: 6679 edges (vs 6701 PostgreSQL) Phase 2.6.2: face_face_edges migration - build_face_face_edges_from_qdrant() - Qdrant embeddings → frame grouping → face pairs - mutual_gaze detection preserved - Result: 6 edges (exact match) Phase 2.6.3: speaker_face_edges migration - build_speaker_face_edges_from_qdrant() - Qdrant embeddings → trace_id frame ranges - SPEAKS_AS edge creation Architecture: - All edges use Qdrant payload (no face_detections queries) - PostgreSQL fallback for empty Qdrant - Estimated 3.6x performance improvement Testing: - Playground (3003): ✓ All Phase 2.6 logs verified - Edge counts: ✓ Close match with PostgreSQL - Fallback: ✓ Working Docs: - docs_v1.0/DESIGN/TKG_PHASE2_6_EDGES_MIGRATION.md - docs_v1.0/M4_workspace/2026-06-21_phase2_6_test.md
26 lines
625 B
Python
26 lines
625 B
Python
#!/opt/homebrew/bin/python3.11
|
|
"""
|
|
Simple test script for Rust to call
|
|
"""
|
|
|
|
import sys
|
|
import json
|
|
import os
|
|
|
|
print(f"Python version: {sys.version}")
|
|
print(f"Arguments: {sys.argv}")
|
|
|
|
# Write output file
|
|
if len(sys.argv) > 2:
|
|
output_path = sys.argv[2]
|
|
result = {"success": True, "message": "Test successful", "args": sys.argv}
|
|
|
|
with open(output_path, "w") as f:
|
|
json.dump(result, f, indent=2)
|
|
|
|
print(f"Output written to: {output_path}")
|
|
print(f"File exists: {os.path.exists(output_path)}")
|
|
print(
|
|
f"File size: {os.path.getsize(output_path) if os.path.exists(output_path) else 0}"
|
|
)
|