#!/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 "=== 测试完成 ==="