{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo \"=== Reducing full_scan_threshold to force HNSW ===\"\ncat > \/tmp\/force_hnsw.json << 'EOF'\n{\n \"hnsw_config\": {\n \"full_scan_threshold\": 100\n }\n}\nEOF\ncurl -s -X PATCH \"http:\/\/localhost:6333\/collections\/documents\" -H \"Content-Type: application\/json\" -d @\/tmp\/force_hnsw.json\necho \"\"\n\necho \"Waiting 20s for HNSW index build...\"\nsleep 20\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'full_scan_threshold: {d[\"config\"][\"hnsw_config\"][\"full_scan_threshold\"]}')\nEOF",
"description": "Force HNSW via lower threshold"
}
}
{
"tool_response": {
"stdout": "=== Reducing full_scan_threshold to force HNSW ===\n{\"result\":true,\"status\":\"ok\",\"time\":0.000952974}\nWaiting 20s for HNSW index build...\nIndexed: 0\/1997 (0.0%)\nfull_scan_threshold: 100",
"stderr": "",
"interrupted": false,
"isImage": false
}
}