feat: Phase 2.5 gaze_trace and lip_trace Qdrant migration + Charade Q&A test
Phase 2.5.1: gaze_trace_nodes from Qdrant - build_gaze_trace_nodes_from_qdrant() - Read trace_id, frame, bbox from Qdrant payload - Compute gaze stats (yaw, pitch, roll, gaze direction, blink) - No PostgreSQL face_detections dependency Phase 2.5.2: lip_trace_nodes from Qdrant + face.json - build_lip_trace_nodes_from_qdrant() - Match trace_id using Qdrant embeddings + face.json bbox - Compute lip stats (openness, variance, speaking frames) - Fixed face.json bbox structure (x,y,width,height not bbox object) Test results: - 23 gaze_trace nodes from Qdrant - 23 lip_trace nodes from Qdrant + face.json - 51 lip_sync edges created - Charade Q&A: 20 identities, 75 relationship chunks Docs: - TKG_PHASE2_NONFACE_MIGRATION_V1.0.md (migration plan) - 2026-06-21_charade_qa_test.md (Q&A test report)
This commit is contained in:
41
test_charade_qa_detailed.sh
Normal file
41
test_charade_qa_detailed.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
# Charade Detailed Q&A Test
|
||||
|
||||
API_KEY="muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69"
|
||||
BASE_URL="http://localhost:3003"
|
||||
FILE_UUID="d3f9ae8e471a1fc4d47022c66091b920"
|
||||
|
||||
echo "=== Charade 详细问答测试 ==="
|
||||
echo ""
|
||||
|
||||
echo "=== 人物身份查询 ==="
|
||||
echo "Q1: Who are the identities in the database?"
|
||||
curl -s "$BASE_URL/api/v1/identities" \
|
||||
-H "X-API-Key: $API_KEY" 2>&1 | jq '.identities[0:5] | .[] | {id, name, source}'
|
||||
echo ""
|
||||
|
||||
echo "=== 视频分析结果 ==="
|
||||
echo "Q2: What is the video structure?"
|
||||
curl -s "$BASE_URL/api/v1/file/$FILE_UUID" \
|
||||
-H "X-API-Key: $API_KEY" 2>&1 | jq '{file_name, status, duration, fps}'
|
||||
echo ""
|
||||
|
||||
echo "=== TKG 知识图谱 ==="
|
||||
echo "Q3: What nodes exist in TKG?"
|
||||
curl -s -X POST "$BASE_URL/api/v1/file/$FILE_UUID/tkg/rebuild" \
|
||||
-H "X-API-Key: $API_KEY" 2>&1 | jq '.result'
|
||||
echo ""
|
||||
sleep 20
|
||||
|
||||
echo "=== 关系分析 ==="
|
||||
echo "Q4: What relationships exist?"
|
||||
curl -s -X POST "$BASE_URL/api/v1/file/$FILE_UUID/rule2" \
|
||||
-H "X-API-Key: $API_KEY" 2>&1 | jq '{success, rule2_chunks}'
|
||||
echo ""
|
||||
|
||||
echo "=== Face Embeddings ==="
|
||||
echo "Q5: Check Qdrant Phase2 logs"
|
||||
grep "Phase2\|Phase2.5\|Qdrant" logs/momentry_3003.log | tail -8
|
||||
echo ""
|
||||
|
||||
echo "=== 测试完成 ==="
|
||||
Reference in New Issue
Block a user