{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/python -c \"\nimport requests\nfrom db import db\n\ndb.connect()\ncursor = db.execute('SELECT content FROM chunks WHERE id = 8')\nchunk = cursor.fetchone()\ncursor.close()\ncontent = chunk['content']\n\nprint(f'Testing mxbai-embed-8k with {len(content)} chars...')\n\nresponse = requests.post(\n 'http:\/\/localhost:11434\/api\/embeddings',\n json={'model': 'mxbai-embed-8k', 'prompt': content},\n timeout=60\n)\n\nprint(f'Status: {response.status_code}')\nif response.status_code == 200:\n data = response.json()\n if 'embedding' in data:\n print(f'SUCCESS: {len(data[\\\"embedding\\\"])} dimensions')\nelse:\n print(f'Error: {response.text}')\n\ndb.disconnect()\n\"",
"description": "Test new embedding model"
}
}
{
"tool_response": {
"stdout": "Testing mxbai-embed-8k with 1787 chars...\nStatus: 500\nError: {\"error\":\"the input length exceeds the context length\"}",
"stderr": "",
"interrupted": false,
"isImage": false
}
}