groundworkers 0.10.0__tar.gz → 0.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.gitignore +2 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/PKG-INFO +7 -8
- {groundworkers-0.10.0 → groundworkers-0.12.0}/README.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/config/groundworkers.example.toml +0 -3
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/architecture.md +0 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/concepts.md +2 -10
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/development/integration.md +14 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/development/plugins.md +5 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/from-scratch.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/index.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/reference/ref_services.md +0 -6
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/reference/ref_tools.md +0 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/graph.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/grounding.md +5 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/vocab.md +6 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/concept.md +24 -11
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/domain.md +4 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/embedding.md +5 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/knowledge.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/mapping.md +40 -42
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/overview.md +36 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/resolver.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/search.md +24 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/source_planning.md +1 -1
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/text.md +6 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/configuration.md +1 -20
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/integrations.md +1 -9
- {groundworkers-0.10.0 → groundworkers-0.12.0}/mkdocs.yaml +0 -2
- {groundworkers-0.10.0 → groundworkers-0.12.0}/pyproject.toml +4 -5
- groundworkers-0.12.0/src/groundworkers/adapters/_omop_graph_ancestry.py +147 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/adapters/omop_emb.py +174 -14
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/adapters/omop_graph.py +67 -6
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/app.py +9 -2
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/ancestry.py +2 -1
- groundworkers-0.12.0/src/groundworkers/base/concept_ids.py +3 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/server.py +126 -6
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/config.py +0 -11
- groundworkers-0.12.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md +64 -0
- groundworkers-0.12.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/manifest.yaml +24 -0
- groundworkers-0.12.0/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/rules.yaml +78 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/server.py +22 -14
- groundworkers-0.12.0/src/groundworkers/server_instructions.py +67 -0
- groundworkers-0.12.0/src/groundworkers/services/answer_grounding.py +167 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/domain.py +1 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/graph.py +55 -38
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/grounding.py +94 -92
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/mapping.py +218 -35
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/vocab.py +210 -7
- groundworkers-0.12.0/src/groundworkers/tools/concept_tools.py +412 -0
- groundworkers-0.12.0/src/groundworkers/tools/domain_tools.py +40 -0
- groundworkers-0.12.0/src/groundworkers/tools/embedding_tools.py +294 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/knowledge_tools.py +58 -50
- groundworkers-0.12.0/src/groundworkers/tools/mapping_tools.py +434 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/resolver_tools.py +62 -58
- groundworkers-0.12.0/src/groundworkers/tools/search_tools.py +156 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/source_planning_tools.py +29 -14
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/system_tools.py +24 -28
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/text_tools.py +84 -68
- groundworkers-0.12.0/src/groundworkers/toolsets.py +62 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/conftest.py +33 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/agent_surface.py +142 -48
- groundworkers-0.12.0/tests/support/agent_surface_budget.json +14 -0
- groundworkers-0.10.0/evaluation/surface/reference.json → groundworkers-0.12.0/tests/support/agent_surface_reference.json +729 -210
- groundworkers-0.12.0/tests/support/toolset_profiles.json +70 -0
- groundworkers-0.12.0/tests/support/toolsets.json +140 -0
- groundworkers-0.12.0/tests/test_agent_surface.py +282 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/test_server_registry.py +135 -7
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_ancestry_mcp_contract.py +2 -0
- groundworkers-0.12.0/tests/unit/test_answer_grounding.py +324 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_concept_tools.py +354 -73
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_embedding_tools.py +181 -8
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_grounding_constraints.py +8 -8
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_knowledge_catalogue.py +68 -6
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_mapping_service.py +221 -1
- groundworkers-0.12.0/tests/unit/test_mapping_tools.py +332 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_migration_boundaries.py +4 -4
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_omop_domains.py +30 -8
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_omop_emb_adapter.py +140 -1
- groundworkers-0.12.0/tests/unit/test_server_instructions.py +213 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_stored_ancestry.py +157 -0
- groundworkers-0.12.0/tests/unit/test_toolsets.py +262 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_vocab_service.py +58 -10
- groundworkers-0.12.0/tests/unit/test_vocabulary_facts.py +75 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/uv.lock +60 -234
- groundworkers-0.10.0/docs/development/standard-resolution-packs.md +0 -133
- groundworkers-0.10.0/docs/services/semantic_projection.md +0 -153
- groundworkers-0.10.0/docs/tools/semantic_projection.md +0 -127
- groundworkers-0.10.0/evaluation/surface/budget.json +0 -10
- groundworkers-0.10.0/src/groundworkers/adapters/_omop_graph_ancestry.py +0 -59
- groundworkers-0.10.0/src/groundworkers/services/semantic_projection/__init__.py +0 -25
- groundworkers-0.10.0/src/groundworkers/services/semantic_projection/definitions.py +0 -319
- groundworkers-0.10.0/src/groundworkers/services/semantic_projection/models.py +0 -80
- groundworkers-0.10.0/src/groundworkers/services/semantic_projection/service.py +0 -147
- groundworkers-0.10.0/src/groundworkers/tools/concept_tools.py +0 -346
- groundworkers-0.10.0/src/groundworkers/tools/domain_tools.py +0 -47
- groundworkers-0.10.0/src/groundworkers/tools/embedding_tools.py +0 -144
- groundworkers-0.10.0/src/groundworkers/tools/mapping_tools.py +0 -309
- groundworkers-0.10.0/src/groundworkers/tools/search_tools.py +0 -132
- groundworkers-0.10.0/src/groundworkers/tools/semantic_projection_tools.py +0 -78
- groundworkers-0.10.0/tests/test_agent_surface.py +0 -65
- groundworkers-0.10.0/tests/unit/test_mapping_tools.py +0 -153
- groundworkers-0.10.0/tests/unit/test_semantic_projection_service.py +0 -333
- groundworkers-0.10.0/tests/unit/test_semantic_projection_tools.py +0 -119
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.githooks/pre-commit +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/CONTRIBUTING.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/ISSUE_TEMPLATE/not_working.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/release-drafter.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/workflows/ci.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/workflows/docs.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/workflows/merge.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.github/workflows/publish.yml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/.python-version +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/CHANGELOG.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/Makefile +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/config/docker-compose.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/config/groundworkers.duckdb.example.toml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/config/groundworkers_db.env +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/adapters/ancestry.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/adapters/cdm.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/adapters/omop_emb.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/adapters/omop_graph.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/demo.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/development/extending.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/js/asciinema-init.js +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/js/mermaid-init.js +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/plugins.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/reference/ref_adapters.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/reference/ref_base.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/reference/ref_config.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/domain.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/mapping.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/source_planning.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/services/text.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/01_create_config.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/02_empty_config.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/03_config_wizard.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/04_test_cnx.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/04_warnings.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/05_graph_setup.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/06_load_predicates.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/07_vector_store.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/08_register_embedding.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/10_setup_complete.png +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/demo.cast +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/static/demo.short.cast +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/tools/system.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/installation.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/prompt-handling.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/setup_journey.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/testing.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/docs/usage/upgrading-from-0.6.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/_env.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/adapters/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/adapters/cdm.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/adapters/llm.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/configuration_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/databases.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_artifacts.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_capability.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_coverage.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_population.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_reconciliation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_registry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/embedding_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/integration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/maintenance_runs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/model_inventory.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/performance_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/plugin_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/application/setup/runtime_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/concept_payload.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/database.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/domain_names.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/errors.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/results.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/base/sql.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/bootstrap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/domain-routing/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/domain-routing/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/domain-routing/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/history-of-event/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/history-of-event/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/rules.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/omop_domains.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/plugins.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-request.schema.json +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-result.schema.json +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/examples.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/instructions.md +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/role-catalogue.yaml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/ancestry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/knowledge/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/knowledge/catalogue.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/knowledge/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/relationship_neighborhood.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/assisted.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/canonical_headers.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposer.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/csv_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/ddl_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/docx_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/json_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/pdf_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/xlsx_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/decomposers/xml_.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/detector.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/normalisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/provenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/router.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/serialisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/source_profiles/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/source_profiles/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/source_profiles/redcap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/source_profiles/registry.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/source_planning/warnings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/text/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/text/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/text/prompts.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/services/text/service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tools/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/transports/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/transports/rest/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/transports/rest/api.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/transports/rest/models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/app.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/pages/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/pages/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/pages/plugin_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/pages/plugin_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/pages/setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/base.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/chat.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/database.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/graph.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/llm_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/overview.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/performance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/presenters/runs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/routes.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/state.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/config_location.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/embedding_store.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/performance_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/src/groundworkers/tui/wizards/plugin_setup.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/test_omop_duckdb_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/test_omop_emb_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/test_omop_emb_contract.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/integration/test_omop_postgres_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/embedding_contract_fixture.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/omop.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/postgres_ci_config.toml +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/seed_postgres_fixture.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/stack_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/support/wheel_smoke.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/test_bootstrap_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/test_rest_api.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/__init__.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_concept_payload.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_config_location_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_configuration_provider.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_domain_names.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_domain_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_embedding_population_scope.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_embedding_reconciliation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_embedding_registry_step.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_env_bootstrap.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_error_boundary.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_graph_maintenance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_graph_maintenance_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_graph_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_graph_status.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_grounding_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_llm_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_maintenance_runs_phase2.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_mapping_context.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_normalized_index.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_omop_emb_setup_config.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_performance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_performance_maintenance_wizard.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_phase3_overview.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_plugin_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_plugin_lint_cli.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_plugins.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_predicate_mapping_classification.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_prompt_packs.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_provider_fields.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_relationship_edges.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_required_integration_preflight.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_required_test_gate.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_schema_resolution.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_artifacts_and_coverage.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_configuration.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_configuration_section.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_databases.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_embeddings.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_provider_conformance.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_runtime.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_truth.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_setup_write_flows.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_assisted_classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_classifier.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_decomposer.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_detector.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_document_formats.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_models.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_normalisation.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_router.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_source_planning_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_split_classified_edges.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_stack_config_fixtures.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_system_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_text_service.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_text_tools.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_tui_app.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_tui_state.py +0 -0
- {groundworkers-0.10.0 → groundworkers-0.12.0}/tests/unit/test_vector_store_setup.py +0 -0
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
- [ ] Applied exactly one label (`breaking`, `feature`, `fix`, `dependencies`, or `chore`)
|
|
8
8
|
- [ ] Tests pass locally (`uv run pytest -q`)
|
|
9
9
|
- [ ] Lint passes (`uv run ruff check .`)
|
|
10
|
+
- [ ] If tests/support/agent_surface_reference.json changed, I read its diff: every change to what agents see is intended
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: groundworkers
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: Groundworkers MCP server — read-only agentive access to OMOP vocabularies, concept graphs, and embeddings.
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: fastapi<1.0,>=0.110
|
|
@@ -8,10 +8,9 @@ Requires-Dist: mcp[cli]<2,>=1
|
|
|
8
8
|
Requires-Dist: numpy<3,>=1.26
|
|
9
9
|
Requires-Dist: oa-configurator<3,>=2.1.0
|
|
10
10
|
Requires-Dist: omop-alchemy<4,>=3.0.0
|
|
11
|
-
Requires-Dist: omop-emb<4,>=3.
|
|
11
|
+
Requires-Dist: omop-emb<4,>=3.2.0
|
|
12
12
|
Requires-Dist: omop-graph<5,>=4.0.0
|
|
13
13
|
Requires-Dist: omop-llm<2,>=1.0.2
|
|
14
|
-
Requires-Dist: omop-semantics<1,>=0.6
|
|
15
14
|
Requires-Dist: psutil<8,>=5.9
|
|
16
15
|
Requires-Dist: psycopg[binary]<4,>=3.1
|
|
17
16
|
Requires-Dist: pydantic<3,>=2
|
|
@@ -31,7 +30,7 @@ Requires-Dist: mkdocs-mermaid2-plugin; extra == 'dev'
|
|
|
31
30
|
Requires-Dist: mkdocs>=1.6.1; extra == 'dev'
|
|
32
31
|
Requires-Dist: mkdocstrings-python>=2.0.1; extra == 'dev'
|
|
33
32
|
Requires-Dist: mypy>=1.8; extra == 'dev'
|
|
34
|
-
Requires-Dist: omop-emb[duckdbvss]<4,>=3.
|
|
33
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.2.0; extra == 'dev'
|
|
35
34
|
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'dev'
|
|
36
35
|
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
37
36
|
Requires-Dist: pytest>=9.0.3; extra == 'dev'
|
|
@@ -43,14 +42,14 @@ Requires-Dist: ty>=0.0.59; extra == 'dev'
|
|
|
43
42
|
Provides-Extra: docx
|
|
44
43
|
Requires-Dist: python-docx>=1.0; extra == 'docx'
|
|
45
44
|
Provides-Extra: duckdb
|
|
46
|
-
Requires-Dist: omop-emb[duckdbvss]<4,>=3.
|
|
45
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.2.0; extra == 'duckdb'
|
|
47
46
|
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'duckdb'
|
|
48
47
|
Provides-Extra: embedding-artifacts
|
|
49
48
|
Requires-Dist: h5py<4,>=3.10; extra == 'embedding-artifacts'
|
|
50
49
|
Provides-Extra: embedding-faiss
|
|
51
|
-
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.
|
|
50
|
+
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.2.0; extra == 'embedding-faiss'
|
|
52
51
|
Provides-Extra: embedding-pgvector
|
|
53
|
-
Requires-Dist: omop-emb[pgvector]<4,>=3.
|
|
52
|
+
Requires-Dist: omop-emb[pgvector]<4,>=3.2.0; extra == 'embedding-pgvector'
|
|
54
53
|
Provides-Extra: pdf
|
|
55
54
|
Requires-Dist: pdfplumber>=0.10; extra == 'pdf'
|
|
56
55
|
Provides-Extra: tui
|
|
@@ -148,7 +147,7 @@ Owned here
|
|
|
148
147
|
|---|---|---|
|
|
149
148
|
| Source-planning roles and column review pack | [Models](src/groundworkers/services/source_planning/models.py); [pack manifest](src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml) | Groundcrew and source-planning clients |
|
|
150
149
|
| Domain routing and classifier outputs | [omop_domains.py](src/groundworkers/omop_domains.py) | Groundcrew's domain review pack and the domain-routing knowledge pack |
|
|
151
|
-
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
150
|
+
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md), [measurement guidance](src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
152
151
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
153
152
|
|
|
154
153
|
Consumed from elsewhere
|
|
@@ -85,7 +85,7 @@ Owned here
|
|
|
85
85
|
|---|---|---|
|
|
86
86
|
| Source-planning roles and column review pack | [Models](src/groundworkers/services/source_planning/models.py); [pack manifest](src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml) | Groundcrew and source-planning clients |
|
|
87
87
|
| Domain routing and classifier outputs | [omop_domains.py](src/groundworkers/omop_domains.py) | Groundcrew's domain review pack and the domain-routing knowledge pack |
|
|
88
|
-
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
88
|
+
| Mapping conventions | [Standard-concept guidance](src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md), [drug guidance](src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md), [history-of guidance](src/groundworkers/knowledge/packs/core/history-of-event/guidance.md), [measurement guidance](src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md) | Agents reading knowledge packs; guidance is advisory |
|
|
89
89
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
90
90
|
|
|
91
91
|
Consumed from elsewhere
|
|
@@ -120,9 +120,6 @@ source_planning_llm_assisted_enabled = true
|
|
|
120
120
|
# Knowledge packs: unset uses the packs shipped in the installed package.
|
|
121
121
|
# knowledge_packs_root = "/absolute/path/to/packs"
|
|
122
122
|
|
|
123
|
-
# Semantic projection tools are opt-in.
|
|
124
|
-
semantic_projection_enabled = false
|
|
125
|
-
|
|
126
123
|
# Groundworkers launches omop-emb for managed population runs. oa-configurator
|
|
127
124
|
# gives each package its own typed tool section; both packages share the actual
|
|
128
125
|
# CDM, model, and vector-store entries by naming the same resources here.
|
|
@@ -108,8 +108,6 @@ Services contain reusable domain logic that should work the same regardless of t
|
|
|
108
108
|
- `TextService` for LLM-backed text preprocessing
|
|
109
109
|
- `DomainService` for LLM-backed structured-field domain hints
|
|
110
110
|
- `SourcePlanningService` for stateless source-planning pipelines
|
|
111
|
-
- `SemanticProjectionService` for deterministic output-definition projection
|
|
112
|
-
over `omop-semantics` — grounded concept in, one or more CDM rows out
|
|
113
111
|
|
|
114
112
|
If the logic is something a Python caller would reasonably want without going through MCP, it probably belongs in a service.
|
|
115
113
|
|
|
@@ -121,8 +119,6 @@ Some services also depend on other services or optional adapters as part of the
|
|
|
121
119
|
- `SourcePlanningService` is always present and can be LLM-assisted when that
|
|
122
120
|
adapter is configured
|
|
123
121
|
|
|
124
|
-
`SemanticProjectionService` is the one exception to the `Services`/adapter composition described above: it needs no adapter (no database, no LLM — the same properties that make `omop-semantics` itself portable), so it is not part of `app.services`. It's constructed directly and registered behind its own config flag, the same way `KnowledgeCatalogue` is. See [SemanticProjectionService](services/semantic_projection.md).
|
|
125
|
-
|
|
126
122
|
### Transport layers
|
|
127
123
|
|
|
128
124
|
`groundworkers` exposes two transport styles over the same runtime:
|
|
@@ -6,14 +6,12 @@ MCP, REST, and Python are different ways to call the same runtime. Where a servi
|
|
|
6
6
|
|
|
7
7
|
## The main workflow
|
|
8
8
|
|
|
9
|
-
Mapping usually starts with source text or fields. Text preparation or domain classification can help narrow the search. Retrieval finds candidate concepts
|
|
9
|
+
Mapping usually starts with source text or fields. Text preparation or domain classification can help narrow the search. Retrieval finds candidate concepts, and grounding tries to resolve the input using ranked rules. Mapping brings the candidates, evidence, and graph context together for a caller or reviewer to choose a mapping.
|
|
10
10
|
|
|
11
11
|
```mermaid
|
|
12
12
|
flowchart TD
|
|
13
13
|
SOURCE["Source text or fields"] -->|Retrieval and grounding| CANDIDATES["Candidate concepts and evidence"]
|
|
14
14
|
CANDIDATES -->|Caller or reviewer chooses| SELECTED["Selected concept or concepts"]
|
|
15
|
-
SELECTED -. Optional semantic projection .-> ROWS["CDM rows"]
|
|
16
|
-
SOURCE -. Source context .-> ROWS
|
|
17
15
|
```
|
|
18
16
|
|
|
19
17
|
## Grounding, mapping, and retrieval
|
|
@@ -72,7 +70,6 @@ Most vocabulary and graph operations run without an LLM. Some text preparation a
|
|
|
72
70
|
| Structured-field domain classification | No | Configured chat model |
|
|
73
71
|
| Assisted source planning | Deterministic pipeline plus optional model fallback | LLM only when the assisted path is selected and configured |
|
|
74
72
|
| Source planning without assistance | Yes | Source content and any format-specific optional extra |
|
|
75
|
-
| Semantic projection | Yes | No database, embedding model, or LLM |
|
|
76
73
|
|
|
77
74
|
An embedding model and a chat model are separate configuration references. A deployment can use embeddings without enabling chat, chat without embeddings, or neither.
|
|
78
75
|
|
|
@@ -90,10 +87,6 @@ An agent can use workflow prompts to organise a task and elicitation prompts to
|
|
|
90
87
|
|
|
91
88
|
See [Working with prompts](usage/prompt-handling.md) for choosing guidance, handling unanswered questions, and requesting more explanation when needed.
|
|
92
89
|
|
|
93
|
-
## Semantic projection
|
|
94
|
-
|
|
95
|
-
Grounding answers “which concept does this source item refer to?” Projection answers “given that concept and this source context, which CDM row or rows should be emitted?” It is useful for sibling-field modifiers, value-carried family history, deterministic suppression, and multi-row output definitions. Projection never chooses the concept and never calls an LLM. It must be enabled explicitly to expose the definition catalogue.
|
|
96
|
-
|
|
97
90
|
## Choose an interface
|
|
98
91
|
|
|
99
92
|
| Choose | When it fits |
|
|
@@ -102,7 +95,7 @@ Grounding answers “which concept does this source item refer to?” Projection
|
|
|
102
95
|
| REST | An application wants a conventional HTTP contract for the curated candidate-bundle and assisted source-planning workflows. REST is not a mirror of every MCP tool. |
|
|
103
96
|
| Direct Python | A Python process already owns orchestration, batching, evaluation, or review logic and should call services without a transport hop. |
|
|
104
97
|
|
|
105
|
-
Use `groundworkers --describe` to inspect the active MCP tools, prompts, resources, and redacted runtime description.
|
|
98
|
+
Use `groundworkers --describe` to inspect the active MCP tools, prompts, resources, and redacted runtime description.
|
|
106
99
|
|
|
107
100
|
## Relationship to companion packages
|
|
108
101
|
|
|
@@ -111,7 +104,6 @@ Groundworkers uses these packages:
|
|
|
111
104
|
- `omop-alchemy` provides OMOP CDM models and database configuration;
|
|
112
105
|
- `omop-graph` provides graph-backed concept traversal and resolver primitives;
|
|
113
106
|
- `omop-emb` provides embedding stores, indexes, and model-backed query encoding;
|
|
114
|
-
- `omop-semantics` provides the generic output-definition runtime used by semantic projection;
|
|
115
107
|
- `omop-llm` provides provider-neutral model backends;
|
|
116
108
|
- `oa-configurator` resolves the shared stack configuration;
|
|
117
109
|
- `groundcrew` owns stateful orchestration and job lifecycle, while Groundworkers provides reusable stateless capabilities.
|
|
@@ -104,6 +104,20 @@ Messages are safe to log and surface: provider and database failures are transla
|
|
|
104
104
|
|
|
105
105
|
Do not derive standardness from omop-graph's `ConceptView.standard_concept`: that field is a single boolean covering both `'S'` and `'C'`. Groundworkers reads the raw flag at its adapter boundary so callers get the distinction.
|
|
106
106
|
|
|
107
|
+
## Read vocabulary facts
|
|
108
|
+
|
|
109
|
+
These methods query the configured vocabulary role on PostgreSQL or DuckDB. They perform exact, read-only lookups.
|
|
110
|
+
|
|
111
|
+
| Method | Result |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| `services.vocab.concept_facts(concept_ids)` | A dictionary keyed by concept ID with the recorded domain, active flag, and standard flag. Unknown IDs are absent. Inactive IDs retain their recorded facts. |
|
|
114
|
+
| `services.vocab.reverse_relationship_concept_id(concept_id)` | The reverse relationship's concept ID from `relationship`, or `None` when it is missing. |
|
|
115
|
+
| `services.vocab.domain_concept_id(domain_id)` | The concept ID from `domain`, or `None` when it is missing. |
|
|
116
|
+
| `services.vocab.answer_concept_ids(question_concept_id)` | All targets of active outbound `Has Answer` relationships, as a frozen set. An empty set means the lookup found no such relationships. It does not determine whether the answer list is closed. |
|
|
117
|
+
| `services.graph.has_ancestor(concept_id, ancestor_id)` | Whether the pair is stored in `concept_ancestor`, including a self-pair when present. |
|
|
118
|
+
|
|
119
|
+
A failed vocabulary query raises `GroundworkersError`. The `omop_semantic_projection` adapter in the separate `gw-plugins/omop-semantic-projection` repository uses these methods for projection checks and reports an unavailable answer-list lookup as deferred. Its `build_projection_oracle` factory always audits the registry, using the default registry unless the caller passes one. It logs the audit summary at WARNING and each affected ID at INFO.
|
|
120
|
+
|
|
107
121
|
## Writing configuration
|
|
108
122
|
|
|
109
123
|
Configuration writes are a local console concern, not part of the integration surface. If you are embedding the setup console in another host application, drive `GroundworkersConfigMutationService` through Groundskeeping's `ConfigWizardController`:
|
|
@@ -88,6 +88,11 @@ The concept-embedding row and the free-text-embedding row look similar but are n
|
|
|
88
88
|
|
|
89
89
|
Use `context.cdm_session_factory` for role-tagged OMOP queries. `context.cdm_engine` remains available for primary-role access. On split-vocabulary stacks, plugins must use the routed factory; an Engine-based OmopGraphAdapter or DomainNameResolver cannot route vocabulary queries and will fail with upgrade guidance.
|
|
90
90
|
|
|
91
|
+
Plugins may pass `toolsets=("my_toolset",)` to `server.tool()` to declare their
|
|
92
|
+
own toolsets. When omitted or empty during plugin registration, the server uses
|
|
93
|
+
`plugin:<name>`, where `<name>` is the plugin's registered name. Toolsets appear in
|
|
94
|
+
`--describe` and stay outside MCP tool definitions.
|
|
95
|
+
|
|
91
96
|
`register()` adds MCP tools, prompts, or resources against the state returned by `build()`. The shared MCP registration wrapper supplies the same safe error translation used by core tools. Code-defined prompts can continue to derive their arguments from the callable signature. A plugin publishing data-defined prompts can pass explicit string metadata with `PromptArgument`; this keeps dynamic pack fields out of Python closure signatures:
|
|
92
97
|
|
|
93
98
|
```python
|
|
@@ -139,7 +139,7 @@ These HTTP examples listen on the local machine. See [Integrations](usage/integr
|
|
|
139
139
|
|
|
140
140
|
Installed Groundworkers plugins can add tools, prompts, resources, and setup pages. Install them into the same Python environment as Groundworkers, then reopen the console or restart the service. Use `--describe` to check what was registered; plugins with readiness support also report configuration or dependency problems in the console.
|
|
141
141
|
|
|
142
|
-
For prompt packs, see [Working with prompts](usage/prompt-handling.md).
|
|
142
|
+
For prompt packs, see [Working with prompts](usage/prompt-handling.md). Groundworkers includes bundled knowledge packs. See [Configuration](usage/configuration.md) to add local knowledge packs.
|
|
143
143
|
|
|
144
144
|
## Configuration managed elsewhere
|
|
145
145
|
|
|
@@ -56,7 +56,7 @@ flowchart TD
|
|
|
56
56
|
|
|
57
57
|
## Before assuming a capability is available
|
|
58
58
|
|
|
59
|
-
Availability follows configuration. A CDM database enables the core vocabulary and mapping services. An embedding model plus vector store enables embedding operations. A chat model enables text preprocessing, domain classification, and assisted source planning.
|
|
59
|
+
Availability follows configuration. A CDM database enables the core vocabulary and mapping services. An embedding model plus vector store enables embedding operations. A chat model enables text preprocessing, domain classification, and assisted source planning.
|
|
60
60
|
|
|
61
61
|
Run this before integrating against an environment:
|
|
62
62
|
|
|
@@ -53,9 +53,3 @@
|
|
|
53
53
|
The catalogue is a standalone discovery service rather than an entry in `app.services`. It reads bundled and configured packs and returns applicable manifest/content objects.
|
|
54
54
|
|
|
55
55
|
::: groundworkers.services.knowledge.catalogue
|
|
56
|
-
|
|
57
|
-
## SemanticProjectionService
|
|
58
|
-
|
|
59
|
-
`SemanticProjectionService` deterministically projects a grounded concept into one or more CDM rows via `omop-semantics`. Not part of `app.services` — see [SemanticProjectionService](../services/semantic_projection.md) for why.
|
|
60
|
-
|
|
61
|
-
::: groundworkers.services.semantic_projection
|
|
@@ -38,7 +38,7 @@ Return a serialized OMOP concept from a known identifier.
|
|
|
38
38
|
|
|
39
39
|
### `get_ancestors(...)` and `get_descendants(...)`
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
Read the stored `concept_ancestor` table with bounded minimum separation and serialized results. `get_descendants(...)` can also filter exact concept class IDs before paging; unpaged and paged results use the same stored rows.
|
|
42
42
|
|
|
43
43
|
### `get_edges(...)` and `get_neighbors(...)`
|
|
44
44
|
|
|
@@ -44,7 +44,11 @@ Resolver tiers are tried in this order:
|
|
|
44
44
|
3. embedding retrieval, when an embedding client is wired into `OmopGraphAdapter`
|
|
45
45
|
4. partial label and synonym matches, when the search space is already constrained enough to keep them practical
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Omit `parent_ids` or pass an empty sequence to ground without an ancestry constraint. Domain and vocabulary constraints still apply. With a non-empty `parent_ids`, results must be descendants of at least one listed concept.
|
|
48
|
+
|
|
49
|
+
### Ground a coded answer
|
|
50
|
+
|
|
51
|
+
Pass `question_concept_id` to `ground()` or `async_ground()` with the answer as the query. The service checks the question's vocabulary answer list and returns the listed concepts with their own vocabulary flags. Use `grounding_explanation.answer_status` to distinguish a match from candidates returned for review. See [Ground an answer](../tools/search.md#ground-an-answer) for the statuses and lookup rules.
|
|
48
52
|
|
|
49
53
|
## Relationship to transports
|
|
50
54
|
|
|
@@ -38,6 +38,12 @@ Case-insensitive exact match of `query` against `concept_name` and (when `includ
|
|
|
38
38
|
|
|
39
39
|
`standard_only` defaults to `False`. Non-standard concepts often have better lexical coverage (trade names, source codes, regional synonyms) than their standard equivalents; filtering them out in the search step loses those signals. Use `navigate_to_standard` afterward to resolve non-standard results.
|
|
40
40
|
|
|
41
|
+
### `match_within`
|
|
42
|
+
|
|
43
|
+
Pass an explicit set of concept IDs in `ConceptFilter.concept_ids`. The service reads the eligible concepts and their synonyms in one query, then checks for an exact code, an exact name, an exact synonym, and a normalised name or synonym in that order. The result gives the first matching step and its matched terms. It also carries the full eligible set for callers that need to show the available choices.
|
|
44
|
+
|
|
45
|
+
`normalize_label_for_matching()` is the normaliser for names and synonyms. Compared with the default `NormalizationProfile.VERBATIM` settings, it keeps words such as Unknown and Other, joins letters separated by punctuation, and preserves signs and numbers. For example, `Non-reactive` becomes `nonreactive` and `-1.25` stays `-1.25`. Codes are compared as written.
|
|
46
|
+
|
|
41
47
|
### `search_normalized`
|
|
42
48
|
|
|
43
49
|
```python
|
|
@@ -69,22 +69,35 @@ Returns stored non-self ancestors up to minimum separation `max_depth` (default
|
|
|
69
69
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
|
-
Ancestry is read directly from the stored OMOP closure, with non-self
|
|
73
|
-
zero-separation ancestors retained. `max_depth` accepts 0..20 and measures stored
|
|
74
|
-
minimum separation; invalid values are rejected. The response preserves
|
|
75
|
-
`ancestors` and reports `ancestry_source`, `distance_metric`, effective `max_depth`
|
|
76
|
-
and `include_self=false`. A zero-distance link does not imply interchangeability.
|
|
77
|
-
Parent/child primitives and descendant traversal keep their existing semantics.
|
|
72
|
+
Ancestry is read directly from the stored OMOP closure, with non-self zero-separation ancestors retained. `max_depth` accepts 0..20 and measures stored minimum separation; invalid values are rejected. The response preserves `ancestors` and reports `ancestry_source`, `distance_metric`, effective `max_depth` and `include_self=false`. A zero-distance link does not imply interchangeability. Parent/child primitives expose direct graph relationships. Descendant results use the stored `concept_ancestor` table.
|
|
78
73
|
|
|
79
74
|
## `concept_descendants`
|
|
80
75
|
|
|
81
|
-
Returns descendants
|
|
76
|
+
Returns descendants from the stored `concept_ancestor` table (default depth 3, range 1..10). `depth` is the stored minimum separation, not a count of graph relationship hops. Results are ordered by depth and then concept ID. Use `limit` (default 50, range 1..500) and `offset` (default 0, minimum 0) to page through the stored ancestry. `concept_class_ids` optionally filters by exact `concept_class_id` before paging; `total` counts only matching descendants. For drug concepts, filter by classes such as `["Clinical Drug"]` because greater depth does not mean greater drug specificity. Unknown class IDs are rejected.
|
|
82
77
|
|
|
83
78
|
```json
|
|
84
|
-
{"concept_id":
|
|
79
|
+
{"concept_id": 1503297, "max_depth": 3, "limit": 50, "offset": 0, "concept_class_ids": ["Clinical Drug"]}
|
|
85
80
|
```
|
|
86
81
|
|
|
87
|
-
**Response**:
|
|
82
|
+
**Response**:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"concept_id": 441484,
|
|
87
|
+
"descendants": [
|
|
88
|
+
{"concept_id": 441485, "depth": 1},
|
|
89
|
+
{"concept_id": 441486, "depth": 1}
|
|
90
|
+
],
|
|
91
|
+
"total": 12,
|
|
92
|
+
"returned": 2,
|
|
93
|
+
"truncated": true,
|
|
94
|
+
"limit": 50,
|
|
95
|
+
"offset": 0,
|
|
96
|
+
"max_depth": 2
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`total` counts all descendants within `max_depth`; `truncated` is true when more rows remain after the returned page. Results are ordered by minimum depth, then `concept_id`.
|
|
88
101
|
|
|
89
102
|
---
|
|
90
103
|
|
|
@@ -140,7 +153,7 @@ Returns the shortest path between two concepts traversing only identity (and opt
|
|
|
140
153
|
|
|
141
154
|
All parameters except `source_id` and `target_id` are optional.
|
|
142
155
|
|
|
143
|
-
`allow_hierarchical_traversal=false` (default): only IDENTITY predicates
|
|
156
|
+
`allow_hierarchical_traversal=false` (default): only IDENTITY predicates, including `Maps to`, `Concept same_as`, cross-vocabulary equivalence and replacement links. `Concept poss_eq` is an ASSOCIATION predicate and is excluded.
|
|
144
157
|
|
|
145
158
|
`allow_hierarchical_traversal=true`: also allows HIERARCHY predicates (`Is a` / `Subsumes`). A path may then step up or down the ancestry chain; the connection may be at a broader level of abstraction.
|
|
146
159
|
|
|
@@ -307,7 +320,7 @@ Use the ancestor/descendant tools for the usual “what is this a kind of?” qu
|
|
|
307
320
|
|
|
308
321
|
## `concept_map_to_standard`
|
|
309
322
|
|
|
310
|
-
|
|
323
|
+
Resolves a vocabulary/code pair through all IDENTITY-type relationship edges. These include `Maps to value` and `Maps to unit`, so standard value or unit targets can appear alongside the `Maps to` target. For `Maps to` targets alone, use `concept_navigate_to_standard` with the source concept ID.
|
|
311
324
|
|
|
312
325
|
```json
|
|
313
326
|
{"vocabulary_id": "ICD10CM", "concept_code": "C34.1"}
|
|
@@ -10,7 +10,7 @@ It is a thin wrapper over `DomainService`.
|
|
|
10
10
|
|
|
11
11
|
## `domain_classify`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Uses a language model to guess the domain of each field from its label and at most the first 10 example values.
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
@@ -25,7 +25,7 @@ Classifies field labels into OMOP domains using the label text and any example r
|
|
|
25
25
|
|
|
26
26
|
`label_values` is required. It maps each field label to a list of example response-value strings. Use an empty list when no values are known.
|
|
27
27
|
|
|
28
|
-
`model_name` is optional and
|
|
28
|
+
`model_name` is optional and accepts only the configured chat model or null.
|
|
29
29
|
|
|
30
30
|
**Response:**
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ Classifies field labels into OMOP domains using the label text and any example r
|
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Assignments with null or invalid domain values are omitted. There is no confidence score or confidence threshold, and model-returned label keys are not checked against the input labels.
|
|
43
43
|
|
|
44
44
|
Valid returned domains are:
|
|
45
45
|
|
|
@@ -66,7 +66,7 @@ Prefer text tools when you need to normalize or decompose clinical phrases. Pref
|
|
|
66
66
|
|
|
67
67
|
| Error code | Condition |
|
|
68
68
|
|---|---|
|
|
69
|
-
| `BACKEND_UNAVAIL` | LLM API unreachable
|
|
69
|
+
| `BACKEND_UNAVAIL` | Configured LLM API unreachable or authentication failure |
|
|
70
70
|
| `QUERY_ERROR` | Model API error or response could not be parsed |
|
|
71
71
|
|
|
72
72
|
## Typical downstream use
|
|
@@ -70,6 +70,8 @@ Encodes a text query on the fly and returns the nearest concepts by vector simil
|
|
|
70
70
|
|
|
71
71
|
All parameters except `query` are optional.
|
|
72
72
|
|
|
73
|
+
With `standard_only=true`, search can retrieve non-standard concepts and then replace them with standard OMOP `Maps to` targets in the requested domain. Mapped candidates identify their source and embedding similarity in `reached_via`. A warning names up to three targets outside the requested domain. A standard-only lookup adds candidates if the wider search found fewer distinct in-domain standard hits than the requested `limit`.
|
|
74
|
+
|
|
73
75
|
!!! warning "Requires a configured embedding model"
|
|
74
76
|
`embedding_search` must encode the query string using a live embedding model.
|
|
75
77
|
Configure `embedding_model_name` in `[tools.groundworkers]` and give its
|
|
@@ -94,6 +96,8 @@ Encodes and searches multiple query strings in one provider/index operation. The
|
|
|
94
96
|
|
|
95
97
|
All queries in a call share the same domain, vocabulary, model, and concept filters. Partition queries before calling when those constraints differ. The MCP wrapper accepts at most 256 queries; `batch_size` is the provider batch size and is bounded to 1–128.
|
|
96
98
|
|
|
99
|
+
With `standard_only=true`, each query uses the same post-filter as `embedding_search`. The batch returns a flat `warnings` list, even when empty. Each warning begins with the query's one-based position and text.
|
|
100
|
+
|
|
97
101
|
## `embedding_encode`
|
|
98
102
|
|
|
99
103
|
Encodes a text string into one query embedding vector.
|
|
@@ -115,4 +119,4 @@ Encodes a text string into one query embedding vector.
|
|
|
115
119
|
}
|
|
116
120
|
```
|
|
117
121
|
|
|
118
|
-
Like `embedding_search`, this requires a configured `embedding_model_name` and a live provider client.
|
|
122
|
+
Like `embedding_search`, this requires a configured `embedding_model_name` and a live provider client. Encoding accepts only that configured live model, even when other models are registered for stored-vector operations.
|
|
@@ -6,7 +6,7 @@ The knowledge tools are registered when at least one packs root is available. `k
|
|
|
6
6
|
|
|
7
7
|
## `knowledge_catalogue`
|
|
8
8
|
|
|
9
|
-
Find packs whose applicability matches the supplied context. Omit filters to list all discovered packs.
|
|
9
|
+
Find packs whose applicability matches the supplied context. Begin mapping and review jobs by discovering applicable packs with the involved domains, then load them before choosing candidates. Omit filters to list all discovered packs.
|
|
10
10
|
|
|
11
11
|
```json
|
|
12
12
|
{
|
|
@@ -31,13 +31,13 @@ flowchart TD
|
|
|
31
31
|
|
|
32
32
|
## `concept_ground` vs mapping tools
|
|
33
33
|
|
|
34
|
-
`concept_ground`
|
|
34
|
+
Start source-term searches with `concept_candidate_bundle`. Use `concept_ground` for a fast lead from the first matching resolver tier.
|
|
35
35
|
|
|
36
36
|
The mapping tools are better when you want to inspect evidence and make an explicit selection.
|
|
37
37
|
|
|
38
38
|
| If you want... | Prefer... |
|
|
39
39
|
|---|---|
|
|
40
|
-
|
|
|
40
|
+
| A fast lead from the first matching tier | `concept_ground` |
|
|
41
41
|
| Multiple retrieval channels in one packet | `concept_candidate_bundle` |
|
|
42
42
|
| Deterministic normalized matching before ranked retrieval | `concept_search_normalized` |
|
|
43
43
|
| Rich context for a selected concept | `concept_mapping_context` |
|
|
@@ -66,7 +66,7 @@ Useful response fields:
|
|
|
66
66
|
|
|
67
67
|
## `concept_candidate_bundle`
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
The default source-term search builds one evidence packet by combining:
|
|
70
70
|
|
|
71
71
|
- exact search
|
|
72
72
|
- normalized search
|
|
@@ -90,11 +90,20 @@ Builds one evidence packet by combining:
|
|
|
90
90
|
|
|
91
91
|
Representative response sections:
|
|
92
92
|
|
|
93
|
-
- `channels`
|
|
93
|
+
- `channels`: each MCP channel contains only `available` and `count`
|
|
94
94
|
- `standardized_candidates`
|
|
95
95
|
- `candidate_union`
|
|
96
96
|
- `warnings`
|
|
97
97
|
|
|
98
|
+
In MCP, `channels` has the shape `{"exact": {"available": true, "count": 2}}`. Each count describes the returned rows for that channel before the merged-list limit. With `standard_only=true`, the count reflects post-filtering, deduplication within the channel, and its `per_channel_limit`. The direct Python service and REST endpoint return the channel result lists.
|
|
99
|
+
|
|
100
|
+
With `standard_only=true`, retrieval can find non-standard sources. Groundworkers replaces those hits with their standard OMOP `Maps to` targets in the requested domain and deduplicates the results. For each mapped candidate, `retrieved_by` includes the source retrieval channels and `maps_to`. Each `reached_via` entry identifies the source concept, its vocabulary and the channel that found it. Embedding entries also include similarity when available. When a mapping leads outside the requested domain, `warnings` names up to three such targets with their source names.
|
|
101
|
+
|
|
102
|
+
When `include_standard_mappings=true`, `standardized_candidates` describes the standard mappings of non-standard sources from the candidate union before post-filtering.
|
|
103
|
+
|
|
104
|
+
Hierarchy previews and relationship summaries enrich only the first five
|
|
105
|
+
merged candidates.
|
|
106
|
+
|
|
98
107
|
## `concept_nearest_standard_ancestor`
|
|
99
108
|
|
|
100
109
|
Finds the nearest active standard ancestor using stored OMOP separation, abstaining on equal-distance ties. Accepts either a free-text query or an explicit `concept_id`. Useful when a source concept is too specific or non-standard and you need a broader standard parent.
|
|
@@ -107,6 +116,8 @@ Finds the nearest active standard ancestor using stored OMOP separation, abstain
|
|
|
107
116
|
}
|
|
108
117
|
```
|
|
109
118
|
|
|
119
|
+
In query mode, `vocabulary_id` and `parent_ids` constrain grounded seeds; they do not filter ancestor targets. `candidate_limit` bounds the retrieved seed list, and only its first candidate is used for ancestor selection.
|
|
120
|
+
|
|
110
121
|
Useful response fields:
|
|
111
122
|
|
|
112
123
|
- `seed_candidates`
|
|
@@ -141,6 +152,20 @@ Possible sections include:
|
|
|
141
152
|
- `embedding_neighbors`
|
|
142
153
|
- `warnings`
|
|
143
154
|
|
|
155
|
+
Set `include_descendants=true` to include up to `descendant_limit` rows (default 10, range 1..10) from three stored hierarchy levels. `descendant_scope` reports `max_depth`, `limit`, the full `total`, and whether more rows remain in `truncated`. The row limit does not change which descendants qualify.
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"descendants": [{"concept_id": 441484, "depth": 1}],
|
|
160
|
+
"descendant_scope": {
|
|
161
|
+
"max_depth": 3,
|
|
162
|
+
"limit": 1,
|
|
163
|
+
"total": 12,
|
|
164
|
+
"truncated": true
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
144
169
|
## `concept_map_to_value`
|
|
145
170
|
|
|
146
171
|
Finds `Maps to value` relationships for a source vocabulary ID and concept code.
|
|
@@ -175,7 +200,9 @@ Expands a simple list of concept items with support for:
|
|
|
175
200
|
|
|
176
201
|
## `mapping_evaluate_candidates`
|
|
177
202
|
|
|
178
|
-
Compares predicted mappings with a reference mapping set using `
|
|
203
|
+
Compares predicted mappings with a reference mapping set using hit-at-k agreement: the reference ID must occur within the first `top_k` predicted IDs. Omitting `top_k` uses all predictions. IDs are compared in memory without checking the vocabulary.
|
|
204
|
+
|
|
205
|
+
Rows are paired by `source_key`, `source_id` or `source_term`, in that order. Reference rows require `reference_standard_concept_id`; prediction rows use a ranked `predicted_standard_concept_ids` list (or `predicted_concept_ids`).
|
|
179
206
|
|
|
180
207
|
```json
|
|
181
208
|
{
|
|
@@ -221,51 +248,22 @@ context = mapping.concept_mapping_context(201826)
|
|
|
221
248
|
|
|
222
249
|
## `concept_shared_standard_ancestor`
|
|
223
250
|
|
|
224
|
-
Read-only, deterministic common-ancestor selection for alternative concept IDs
|
|
225
|
-
representing one source record. It needs a configured vocabulary/graph, not an
|
|
226
|
-
embedding or LLM backend. Do not use separate combination ingredients as if they
|
|
227
|
-
were alternative product candidates.
|
|
251
|
+
Read-only, deterministic common-ancestor selection for alternative concept IDs representing one source record. It needs a configured vocabulary/graph, not an embedding or LLM backend. Do not use separate combination ingredients as if they were alternative product candidates.
|
|
228
252
|
|
|
229
|
-
Supply `concept_ids` (2..200 positive strict integers, at least two distinct),
|
|
230
|
-
`max_depth` (0..20, default 5), optional `concept_class_ids` / `vocabulary_ids`,
|
|
231
|
-
and display `limit` (1..50, default 10) / `offset` (default 0). Filters must use
|
|
232
|
-
exact installed catalogue IDs; null is unrestricted, empty/blank/unknown filters
|
|
233
|
-
are invalid. RxNorm alone does not include RxNorm Extension.
|
|
253
|
+
Supply `concept_ids` (2..200 positive strict integers, at least two distinct), `max_depth` (0..20, default 5), optional `concept_class_ids` / `vocabulary_ids`, and display `limit` (1..50, default 10) / `offset` (default 0). Filters must use exact installed catalogue IDs; null is unrestricted, empty/blank/unknown filters are invalid. RxNorm alone does not include RxNorm Extension.
|
|
234
254
|
|
|
235
255
|
```json
|
|
236
256
|
{"concept_ids": [40166038, 41038881], "concept_class_ids": ["Clinical Drug"], "vocabulary_ids": ["RxNorm", "RxNorm Extension"], "max_depth": 5}
|
|
237
257
|
```
|
|
238
258
|
|
|
239
|
-
The response is `{error, code, message, data}`. On success `data.status` is
|
|
240
|
-
`selected`, `ambiguous`, `no_match`, or `incompatible_inputs`. `found` indicates a
|
|
241
|
-
unique selection, so it is false for an ancestry tie. Eligible targets must be
|
|
242
|
-
active standard concepts in the same domain as every input. The response echoes
|
|
243
|
-
constraints, complete-set counts and per-input distances for any selected target.
|
|
259
|
+
The response is `{error, code, message, data}`. On success `data.status` is `selected`, `ambiguous`, `no_match`, or `incompatible_inputs`. `found` indicates a unique selection, so it is false for an ancestry tie. Eligible targets must be active standard concepts in the same domain as every input. The response echoes constraints, complete-set counts and per-input distances for any selected target.
|
|
244
260
|
|
|
245
|
-
Distances are stored minimum separation from `CONCEPT_ANCESTOR`. Include each
|
|
246
|
-
seed itself at zero; retain distinct zero-separation ancestors. Such a connection
|
|
247
|
-
does not prove clinical interchangeability. Nearest means the lowest maximum
|
|
248
|
-
distance across all inputs. Equal nearest distances abstain. Display pagination
|
|
249
|
-
never changes that computation; `limit=1` cannot force a selection. A selected
|
|
250
|
-
concept is returned independently of the candidate display page.
|
|
261
|
+
Distances are stored minimum separation from `CONCEPT_ANCESTOR`. Include each seed itself at zero; retain distinct zero-separation ancestors. Such a connection does not prove clinical interchangeability. Nearest means the lowest maximum distance across all inputs. Equal nearest distances abstain. Display pagination never changes that computation; `limit=1` cannot force a selection. A selected concept is returned independently of the candidate display page.
|
|
251
262
|
|
|
252
|
-
Native MCP argument/schema errors set `isError=true`. Errors from the service
|
|
253
|
-
use the typed envelope with `error=true` and `data=null`. Backend failure is never
|
|
254
|
-
a no-match. Text and structured payloads are normalized to the same envelope.
|
|
263
|
+
Native MCP argument/schema errors set `isError=true`. Errors from the service use the typed envelope with `error=true` and `data=null`. Backend failure is never a no-match. Text and structured payloads are normalized to the same envelope.
|
|
255
264
|
|
|
256
265
|
### Ancestry consistency changes
|
|
257
266
|
|
|
258
|
-
`concept_nearest_standard_ancestor` and hierarchy previews now use the same stored
|
|
259
|
-
|
|
260
|
-
the
|
|
261
|
-
is disclosed as `seed_selection_policy`; source-concept ambiguity remains the
|
|
262
|
-
agent's responsibility. Maps-to fallback is labelled `evidence_route=maps_to`,
|
|
263
|
-
with multiple targets left ambiguous. Missing relationship paths do not invalidate
|
|
264
|
-
stored ancestor evidence and are reported separately.
|
|
265
|
-
|
|
266
|
-
`concept_mapping_context` uses `ancestor_limit` only as a display count (1..50).
|
|
267
|
-
`ancestor_max_depth` independently sets stored separation (0..20, default 5).
|
|
268
|
-
`ancestor_scope` reports the full count and whether the display was truncated.
|
|
269
|
-
Ancestor bounds now reject invalid values rather than silently clamping them.
|
|
270
|
-
For the runtime contract and bounded relationship-neighborhood behavior see
|
|
271
|
-
[stored ancestry and shared targets](../adapters/ancestry.md).
|
|
267
|
+
`concept_nearest_standard_ancestor` and hierarchy previews now use the same stored ancestry as `concept_ancestors`. Nearest-standard ties abstain instead of selecting the first row. Query mode still starts from the first grounded candidate, which is disclosed as `seed_selection_policy`; source-concept ambiguity remains the agent's responsibility. Maps-to fallback is labelled `evidence_route=maps_to`, with multiple targets left ambiguous. Missing relationship paths do not invalidate stored ancestor evidence and are reported separately.
|
|
268
|
+
|
|
269
|
+
`concept_mapping_context` uses `ancestor_limit` only as a display count (1..50). `ancestor_max_depth` independently sets stored separation (0..20, default 5). `ancestor_scope` reports the full count and whether the display was truncated. Ancestor bounds reject invalid values. Descendants use a fixed stored-ancestry depth of 3; `descendant_limit` defaults to 10 (1..10), and `descendant_scope` reports the full count and truncation. `neighbor_limit` defaults to 15 (1..100), and `embedding_neighbor_limit` defaults to 10 (1..20). The MCP schema rejects values outside these ranges; direct in-process calls retain the runtime clamps. For the runtime contract and bounded relationship-neighborhood behavior see [stored ancestry and shared targets](../adapters/ancestry.md).
|