{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/scripts\/pipeline\/step_entity_enrich.py",
"limit": 30
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/scripts\/pipeline\/step_entity_enrich.py",
"content": "\"\"\"\nEntity Enrichment Step Module\nGenerates detailed descriptions for entities via Ollama.\n\nThis step runs AFTER semantic analysis and enriches entities\nwith comprehensive descriptions (3-5 sentences).\n\nPart of Progressive Pipeline Architecture.\n\"\"\"\n\nimport time\n\nimport requests\n\nfrom constants import DEFAULT_LIMIT, OLLAMA_TIMEOUT\nfrom db import db\n\n# Configuration\nOLLAMA_URL = \"http:\/\/localhost:11434\/api\/generate\"\nDEFAULT_MODEL = \"mistral:latest\"\nMIN_DESCRIPTION_LENGTH = 50\n\n\nclass EntityEnrichStep:\n \"\"\"Step: Enrich entity descriptions via Ollama.\"\"\"\n\n def __init__(self, progress=None):\n \"\"\"\n Initialize entity enrichment step.\n",
"numLines": 30,
"startLine": 1,
"totalLines": 236
}
}
}