How dev-strzx9/dev works
ER MAP is an entity-extraction API/workflow: a user submits a query, the system extracts and repairs identifiers, then the workflow attempts a data load and can present results for human selection before building an artifact. The data-load module is currently a stub that always returns an empty result. The README describes extraction-only scope, while the sampled workflow and API implement additional selection and artifact stages; unsampled prompt files are not mapped.
Main entry points: ermap_workflow.py Workflow graph · llm_api.py Structured LLM client · app.py Chat API · ermap_agent.py Entity extraction
Components 13
API entry
- Chat API
app.py - API response
app.py
Entity extraction
- Entity extraction
ermap_agent.py - Identifier repair
ermap_agent.py
Workflow stages
- Workflow graph
ermap_workflow.py - Data load
ermap_data_load.py - HITL selection
ermap_workflow.py - Selection parsing
ermap_selection.py - Artifact builder
ermap_workflow.py
LLM integration
- Structured LLM client
llm_api.py
Other components
- User
- OpenRouter
- ER MAP database
Connections 15
- User → Chat API: submits query
app.py - Chat API → Workflow graph: invokes or resumes
app.py - Workflow graph → Entity extraction: dispatches
ermap_workflow.py - Entity extraction → Structured LLM client: extracts entities
ermap_agent.py - Structured LLM client → OpenRouter: sends request
llm_api.py - Workflow graph → Identifier repair: dispatches
ermap_workflow.py - Identifier repair → Structured LLM client: repairs identifiers
ermap_agent.py - Workflow graph → Data load: dispatches
ermap_workflow.py - Data load → ER MAP database: queries (unimplemented)
- Workflow graph → HITL selection: routes results
ermap_workflow.py - HITL selection → Selection parsing: resolves reply
ermap_workflow.py - Selection parsing → Structured LLM client: parses selection
ermap_selection.py - Workflow graph → Artifact builder: dispatches
ermap_workflow.py - Workflow graph → API response: returns outcome
app.py - API response → User: responds
app.py