{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo \"Waiting 15s for HNSW index build...\"\nsleep 15\n\ncurl -s http:\/\/localhost:6333\/collections\/documents > \/tmp\/status.json\npython3 << 'EOF'\nimport json\nwith open('\/tmp\/status.json') as f:\n d = json.load(f)['result']\nindexed = d.get(\"indexed_vectors_count\", 0)\ntotal = d.get(\"points_count\", 0)\npct = (indexed \/ total * 100) if total > 0 else 0\nprint(f'Indexed: {indexed}\/{total} ({pct:.1f}%)')\nprint(f'Segments: {d.get(\"segments_count\")}')\nprint(f'Optimizer: {d.get(\"optimizer_status\")}')\nEOF",
"description": "Wait and check index"
}
}
{
"tool_response": {
"stdout": "Waiting 15s for HNSW index build...\nIndexed: 0\/1997 (0.0%)\nSegments: 1\nOptimizer: ok",
"stderr": "",
"interrupted": false,
"isImage": false
}
}