{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/python -c \"\nfrom embed import get_embedding\nfrom db import db\n\ndb.connect()\n\n# Test chunk 12\ncursor = db.execute('SELECT content FROM chunks WHERE id = 12')\nchunk = cursor.fetchone()\ncursor.close()\n\ncontent = chunk['content']\nprint(f'Chunk 12: {len(content)} chars')\n\nembedding = get_embedding(content)\nif embedding:\n print(f'Embedding OK: {len(embedding)} dim')\nelse:\n print('Embedding failed!')\n\ndb.disconnect()\n\"",
"description": "Test specific chunk embedding"
}
}
{
"tool_response": {
"stdout": "Chunk 12: 958 chars\nEmbedding failed!",
"stderr": "",
"interrupted": false,
"isImage": false
}
}