groundworkers 0.11.0__tar.gz → 0.13.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.11.0 → groundworkers-0.13.0}/PKG-INFO +2 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/README.md +1 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/config/groundworkers.example.toml +0 -3
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/architecture.md +0 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/concepts.md +3 -11
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/development/integration.md +14 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/development/plugins.md +21 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/from-scratch.md +1 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/index.md +1 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/reference/ref_services.md +0 -6
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/reference/ref_tools.md +0 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/grounding.md +5 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/vocab.md +6 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/embedding.md +3 -1
- groundworkers-0.13.0/docs/tools/knowledge.md +102 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/mapping.md +7 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/overview.md +4 -6
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/search.md +25 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/system.md +15 -5
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/configuration.md +24 -26
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/integrations.md +1 -9
- {groundworkers-0.11.0 → groundworkers-0.13.0}/mkdocs.yaml +0 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/pyproject.toml +0 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/_omop_graph_ancestry.py +12 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/omop_emb.py +56 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/omop_graph.py +9 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/app.py +20 -5
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/ancestry.py +2 -1
- groundworkers-0.13.0/src/groundworkers/base/concept_ids.py +3 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/results.py +20 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/server.py +44 -7
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/bootstrap.py +5 -7
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/config.py +6 -12
- groundworkers-0.13.0/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +16 -0
- groundworkers-0.13.0/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +21 -0
- groundworkers-0.13.0/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +15 -0
- groundworkers-0.13.0/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +22 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/plugins.py +44 -21
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/server.py +8 -12
- groundworkers-0.13.0/src/groundworkers/services/answer_grounding.py +167 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/domain.py +1 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/graph.py +4 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/grounding.py +94 -92
- groundworkers-0.13.0/src/groundworkers/services/knowledge/__init__.py +33 -0
- groundworkers-0.13.0/src/groundworkers/services/knowledge/catalogue.py +293 -0
- groundworkers-0.13.0/src/groundworkers/services/knowledge/models.py +189 -0
- groundworkers-0.13.0/src/groundworkers/services/knowledge/slots.py +151 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/mapping.py +22 -5
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/service.py +1 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/vocab.py +231 -15
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/concept_tools.py +10 -9
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/embedding_tools.py +40 -26
- groundworkers-0.13.0/src/groundworkers/tools/knowledge_tools.py +181 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/mapping_tools.py +20 -9
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/resolver_tools.py +19 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/search_tools.py +2 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/system_tools.py +25 -17
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/toolsets.py +0 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/transports/rest/api.py +8 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/transports/rest/models.py +6 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/app.py +2 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/conftest.py +41 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/test_omop_duckdb_runtime.py +14 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/test_omop_postgres_runtime.py +14 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/agent_surface.py +1 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/agent_surface_reference.json +98 -55
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/toolset_profiles.json +1 -2
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/toolsets.json +0 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/test_agent_surface.py +0 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/test_bootstrap_config.py +23 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/test_rest_api.py +124 -38
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/test_server_registry.py +22 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_ancestry_mcp_contract.py +2 -0
- groundworkers-0.13.0/tests/unit/test_answer_grounding.py +324 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_concept_tools.py +18 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_embedding_tools.py +25 -5
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_grounding_constraints.py +8 -8
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_knowledge_catalogue.py +14 -18
- groundworkers-0.13.0/tests/unit/test_knowledge_slots.py +325 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_mapping_context.py +1 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_mapping_service.py +6 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_mapping_tools.py +6 -1
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_plugin_lint_cli.py +3 -3
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_plugins.py +76 -39
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_server_instructions.py +2 -9
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_classifier.py +17 -17
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_document_formats.py +7 -6
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_router.py +14 -14
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_service.py +9 -9
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_system_tools.py +41 -8
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_toolsets.py +22 -17
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_tui_app.py +4 -4
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_vocab_service.py +58 -1
- groundworkers-0.13.0/tests/unit/test_vocabulary_facts.py +75 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/uv.lock +0 -174
- groundworkers-0.11.0/docs/services/semantic_projection.md +0 -153
- groundworkers-0.11.0/docs/tools/knowledge.md +0 -46
- groundworkers-0.11.0/docs/tools/semantic_projection.md +0 -127
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +0 -57
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +0 -22
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +0 -90
- groundworkers-0.11.0/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +0 -28
- groundworkers-0.11.0/src/groundworkers/services/knowledge/__init__.py +0 -15
- groundworkers-0.11.0/src/groundworkers/services/knowledge/catalogue.py +0 -177
- groundworkers-0.11.0/src/groundworkers/services/knowledge/models.py +0 -99
- groundworkers-0.11.0/src/groundworkers/services/semantic_projection/__init__.py +0 -25
- groundworkers-0.11.0/src/groundworkers/services/semantic_projection/definitions.py +0 -319
- groundworkers-0.11.0/src/groundworkers/services/semantic_projection/models.py +0 -80
- groundworkers-0.11.0/src/groundworkers/services/semantic_projection/service.py +0 -147
- groundworkers-0.11.0/src/groundworkers/tools/knowledge_tools.py +0 -203
- groundworkers-0.11.0/src/groundworkers/tools/semantic_projection_tools.py +0 -79
- groundworkers-0.11.0/tests/unit/test_semantic_projection_service.py +0 -333
- groundworkers-0.11.0/tests/unit/test_semantic_projection_tools.py +0 -119
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.githooks/pre-commit +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/CONTRIBUTING.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/ISSUE_TEMPLATE/not_working.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/release-drafter.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/workflows/ci.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/workflows/docs.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/workflows/merge.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.github/workflows/publish.yml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.gitignore +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/.python-version +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/CHANGELOG.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/Makefile +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/config/docker-compose.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/config/groundworkers.duckdb.example.toml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/config/groundworkers_db.env +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/adapters/ancestry.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/adapters/cdm.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/adapters/omop_emb.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/adapters/omop_graph.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/demo.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/development/extending.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/js/asciinema-init.js +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/js/mermaid-init.js +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/plugins.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/reference/ref_adapters.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/reference/ref_base.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/reference/ref_config.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/domain.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/graph.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/mapping.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/source_planning.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/services/text.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/01_create_config.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/02_empty_config.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/03_config_wizard.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/04_test_cnx.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/04_warnings.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/05_graph_setup.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/06_load_predicates.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/07_vector_store.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/08_register_embedding.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/10_setup_complete.png +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/demo.cast +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/static/demo.short.cast +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/concept.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/domain.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/resolver.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/source_planning.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/tools/text.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/installation.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/prompt-handling.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/setup_journey.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/testing.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/docs/usage/upgrading-from-0.6.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/_env.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/cdm.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/adapters/llm.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/configuration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/configuration_provider.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/databases.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_artifacts.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_capability.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_coverage.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_population.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_reconciliation.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_registry.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/embedding_setup.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/graph_maintenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/integration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/maintenance_runs.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/model_inventory.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/models.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/performance_maintenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/plugin_configuration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/application/setup/runtime_setup.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/concept_payload.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/database.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/domain_names.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/errors.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/base/sql.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/domain-routing/guidance.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/domain-routing/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/domain-routing/rules.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/rules.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/history-of-event/guidance.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/history-of-event/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/guidance.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/measurement-concept-granularity/rules.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/rules.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/omop_domains.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-request.schema.json +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-result.schema.json +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/examples.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/instructions.md +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/role-catalogue.yaml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/server_instructions.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/ancestry.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/relationship_neighborhood.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/assisted.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/canonical_headers.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/classifier.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposer.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/csv_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/ddl_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/docx_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/json_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/pdf_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/xlsx_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/decomposers/xml_.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/detector.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/models.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/normalisation.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/provenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/router.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/serialisation.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/source_profiles/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/source_profiles/base.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/source_profiles/redcap.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/source_profiles/registry.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/source_planning/warnings.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/text/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/text/models.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/text/prompts.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/services/text/service.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/domain_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/source_planning_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tools/text_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/transports/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/transports/rest/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/pages/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/pages/base.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/pages/plugin_config.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/pages/plugin_setup.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/pages/setup.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/base.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/chat.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/configuration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/database.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/embeddings.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/graph.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/llm_provider.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/overview.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/performance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/presenters/runs.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/routes.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/state.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/config_location.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/embedding_store.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/embeddings.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/graph_maintenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/performance_maintenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/src/groundworkers/tui/wizards/plugin_setup.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/test_omop_emb_adapter.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/test_omop_emb_contract.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/integration/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/agent_surface_budget.json +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/embedding_contract_fixture.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/omop.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/postgres_ci_config.toml +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/seed_postgres_fixture.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/stack_config.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/support/wheel_smoke.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/__init__.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_concept_payload.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_config_location_wizard.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_configuration_provider.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_domain_names.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_domain_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_embedding_population_scope.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_embedding_reconciliation.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_embedding_registry_step.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_env_bootstrap.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_error_boundary.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_graph_maintenance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_graph_maintenance_wizard.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_graph_service.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_graph_status.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_grounding_service.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_llm_adapter.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_maintenance_runs_phase2.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_migration_boundaries.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_normalized_index.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_omop_domains.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_omop_emb_adapter.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_omop_emb_setup_config.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_performance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_performance_maintenance_wizard.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_phase3_overview.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_plugin_configuration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_predicate_mapping_classification.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_prompt_packs.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_provider_fields.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_relationship_edges.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_required_integration_preflight.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_required_test_gate.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_schema_resolution.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_artifacts_and_coverage.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_configuration.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_configuration_section.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_databases.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_embeddings.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_provider_conformance.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_runtime.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_truth.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_setup_write_flows.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_assisted_classifier.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_decomposer.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_detector.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_models.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_normalisation.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_source_planning_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_split_classified_edges.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_stack_config_fixtures.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_stored_ancestry.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_text_service.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_text_tools.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_tui_state.py +0 -0
- {groundworkers-0.11.0 → groundworkers-0.13.0}/tests/unit/test_vector_store_setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: groundworkers
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.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
|
|
@@ -11,7 +11,6 @@ Requires-Dist: omop-alchemy<4,>=3.0.0
|
|
|
11
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
|
|
@@ -149,6 +148,7 @@ Owned here
|
|
|
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
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 |
|
|
151
|
+
| Knowledge pack discovery and structured slots | [Knowledge tools](docs/tools/knowledge.md) | Mapping agents and plugins |
|
|
152
152
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
153
153
|
|
|
154
154
|
Consumed from elsewhere
|
|
@@ -86,6 +86,7 @@ Owned here
|
|
|
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
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
|
+
| Knowledge pack discovery and structured slots | [Knowledge tools](docs/tools/knowledge.md) | Mapping agents and plugins |
|
|
89
90
|
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
90
91
|
|
|
91
92
|
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
|
|
|
@@ -82,7 +79,7 @@ Source planning analyses an input before ingestion. It decomposes the input, nor
|
|
|
82
79
|
|
|
83
80
|
The deterministic `source_plan` path uses format and header evidence. Call `source_plan_assisted` as a separate step when that evidence is insufficient; it can use the configured chat model. The result records whether the assisted tier was used.
|
|
84
81
|
|
|
85
|
-
Knowledge packs
|
|
82
|
+
Source planning describes the structure of an input. Knowledge packs supply conventions you can use to interpret it or review a mapping. For example, source planning can identify a column of answer codes. A pack for the instrument can tell you which of those codes mean an answer is missing. Use `knowledge_catalogue` with the context you know, such as a domain or an exact instrument version, then read the selected pack with `knowledge_pack`. You can do this before or after source planning. [Work with knowledge packs](tools/knowledge.md)
|
|
86
83
|
|
|
87
84
|
## Prompt guidance and user decisions
|
|
88
85
|
|
|
@@ -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`:
|
|
@@ -96,7 +96,7 @@ own toolsets. When omitted or empty during plugin registration, the server uses
|
|
|
96
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:
|
|
97
97
|
|
|
98
98
|
```python
|
|
99
|
-
from groundworkers.
|
|
99
|
+
from groundworkers.plugins import PromptArgument
|
|
100
100
|
|
|
101
101
|
server.prompt(
|
|
102
102
|
"my_pack_workflow",
|
|
@@ -139,6 +139,23 @@ sequenceDiagram
|
|
|
139
139
|
2. Groundworkers' code never imports `my_package` by name. It only expects four things on the object (`name`, optional `PackageConfigBase` class, plus `build` and `register` methods, described above).
|
|
140
140
|
3. The plugin's tools are now callable through the one Groundworkers server.
|
|
141
141
|
|
|
142
|
+
### Use knowledge packs in a plugin
|
|
143
|
+
|
|
144
|
+
Suppose your plugin needs a code map and a set of shape files to prepare a projection runtime. Decide which pack to use from the deployment’s configuration or the job context. Read that pack with `context.knowledge_packs.get_pack(name, layer=...)` so the plugin uses the same selected copy as the MCP tools. A standalone context may omit the reader.
|
|
145
|
+
|
|
146
|
+
Use `PackContent.slots` for the pack’s typed data. For a named map, pass its `entries` to the runtime and keep `sha256` with any provenance you record. Pass the resolved `path` of each shape preset in the order supplied. Your consumer validates the assets for its use. For example, the projection runtime checks that a shape’s registry references and map lookups resolve.
|
|
147
|
+
|
|
148
|
+
Handle a missing pack as `None`. A declared file that fails to load raises `PackSlotError`. See the [slot format and tool responses](../tools/knowledge.md#author-a-pack).
|
|
149
|
+
|
|
150
|
+
## Supported plugin API
|
|
151
|
+
|
|
152
|
+
Import the plugin contract and these host helpers from `groundworkers.plugins`:
|
|
153
|
+
|
|
154
|
+
- `build_app_config` resolves the shared stack configuration for a plugin command.
|
|
155
|
+
- `GroundworkersError` and `embedding_store_error` provide the host's tool error format and embedding store error translation.
|
|
156
|
+
- `PromptArgument` declares named string arguments for an MCP prompt.
|
|
157
|
+
- `Command`, `CommandPlan`, and `CommandStep` describe setup and maintenance work. They require the `groundworkers[tui]` extra.
|
|
158
|
+
|
|
142
159
|
## Package configuration
|
|
143
160
|
|
|
144
161
|
A plugin with scalar and `RefTo` fields receives a setup-console page without any Groundskeeping-aware plugin code:
|
|
@@ -232,4 +249,6 @@ The command prints a JSON report and exits with status 1 if any linter reports a
|
|
|
232
249
|
|
|
233
250
|
## Lifecycle and diagnostics
|
|
234
251
|
|
|
235
|
-
Groundworkers discovers
|
|
252
|
+
Groundworkers discovers plugins once per application build, validates their identities, resolves their configuration, and builds their state. If multiple plugins use the same name, Groundworkers skips all of them. If MCP registration fails, Groundworkers discards the tools, prompts, and resources added during that registration.
|
|
253
|
+
|
|
254
|
+
`system_status` and `groundworkers --describe` list active plugins and short reasons for skipped plugins. Use the host logs for details.
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
+
Compare `returned` with `requested` before treating a short list as evidence that nothing fits. `requested` is the effective limit (1–50), and `returned` counts the results after filtering. A short list adds a warning. It can mean fewer concepts match, the index scan stopped early, or standard-only filtering removed results.
|
|
74
|
+
|
|
73
75
|
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
76
|
|
|
75
77
|
!!! warning "Requires a configured embedding model"
|
|
@@ -96,7 +98,7 @@ Encodes and searches multiple query strings in one provider/index operation. The
|
|
|
96
98
|
|
|
97
99
|
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.
|
|
98
100
|
|
|
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.
|
|
101
|
+
With `standard_only=true`, each query uses the same post-filter as `embedding_search`. `result_counts[i]` gives `requested` and `returned` for `results[i]`. The batch returns a flat `warnings` list, even when empty. Each warning begins with the query's one-based position and text.
|
|
100
102
|
|
|
101
103
|
## `embedding_encode`
|
|
102
104
|
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Work with knowledge packs
|
|
2
|
+
|
|
3
|
+
Suppose you are mapping a lab test. The source gives the analyte and specimen, and the vocabulary offers several candidates. One candidate also names a test method. How do you decide whether that extra detail is supported? The bundled measurement guidance says to keep the details the source gives and leave an unstated method out of the mapping.
|
|
4
|
+
|
|
5
|
+
A knowledge pack gives you a convention you can consult while making a decision. Groundworkers ships general OMOP and vocabulary guidance. Your team can add packs for particular instruments or deployments. You or your agent choose the applicable guidance and use it to review the candidate evidence.
|
|
6
|
+
|
|
7
|
+
## Use a pack to review a mapping
|
|
8
|
+
|
|
9
|
+
1. **Find the relevant guidance.** Pass the domain you are working in to `knowledge_catalogue`. The catalogue gives you each pack’s name, scope, and origin. For a lab test, look for the bundled `measurement-concept-granularity` pack.
|
|
10
|
+
2. **Read the selected pack.** Pass its name and layer to `knowledge_pack`. Check the guidance against the details you have from the source and the candidate concepts.
|
|
11
|
+
3. **Explain the decision.** In this example, you can record that you kept the analyte and specimen and avoided assuming a method. If the candidates still leave a question open, carry it forward for review.
|
|
12
|
+
|
|
13
|
+
You can ask an agent to do this in ordinary language.
|
|
14
|
+
|
|
15
|
+
> Help me review this lab-test mapping. Find the relevant measurement guidance, show
|
|
16
|
+
> which details each candidate adds or drops, and explain which choice the source supports.
|
|
17
|
+
|
|
18
|
+
If you call the tools directly, start with `knowledge_catalogue`.
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{"domains": ["Measurement"]}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then read the selected pack with `knowledge_pack`.
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{"name": "measurement-concept-granularity", "layer": "core"}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Find the conventions for your source
|
|
31
|
+
|
|
32
|
+
A source system identifies a platform or format. Many different instruments can use the same platform, and each instrument version can assign its own meaning to the answers. If you know the instrument, pass its exact versioned ID with the rest of the context.
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"source_system": "redcap",
|
|
37
|
+
"instrument": "publisher/form@2"
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
A pack with `applicability.instrument` needs the matching ID in a job query, alongside any other filters you supply. If you have only a source system, domain, or section, the result still includes general guidance that matches that context. Omit the job filters to browse every pack, or read the `knowledge://catalogue` resource for the full index. Use `include_local: false` to omit the localisation layer.
|
|
42
|
+
|
|
43
|
+
Check `origin` when you want to know whose copy you are reading. It identifies the bundled or configured root and gives the pack’s directory relative to that root. Configured roots are numbered from zero in load order after duplicate directories have been removed. A bundled pack has a null root index. [Configure knowledge pack roots](../usage/configuration.md#knowledge-packs-knowledge_)
|
|
44
|
+
|
|
45
|
+
## Choose how to record a convention
|
|
46
|
+
|
|
47
|
+
Use `guidance.md` for advice a reviewer can read, and keep any existing rules or examples with it. A structured slot gives a consumer data it can look up by name.
|
|
48
|
+
|
|
49
|
+
| The question you need to answer | Slot |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| Does this source code represent a missing answer, and why? | `null_codes` gives mapping agents the source meaning and a terminology reason. |
|
|
52
|
+
| Which concept ID or numeric value does this source code map to? | `code_maps` gives consumers the named lookup table and a digest that identifies its exact entries. |
|
|
53
|
+
| How should the mapped fields be shaped into OMOP rows? | `shape_presets` points a projection runtime to the catalogue files to compile. |
|
|
54
|
+
|
|
55
|
+
Groundworkers loads and serves the files. The mapping agent uses the null-code list when
|
|
56
|
+
interpreting a field, and the projection runtime checks and applies the shapes and maps selected
|
|
57
|
+
by its caller.
|
|
58
|
+
|
|
59
|
+
## Author a pack
|
|
60
|
+
|
|
61
|
+
Declare the files the pack provides in the `slots` block of `manifest.yaml`. Each path is relative to the pack directory and must resolve to a file inside it.
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
slots:
|
|
65
|
+
null_codes: null-codes.yaml
|
|
66
|
+
code_maps:
|
|
67
|
+
score: maps/score.json
|
|
68
|
+
shape_presets:
|
|
69
|
+
- shapes/base.yaml
|
|
70
|
+
- shapes/overrides.yaml
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
| Slot | File format | `knowledge_pack` response |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| `null_codes` | A YAML mapping from list names to arrays of entries. Each entry has a string `code`, a nonblank `meaning`, and a `reason` with a terminology `system` URI and `code`. Quote codes to preserve leading zeros or an empty string. Codes are unique within each list. | Named lists and their entries. |
|
|
76
|
+
| `code_maps` | One JSON object per map, with unique source-code strings as keys and finite numbers as values. | Each map’s `entries` and `sha256`. The digest comes from compact JSON with sorted keys and ASCII escaping. |
|
|
77
|
+
| `shape_presets` | An ordered list of YAML catalogue files. Each file contains a top-level `shapes` list of mappings. The projection runtime validates the shape definitions when it compiles those files. | Pack-relative filenames in the order declared. |
|
|
78
|
+
|
|
79
|
+
Once the root is configured, use `knowledge_catalogue` to check the pack’s origin and declared
|
|
80
|
+
slots. Read it with `knowledge_pack` to check the null-code lists, map entries, and preset filenames
|
|
81
|
+
it serves.
|
|
82
|
+
|
|
83
|
+
## When a pack is unavailable
|
|
84
|
+
|
|
85
|
+
| What you see | What to check |
|
|
86
|
+
| --- | --- |
|
|
87
|
+
| `NOT_FOUND` | Check the name and layer against the catalogue. If you expected a configured override, check the server log for a malformed or duplicate definition. |
|
|
88
|
+
| `INVALID_INPUT` for a name that appears in multiple layers | Pass the layer listed for the pack you want. |
|
|
89
|
+
| `BACKEND_UNAVAIL` with a slot name | Check the server log for the declared file that is missing or malformed. |
|
|
90
|
+
|
|
91
|
+
A successful read includes the manifest, `guidance`, `rules`, `examples`, and `slots`.
|
|
92
|
+
|
|
93
|
+
## Direct Python use
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
from groundworkers.services.knowledge import KnowledgeCatalogue
|
|
97
|
+
|
|
98
|
+
catalogue = KnowledgeCatalogue.with_bundled()
|
|
99
|
+
selected = catalogue.get_pack("measurement-concept-granularity", layer="core")
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Hosted plugins can read the same catalogue as the MCP tools. See [how to read a pack from a plugin](../development/plugins.md#use-knowledge-packs-in-a-plugin).
|
|
@@ -90,12 +90,17 @@ The default source-term search builds one evidence packet by combining:
|
|
|
90
90
|
|
|
91
91
|
Representative response sections:
|
|
92
92
|
|
|
93
|
-
- `channels
|
|
93
|
+
- `channels` reports which searches ran and how many candidates they found
|
|
94
94
|
- `standardized_candidates`
|
|
95
95
|
- `candidate_union`
|
|
96
96
|
- `warnings`
|
|
97
97
|
|
|
98
|
-
In MCP,
|
|
98
|
+
In MCP, a lexical channel looks like `{"available": true, "count": 2}`. The embedding channel
|
|
99
|
+
looks like `{"available": true, "requested": 5, "returned": 2}` when it finds two of five requested candidates. An available embedding channel adds a warning when it returns fewer candidates than requested. A short list can mean fewer concepts match, the index scan stopped early, or standard-only filtering removed results. An unavailable channel reports zero returned candidates and a warning with the reason it could not run.
|
|
100
|
+
|
|
101
|
+
Channel counts apply before the merged-list limit. With `standard_only=true`, they reflect
|
|
102
|
+
post-filtering, deduplication within each channel, and `per_channel_limit`. The direct Python
|
|
103
|
+
service and REST endpoint also return each channel's result list.
|
|
99
104
|
|
|
100
105
|
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
106
|
|
|
@@ -4,7 +4,7 @@ Text tools document model-requested limits and model-reported fields; mapping to
|
|
|
4
4
|
|
|
5
5
|
MCP mapping tools provide parameter guidance, concise candidate-channel counts and a recovery hint for missing vocabulary codes.
|
|
6
6
|
|
|
7
|
-
The MCP surface is organized by the job a caller is trying to do.
|
|
7
|
+
The MCP surface is organized by the job a caller is trying to do. Core vocabulary and graph tools require the CDM runtime. Embedding, chat, and knowledge-pack tools appear when their prerequisites are available.
|
|
8
8
|
|
|
9
9
|
## Choose a workflow
|
|
10
10
|
|
|
@@ -13,12 +13,12 @@ The MCP surface is organized by the job a caller is trying to do. Tool registrat
|
|
|
13
13
|
| Inspect a known concept or relationship | Concept tools | Deterministic concept records, hierarchy, paths, edges, and standard mappings |
|
|
14
14
|
| Search with a specific retrieval signal | Search tools or embedding tools | Candidate records plus the signal used to retrieve them |
|
|
15
15
|
| Resolve free text with a ranked policy | `concept_ground` | First successful resolver tier, ranked results, and grounding explanation |
|
|
16
|
+
| Resolve an answer within its question's list | [`concept_ground`](search.md#ground-an-answer) with `question_concept_id` | A lexical match or eligible answers for review |
|
|
16
17
|
| Preserve evidence for mapping review | Mapping tools | A candidate union, standard targets, hierarchy, relationships, and evaluation helpers |
|
|
17
18
|
| Prepare noisy clinical text | Text tools | Normalized, decomposed, cleaned, or disambiguated search phrases |
|
|
18
19
|
| Classify structured fields | `domain_classify` | Best-effort OMOP domain hints for later retrieval |
|
|
19
20
|
| Analyze a source artifact before ingest | Source planning tools | Neutral tables, column roles, route decisions, warnings, and provenance |
|
|
20
|
-
| Find
|
|
21
|
-
| Turn a grounded concept into CDM rows | `semantic_project` | Deterministic output rows, links, unresolved fields, or suppression reasons |
|
|
21
|
+
| Find the conventions that apply to a mapping job | [Knowledge tools](knowledge.md) | General mapping guidance and configured instrument or deployment conventions |
|
|
22
22
|
| Check what this deployment can do | System tools and `--describe` | Backend availability, vocabulary catalogue, and registered MCP surfaces |
|
|
23
23
|
|
|
24
24
|
## Tool groups
|
|
@@ -35,7 +35,6 @@ The MCP surface is organized by the job a caller is trying to do. Tool registrat
|
|
|
35
35
|
| Source planning | `source_plan`, `source_plan_assisted` | Source-planning service; assisted path also needs chat |
|
|
36
36
|
| Knowledge | `knowledge_catalogue`, `knowledge_pack` | Bundled or configured packs available |
|
|
37
37
|
| System | `system_status`, `system_vocabulary_catalogue` | Always registered |
|
|
38
|
-
| Semantic projection | `semantic_project` | `semantic_projection_enabled = true` |
|
|
39
38
|
|
|
40
39
|
The source-planning resources `source-planning://canonical-headers`, `source-planning://column-roles`, and `source-planning://ingestion-strategies` are also registered independently of the tool table. Text preprocessing prompts are available through MCP prompt discovery when the server starts.
|
|
41
40
|
|
|
@@ -55,7 +54,6 @@ Tools can belong to several toolsets. `groundworkers --describe` lists each tool
|
|
|
55
54
|
| `llm` | Language-model text helpers. |
|
|
56
55
|
| `source` | Source-file planning. |
|
|
57
56
|
| `knowledge` | Convention packs. |
|
|
58
|
-
| `semantic` | Semantic projection (optional). |
|
|
59
57
|
| `offline` | Evaluation and diagnostics, not intended for agents. |
|
|
60
58
|
|
|
61
59
|
Usage instructions follow the available tools.
|
|
@@ -65,7 +63,7 @@ Selection can exclude toolsets; exclusion wins when a tool also belongs to an in
|
|
|
65
63
|
|
|
66
64
|
MCP is the broad, discovery-oriented surface. REST intentionally exposes only curated workflow operations: candidate bundles and assisted source planning, plus `/healthz`. Direct Python callers should use `app.services.*` for domain workflows and should not import MCP tool modules to avoid a transport-shaped API.
|
|
67
65
|
|
|
68
|
-
|
|
66
|
+
See the [integration guide](../usage/integrations.md) for the three entry points and the [concepts guide](../concepts.md) for when to use each one.
|
|
69
67
|
|
|
70
68
|
## Availability and errors
|
|
71
69
|
|
|
@@ -4,11 +4,36 @@ These tools expose lexical concept search with its retrieval signals. They are b
|
|
|
4
4
|
|
|
5
5
|
Unlike `concept_ground`, which runs a tiered pipeline and stops at the first tier with results, these tools let the client choose a strategy, inspect its signals, and handle non-standard candidates explicitly.
|
|
6
6
|
|
|
7
|
+
## Ground an answer
|
|
8
|
+
|
|
9
|
+
In a structured instrument, the question and answer carry meaning together. “No” means something different in a question about pain than in a question about medication use. When the vocabulary defines an answer list for a question, grounding uses that list to find the OMOP concept for the recorded response. Use it for questionnaire choices, categorical test results such as “non-reactive”, and vocabulary answer codes such as `LA15256-3`.
|
|
10
|
+
|
|
11
|
+
Call `concept_ground` with the answer text or vocabulary code in `query` and the question's OMOP concept ID in `question_concept_id`. Eligible answers come from the question's active outbound `Has Answer` relationships. Use an empty `parent_ids` list or omit it when supplying a question. The `domain`, `vocabulary_id`, `standard_only`, and `active_only` filters still apply to the listed answers.
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"query": "non-reactive",
|
|
16
|
+
"question_concept_id": 586515
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Check `grounding_explanation.answer_status` before using a result. The `eligible_answer_count` field counts all list members that pass the filters, including those outside the returned results.
|
|
21
|
+
|
|
22
|
+
| Status | What it means |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `ok` | One answer matched by exact code, exact name, exact synonym, or normalised name or synonym. See `match_step` for the step that matched. |
|
|
25
|
+
| `ambiguous` | Multiple answers tied at the best matching step. The results are suggestions for review. |
|
|
26
|
+
| `no_match` | See `reason`. `unknown_question` and `no_answer_list` return no candidates. `no_matching_answer` returns eligible list members for review, up to `limit`. Results are empty when the filters leave no eligible answers. |
|
|
27
|
+
|
|
28
|
+
Embeddings can order tied answers or eligible members returned for review. They do not change `answer_status` or add candidates from outside the list. Without usable embeddings, review candidates appear in concept ID order, with no ranking implied. A failed vocabulary lookup returns a query error.
|
|
29
|
+
|
|
7
30
|
---
|
|
8
31
|
|
|
9
32
|
## `concept_search_exact`
|
|
10
33
|
|
|
11
34
|
Case-insensitive exact match of a query string against `concept_name` and (optionally) `concept_synonym_name`.
|
|
35
|
+
Name matches come first, followed by synonym matches. Each group is ordered by ascending concept
|
|
36
|
+
ID before the result limit is applied. A concept appears once.
|
|
12
37
|
|
|
13
38
|
```json
|
|
14
39
|
{
|
|
@@ -4,7 +4,7 @@ Two tools report on overall availability and the OMOP vocabulary catalogue for a
|
|
|
4
4
|
|
|
5
5
|
## `system_status`
|
|
6
6
|
|
|
7
|
-
Returns
|
|
7
|
+
Returns the health of each configured backend, the names of loaded plugins, and short reasons for plugin failures. Takes no arguments.
|
|
8
8
|
|
|
9
9
|
**Response**:
|
|
10
10
|
|
|
@@ -15,6 +15,8 @@ Returns availability and health details for each configured backend. Takes no ar
|
|
|
15
15
|
"omop_graph": {
|
|
16
16
|
"available": true,
|
|
17
17
|
"db_connected": true,
|
|
18
|
+
"fulltext_available": true,
|
|
19
|
+
"fulltext_detail": null,
|
|
18
20
|
"embedding_resolver_active": true,
|
|
19
21
|
"detail": null
|
|
20
22
|
},
|
|
@@ -24,6 +26,10 @@ Returns availability and health details for each configured backend. Takes no ar
|
|
|
24
26
|
"model_count": 1,
|
|
25
27
|
"model_backend_configured": true,
|
|
26
28
|
"detail": null
|
|
29
|
+
},
|
|
30
|
+
"plugins": {
|
|
31
|
+
"loaded": [],
|
|
32
|
+
"issues": {}
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -31,11 +37,15 @@ Returns availability and health details for each configured backend. Takes no ar
|
|
|
31
37
|
|
|
32
38
|
`overall` is one of:
|
|
33
39
|
|
|
34
|
-
- `healthy
|
|
35
|
-
- `degraded
|
|
36
|
-
- `unavailable
|
|
40
|
+
- `healthy` when all configured backends are available
|
|
41
|
+
- `degraded` when some configured backends are available
|
|
42
|
+
- `unavailable` when no configured backend is available
|
|
43
|
+
|
|
44
|
+
`components` lists configured backends and a `plugins` entry. Backend availability determines `overall`. `plugins.loaded` lists plugin names, and `plugins.issues` maps names to short reasons why those plugins were skipped.
|
|
45
|
+
|
|
46
|
+
For `omop_graph`, `fulltext_available` reports the optional full-text capability independently of graph health. On DuckDB, a healthy graph reports `fulltext_available: false`. `fulltext_detail` explains why this capability is unavailable, when known.
|
|
37
47
|
|
|
38
|
-
|
|
48
|
+
For `omop_emb`, `available` means the vector store can be inspected and contains at least one registered model. `model_backend_configured` tells you whether live text search and encoding can call the configured embedding model. Stored-neighbour lookup can still work when this is `false`.
|
|
39
49
|
|
|
40
50
|
Use this tool when you want to confirm:
|
|
41
51
|
|