Files
momentry_core/v1.1/run-server-3003_v1.11.sh
Accusys 2cfcfdd1af feat: Phase 2.6 edges migration to Qdrant (TKG-only architecture)
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
2026-06-21 04:47:49 +08:00

29 lines
776 B
Bash
Executable File

#!/usr/bin/env bash
# Start playground server on port 3003
# Logs to logs/momentry_3003.log
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Kill existing server on port 3003
PID=$(lsof -ti :3003 2>/dev/null || true)
if [ -n "$PID" ]; then
echo "Killing existing server on port 3003 (PID: $PID)"
kill "$PID" 2>/dev/null || true
sleep 2
fi
# Build if needed
if [ ! -f target/debug/momentry_playground ]; then
echo "Building playground binary..."
cargo build --bin momentry_playground
fi
# Start server
echo "Starting momentry_playground server on port 3003..."
./target/debug/momentry_playground server --port 3003 > logs/momentry_3003.log 2>&1 &
echo "Server started (PID: $!)"
echo "Logs: logs/momentry_3003.log"