groundworkers 0.9.0__tar.gz → 0.10.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.9.0 → groundworkers-0.10.0}/.github/workflows/ci.yml +4 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/PKG-INFO +29 -7
- {groundworkers-0.9.0 → groundworkers-0.10.0}/README.md +17 -0
- groundworkers-0.10.0/config/groundworkers.duckdb.example.toml +39 -0
- groundworkers-0.10.0/docs/adapters/ancestry.md +71 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/adapters/omop_emb.md +11 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/adapters/omop_graph.md +39 -0
- groundworkers-0.10.0/docs/demo.md +75 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/development/plugins.md +1 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/from-scratch.md +21 -3
- groundworkers-0.10.0/docs/js/asciinema-init.js +23 -0
- groundworkers-0.10.0/docs/static/demo.cast +9185 -0
- groundworkers-0.10.0/docs/static/demo.short.cast +6518 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/concept.md +8 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/mapping.md +52 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/overview.md +1 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/configuration.md +39 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/installation.md +23 -0
- groundworkers-0.10.0/evaluation/surface/budget.json +10 -0
- groundworkers-0.10.0/evaluation/surface/reference.json +3003 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/mkdocs.yaml +7 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/pyproject.toml +11 -6
- groundworkers-0.10.0/src/groundworkers/adapters/_omop_graph_ancestry.py +59 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/adapters/omop_graph.py +134 -21
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/app.py +37 -23
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/configuration_provider.py +182 -47
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/databases.py +30 -6
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_population.py +18 -9
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_registry.py +2 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_setup.py +23 -5
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/graph_maintenance.py +49 -42
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/performance_maintenance.py +2 -0
- groundworkers-0.10.0/src/groundworkers/base/ancestry.py +156 -0
- groundworkers-0.10.0/src/groundworkers/base/database.py +97 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/server.py +85 -11
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/sql.py +48 -7
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/bootstrap.py +30 -27
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/plugins.py +32 -4
- groundworkers-0.10.0/src/groundworkers/services/ancestry.py +219 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/graph.py +136 -39
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/mapping.py +162 -140
- groundworkers-0.10.0/src/groundworkers/services/relationship_neighborhood.py +79 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/vocab.py +22 -12
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/concept_tools.py +31 -6
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/mapping_tools.py +71 -9
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/embeddings.py +12 -14
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/embedding_store.py +6 -2
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/embeddings.py +7 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/graph_maintenance.py +47 -40
- groundworkers-0.10.0/tests/integration/test_omop_duckdb_runtime.py +834 -0
- groundworkers-0.10.0/tests/support/agent_surface.py +286 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/wheel_smoke.py +62 -0
- groundworkers-0.10.0/tests/test_agent_surface.py +65 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/test_bootstrap_config.py +3 -3
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/test_server_registry.py +1 -0
- groundworkers-0.10.0/tests/unit/test_ancestry_mcp_contract.py +304 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_concept_tools.py +16 -7
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_configuration_provider.py +69 -7
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_graph_maintenance.py +25 -33
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_graph_maintenance_wizard.py +18 -29
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_graph_service.py +19 -3
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_mapping_context.py +32 -2
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_mapping_service.py +513 -101
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_mapping_tools.py +5 -5
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_migration_boundaries.py +9 -6
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_normalized_index.py +1 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_omop_emb_adapter.py +1 -1
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_omop_graph_adapter.py +28 -3
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_predicate_mapping_classification.py +1 -1
- groundworkers-0.10.0/tests/unit/test_relationship_edges.py +75 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_databases.py +11 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_embeddings.py +32 -0
- groundworkers-0.10.0/tests/unit/test_stored_ancestry.py +219 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_tui_state.py +44 -2
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_vector_store_setup.py +147 -14
- {groundworkers-0.9.0 → groundworkers-0.10.0}/uv.lock +222 -109
- groundworkers-0.9.0/src/groundworkers/config/README +0 -6
- groundworkers-0.9.0/src/groundworkers/config/predicate_classification.csv +0 -26
- groundworkers-0.9.0/src/groundworkers/config/predicate_mapping.csv +0 -735
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.githooks/pre-commit +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/CONTRIBUTING.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/not_working.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/release-drafter.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/workflows/docs.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/workflows/merge.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.github/workflows/publish.yml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.gitignore +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/.python-version +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/CHANGELOG.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/Makefile +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/config/docker-compose.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/config/groundworkers.example.toml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/config/groundworkers_db.env +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/adapters/cdm.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/architecture.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/concepts.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/development/extending.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/development/integration.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/development/standard-resolution-packs.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/index.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/js/mermaid-init.js +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/plugins.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/reference/ref_adapters.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/reference/ref_base.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/reference/ref_config.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/reference/ref_services.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/reference/ref_tools.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/domain.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/graph.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/grounding.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/mapping.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/semantic_projection.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/source_planning.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/text.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/services/vocab.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/01_create_config.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/02_empty_config.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/03_config_wizard.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/04_test_cnx.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/04_warnings.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/05_graph_setup.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/06_load_predicates.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/07_vector_store.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/08_register_embedding.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/static/10_setup_complete.png +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/domain.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/embedding.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/knowledge.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/resolver.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/search.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/semantic_projection.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/source_planning.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/system.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/tools/text.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/integrations.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/prompt-handling.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/setup_journey.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/testing.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/docs/usage/upgrading-from-0.6.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/_env.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/adapters/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/adapters/cdm.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/adapters/llm.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/adapters/omop_emb.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/configuration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_artifacts.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_capability.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_coverage.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_reconciliation.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/integration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/maintenance_runs.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/model_inventory.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/plugin_configuration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/application/setup/runtime_setup.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/concept_payload.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/domain_names.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/errors.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/base/results.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/config.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/rules.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/rules.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/history-of-event/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/history-of-event/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/rules.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/omop_domains.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-request.schema.json +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-result.schema.json +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/examples.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/instructions.md +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/prompt_packs/groundcrew-source-column-classification/role-catalogue.yaml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/server.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/domain.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/grounding.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/catalogue.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/definitions.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/assisted.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/canonical_headers.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/classifier.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposer.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/csv_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/ddl_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/docx_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/json_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/pdf_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/xlsx_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/xml_.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/detector.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/normalisation.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/provenance.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/router.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/serialisation.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/base.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/redcap.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/registry.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/warnings.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/text/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/text/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/text/prompts.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/services/text/service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/domain_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/embedding_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/knowledge_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/resolver_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/search_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/semantic_projection_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/source_planning_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/system_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tools/text_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/transports/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/transports/rest/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/transports/rest/api.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/transports/rest/models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/app.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/pages/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/pages/base.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/pages/plugin_config.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/pages/plugin_setup.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/pages/setup.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/base.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/chat.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/configuration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/database.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/graph.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/llm_provider.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/overview.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/performance.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/runs.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/routes.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/state.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/config_location.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/performance_maintenance.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/plugin_setup.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/conftest.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/integration/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/integration/test_omop_emb_adapter.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/integration/test_omop_emb_contract.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/integration/test_omop_graph_adapter.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/integration/test_omop_postgres_runtime.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/embedding_contract_fixture.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/omop.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/postgres_ci_config.toml +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/seed_postgres_fixture.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/support/stack_config.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/test_rest_api.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/__init__.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_concept_payload.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_config_location_wizard.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_domain_names.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_domain_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_embedding_population_scope.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_embedding_reconciliation.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_embedding_registry_step.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_embedding_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_env_bootstrap.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_error_boundary.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_graph_status.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_grounding_constraints.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_grounding_service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_knowledge_catalogue.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_llm_adapter.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_maintenance_runs_phase2.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_omop_domains.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_omop_emb_setup_config.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_performance.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_performance_maintenance_wizard.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_phase3_overview.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_plugin_configuration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_plugin_lint_cli.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_plugins.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_prompt_packs.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_provider_fields.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_required_integration_preflight.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_required_test_gate.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_schema_resolution.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_semantic_projection_service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_semantic_projection_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_artifacts_and_coverage.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_configuration.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_configuration_section.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_provider_conformance.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_runtime.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_truth.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_setup_write_flows.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_assisted_classifier.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_classifier.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_decomposer.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_detector.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_document_formats.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_models.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_normalisation.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_router.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_source_planning_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_split_classified_edges.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_stack_config_fixtures.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_system_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_text_service.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_text_tools.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_tui_app.py +0 -0
- {groundworkers-0.9.0 → groundworkers-0.10.0}/tests/unit/test_vocab_service.py +0 -0
|
@@ -55,6 +55,7 @@ jobs:
|
|
|
55
55
|
- name: Run hermetic suite with coverage and skip reasons
|
|
56
56
|
run: |
|
|
57
57
|
uv sync --frozen --all-extras --dev
|
|
58
|
+
uv run --frozen --no-sync python -c "import duckdb; c = duckdb.connect(); c.install_extension('vss'); c.close()"
|
|
58
59
|
export GROUNDWORKERS_REQUIRE_FORMAT_TESTS=1
|
|
59
60
|
echo "GROUNDWORKERS_REQUIRE_FORMAT_TESTS=1" >> "$GITHUB_ENV"
|
|
60
61
|
COVERAGE_FILE="$RUNNER_TEMP/groundworkers.coverage" uv run pytest -q -ra \
|
|
@@ -90,3 +91,6 @@ jobs:
|
|
|
90
91
|
uv venv "$RUNNER_TEMP/gw-wheel-extras" --python 3.12
|
|
91
92
|
uv pip install --python "$RUNNER_TEMP/gw-wheel-extras/bin/python" "$wheel[all_source,tui]" httpx
|
|
92
93
|
"$RUNNER_TEMP/gw-wheel-extras/bin/python" "$GITHUB_WORKSPACE/tests/support/wheel_smoke.py" extras
|
|
94
|
+
uv venv "$RUNNER_TEMP/gw-wheel-duckdb" --python 3.12
|
|
95
|
+
uv pip install --python "$RUNNER_TEMP/gw-wheel-duckdb/bin/python" "$wheel[duckdb]"
|
|
96
|
+
"$RUNNER_TEMP/gw-wheel-duckdb/bin/python" "$GITHUB_WORKSPACE/tests/support/wheel_smoke.py" duckdb
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: groundworkers
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.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
|
|
7
7
|
Requires-Dist: mcp[cli]<2,>=1
|
|
8
8
|
Requires-Dist: numpy<3,>=1.26
|
|
9
|
-
Requires-Dist: oa-configurator<3,>=2.
|
|
10
|
-
Requires-Dist: omop-alchemy<3
|
|
11
|
-
Requires-Dist: omop-emb<4,>=3.
|
|
12
|
-
Requires-Dist: omop-graph<4
|
|
9
|
+
Requires-Dist: oa-configurator<3,>=2.1.0
|
|
10
|
+
Requires-Dist: omop-alchemy<4,>=3.0.0
|
|
11
|
+
Requires-Dist: omop-emb<4,>=3.1.0
|
|
12
|
+
Requires-Dist: omop-graph<5,>=4.0.0
|
|
13
13
|
Requires-Dist: omop-llm<2,>=1.0.2
|
|
14
14
|
Requires-Dist: omop-semantics<1,>=0.6
|
|
15
15
|
Requires-Dist: psutil<8,>=5.9
|
|
@@ -31,6 +31,8 @@ Requires-Dist: mkdocs-mermaid2-plugin; extra == 'dev'
|
|
|
31
31
|
Requires-Dist: mkdocs>=1.6.1; extra == 'dev'
|
|
32
32
|
Requires-Dist: mkdocstrings-python>=2.0.1; extra == 'dev'
|
|
33
33
|
Requires-Dist: mypy>=1.8; extra == 'dev'
|
|
34
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.1.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'dev'
|
|
34
36
|
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
35
37
|
Requires-Dist: pytest>=9.0.3; extra == 'dev'
|
|
36
38
|
Requires-Dist: requests>=2.33.0; extra == 'dev'
|
|
@@ -40,12 +42,15 @@ Requires-Dist: tornado>=6.5.9; extra == 'dev'
|
|
|
40
42
|
Requires-Dist: ty>=0.0.59; extra == 'dev'
|
|
41
43
|
Provides-Extra: docx
|
|
42
44
|
Requires-Dist: python-docx>=1.0; extra == 'docx'
|
|
45
|
+
Provides-Extra: duckdb
|
|
46
|
+
Requires-Dist: omop-emb[duckdbvss]<4,>=3.1.0; extra == 'duckdb'
|
|
47
|
+
Requires-Dist: omop-graph[duckdb]<5,>=4.0.0; extra == 'duckdb'
|
|
43
48
|
Provides-Extra: embedding-artifacts
|
|
44
49
|
Requires-Dist: h5py<4,>=3.10; extra == 'embedding-artifacts'
|
|
45
50
|
Provides-Extra: embedding-faiss
|
|
46
|
-
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.
|
|
51
|
+
Requires-Dist: omop-emb[faiss-cpu]<4,>=3.1.0; extra == 'embedding-faiss'
|
|
47
52
|
Provides-Extra: embedding-pgvector
|
|
48
|
-
Requires-Dist: omop-emb[pgvector]<4,>=3.
|
|
53
|
+
Requires-Dist: omop-emb[pgvector]<4,>=3.1.0; extra == 'embedding-pgvector'
|
|
49
54
|
Provides-Extra: pdf
|
|
50
55
|
Requires-Dist: pdfplumber>=0.10; extra == 'pdf'
|
|
51
56
|
Provides-Extra: tui
|
|
@@ -135,6 +140,23 @@ bundle = app.services.mapping.concept_candidate_bundle(
|
|
|
135
140
|
|
|
136
141
|
The `mapping` service in this example requires a configured CDM database. Embedding-backed channels require an embedding model and vector store; text, domain classification, and assisted source planning require a configured chat model. Use `groundworkers --describe` to see what the current deployment exposes.
|
|
137
142
|
|
|
143
|
+
## Contract owners
|
|
144
|
+
|
|
145
|
+
Owned here
|
|
146
|
+
|
|
147
|
+
| Contract | Where it is defined | Who consumes it |
|
|
148
|
+
|---|---|---|
|
|
149
|
+
| 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
|
+
| 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 |
|
|
152
|
+
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
153
|
+
|
|
154
|
+
Consumed from elsewhere
|
|
155
|
+
|
|
156
|
+
| Contract | Owner repo | How this repo conforms |
|
|
157
|
+
|---|---|---|
|
|
158
|
+
| Registry pack format | [ohdsi-prompt-registry](https://github.com/AustralianCancerDataNetwork/ohdsi-prompt-registry#contract-owners) | Pack entry point in [pyproject.toml](pyproject.toml); discovery and validation in [test_prompt_packs.py](tests/unit/test_prompt_packs.py) |
|
|
159
|
+
|
|
138
160
|
## Companion repositories
|
|
139
161
|
|
|
140
162
|
- [groundcrew](https://github.com/AustralianCancerDataNetwork/groundcrew) owns session state and orchestration.
|
|
@@ -77,6 +77,23 @@ bundle = app.services.mapping.concept_candidate_bundle(
|
|
|
77
77
|
|
|
78
78
|
The `mapping` service in this example requires a configured CDM database. Embedding-backed channels require an embedding model and vector store; text, domain classification, and assisted source planning require a configured chat model. Use `groundworkers --describe` to see what the current deployment exposes.
|
|
79
79
|
|
|
80
|
+
## Contract owners
|
|
81
|
+
|
|
82
|
+
Owned here
|
|
83
|
+
|
|
84
|
+
| Contract | Where it is defined | Who consumes it |
|
|
85
|
+
|---|---|---|
|
|
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
|
+
| 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 |
|
|
89
|
+
| Plugin interfaces | [plugins.py](src/groundworkers/plugins.py) | Registry and other Groundworkers plugins |
|
|
90
|
+
|
|
91
|
+
Consumed from elsewhere
|
|
92
|
+
|
|
93
|
+
| Contract | Owner repo | How this repo conforms |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| Registry pack format | [ohdsi-prompt-registry](https://github.com/AustralianCancerDataNetwork/ohdsi-prompt-registry#contract-owners) | Pack entry point in [pyproject.toml](pyproject.toml); discovery and validation in [test_prompt_packs.py](tests/unit/test_prompt_packs.py) |
|
|
96
|
+
|
|
80
97
|
## Companion repositories
|
|
81
98
|
|
|
82
99
|
- [groundcrew](https://github.com/AustralianCancerDataNetwork/groundcrew) owns session state and orchestration.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Serve two existing, cleanly closed DuckDB files. Groundworkers opens them read-only.
|
|
2
|
+
# Set the model, dimensions and prefixes from the asset manifest.
|
|
3
|
+
|
|
4
|
+
[connections.datathon_cdm]
|
|
5
|
+
dialect = "duckdb"
|
|
6
|
+
database_name = "/abs/path/datathon_cdm.duckdb"
|
|
7
|
+
|
|
8
|
+
[connections.datathon_emb]
|
|
9
|
+
dialect = "duckdb"
|
|
10
|
+
database_name = "/abs/path/datathon_emb.duckdb"
|
|
11
|
+
|
|
12
|
+
[databases.cdm_db]
|
|
13
|
+
kind = "cdm"
|
|
14
|
+
connection = "datathon_cdm"
|
|
15
|
+
|
|
16
|
+
[databases.emb_db]
|
|
17
|
+
kind = "generic"
|
|
18
|
+
connection = "datathon_emb"
|
|
19
|
+
|
|
20
|
+
[providers.local_ollama]
|
|
21
|
+
provider = "ollama"
|
|
22
|
+
base_url = "http://localhost:11434"
|
|
23
|
+
api_key = "ollama"
|
|
24
|
+
|
|
25
|
+
[models.snowflake]
|
|
26
|
+
provider = "local_ollama"
|
|
27
|
+
model = "snowflake-arctic-embed2:568m"
|
|
28
|
+
embeddings = true
|
|
29
|
+
embedding_dim = 1024
|
|
30
|
+
query_prefix = "query: "
|
|
31
|
+
|
|
32
|
+
[vector_stores.datathon]
|
|
33
|
+
backend_type = "duckdbvss"
|
|
34
|
+
database = "emb_db"
|
|
35
|
+
|
|
36
|
+
[tools.groundworkers]
|
|
37
|
+
cdm_db = "cdm_db"
|
|
38
|
+
embedding_model_name = "snowflake"
|
|
39
|
+
vector_store_name = "datathon"
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Stored ancestry and shared targets
|
|
2
|
+
|
|
3
|
+
Groundworkers reads OMOP's `CONCEPT_ANCESTOR` closure table. Its `max_depth` is
|
|
4
|
+
the stored `min_levels_of_separation`, rather than a count of recursive
|
|
5
|
+
parent lookups. Distinct concepts can have separation zero, so zero depth can
|
|
6
|
+
include more than the input concept itself.
|
|
7
|
+
|
|
8
|
+
## Find a shared standard ancestor
|
|
9
|
+
|
|
10
|
+
Use `concept_shared_standard_ancestor` to find a shared representation for two
|
|
11
|
+
or more candidate concepts for the same source record. It does not combine
|
|
12
|
+
separate drug ingredients into a product or establish clinical equivalence.
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
result = context.concept_shared_standard_ancestor(
|
|
16
|
+
[first_concept_id, second_concept_id],
|
|
17
|
+
max_depth=5,
|
|
18
|
+
concept_class_ids=["Clinical Drug"],
|
|
19
|
+
vocabulary_ids=["RxNorm", "RxNorm Extension"],
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The Python/plugin method returns the service payload. The MCP operation wraps
|
|
24
|
+
that payload in its typed `data` field; errors have `error=true`, a code and a
|
|
25
|
+
message, with no selected target.
|
|
26
|
+
|
|
27
|
+
The operation requires 2–200 supplied positive integer IDs and at least two
|
|
28
|
+
distinct IDs. Boolean, string and fractional IDs are rejected. Class and
|
|
29
|
+
vocabulary filters use exact catalogue identifiers; null means unrestricted,
|
|
30
|
+
while empty lists, blank values and unknown identifiers are invalid. Asking
|
|
31
|
+
for RxNorm does not implicitly include RxNorm Extension.
|
|
32
|
+
|
|
33
|
+
Groundworkers intersects the complete stored ancestry of all inputs, including
|
|
34
|
+
each input at distance zero, then filters to active standard targets in the same
|
|
35
|
+
domain and any requested classes/vocabularies. It minimizes the maximum stored
|
|
36
|
+
distance from the inputs. A unique nearest target is selected; equal nearest
|
|
37
|
+
targets remain ambiguous. Unknown input IDs are errors, and mixed input domains
|
|
38
|
+
produce an incompatible-input result.
|
|
39
|
+
|
|
40
|
+
`limit` (1–50) and `offset` paginate displayed common candidates. They do not
|
|
41
|
+
affect selection: displaying one candidate cannot resolve a tie. The response
|
|
42
|
+
reports selection completeness, total candidates and display truncation
|
|
43
|
+
separately. A database failure returns an error rather than a partial selection.
|
|
44
|
+
|
|
45
|
+
## Nearest ancestors and path evidence
|
|
46
|
+
|
|
47
|
+
`concept_nearest_standard_ancestor` uses the same stored-distance semantics and
|
|
48
|
+
reports ambiguous nearest targets. Its text-query form discloses the rank-one
|
|
49
|
+
grounded seed and other seed candidates; it does not establish that the source
|
|
50
|
+
concept itself was unambiguous.
|
|
51
|
+
|
|
52
|
+
Relationship paths are separate evidence from stored ancestry. An ancestor can
|
|
53
|
+
be valid even when a bounded relationship-path search finds no path. The result
|
|
54
|
+
reports that limitation rather than fabricating a path. A `Maps to` fallback is
|
|
55
|
+
labelled as mapping evidence, not ancestry.
|
|
56
|
+
|
|
57
|
+
## Bounded named-relationship neighborhoods
|
|
58
|
+
|
|
59
|
+
The Python/plugin `concept_relationship_neighborhood` capability follows an
|
|
60
|
+
explicit set of active outbound relationship IDs. It accepts up to 50 distinct
|
|
61
|
+
seed concepts, traverses at most three levels and bounds each seed's nodes and
|
|
62
|
+
edges independently. `max_nodes_per_seed` and `max_edges_per_seed` describe
|
|
63
|
+
those allowances; `returned_edge_count` counts the deduplicated edges actually
|
|
64
|
+
returned across all seeds. One dense seed does not consume another seed's
|
|
65
|
+
allowance. `truncated_seeds` identifies walks that reached a resource limit.
|
|
66
|
+
|
|
67
|
+
The maximum supported union before overlap deduplication is 25,000 nodes and
|
|
68
|
+
125,000 edges (50 seeds, 500 nodes and 2,500 edges per seed). Prefer small seed
|
|
69
|
+
sets and limits for interactive use. Unknown seed concepts return `NOT_FOUND`
|
|
70
|
+
with the missing seed IDs. Missing metadata for reached non-seed concepts returns
|
|
71
|
+
`QUERY_ERROR` rather than a silently incomplete neighborhood.
|
|
@@ -20,9 +20,13 @@ The adapter does **not** resolve stack config itself. `build_application(...)` c
|
|
|
20
20
|
|---|---|
|
|
21
21
|
| `sqlitevec` | a `[vector_stores.*]` entry with `backend_type = "sqlitevec"` and a database reference |
|
|
22
22
|
| `pgvector` | a `[vector_stores.*]` entry with `backend_type = "pgvector"` and a `database` reference |
|
|
23
|
+
| `duckdbvss` | a `[vector_stores.*]` entry with `backend_type = "duckdbvss"` and a separate prebuilt DuckDB database reference |
|
|
23
24
|
|
|
24
25
|
FAISS remains a sidecar acceleration layer rather than a standalone primary backend.
|
|
25
26
|
|
|
27
|
+
See [database and vector-storage configuration](../usage/configuration.md#databases-and-vector-storage)
|
|
28
|
+
for connection dialects and file-serving requirements.
|
|
29
|
+
|
|
26
30
|
## Operation modes
|
|
27
31
|
|
|
28
32
|
### Index lookup mode
|
|
@@ -42,7 +46,13 @@ Requires `embedding_model_name` and `vector_store_name`, plus a configured embed
|
|
|
42
46
|
|
|
43
47
|
## Availability model
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
Configuration is validated when constructing the application. A configured
|
|
50
|
+
DuckDB embedding file must already exist and be separate from the CDM file;
|
|
51
|
+
invalid file configuration stops startup.
|
|
52
|
+
|
|
53
|
+
The underlying backend is built lazily on first use. Failures while opening a
|
|
54
|
+
validly configured backend are reported as embedding unavailability. Registered
|
|
55
|
+
models and stored vectors can be inspected without a live query encoder.
|
|
46
56
|
|
|
47
57
|
Representative `index_status()` shape:
|
|
48
58
|
|
|
@@ -65,3 +65,42 @@ All methods that return concept data use a consistent dict shape:
|
|
|
65
65
|
Adapter methods raise `GroundworkersError` on failure. Services propagate those errors unchanged; tools and REST routes translate them into transport-level responses.
|
|
66
66
|
|
|
67
67
|
The underlying `KnowledgeGraph` is built lazily on first use rather than at server startup. If the database or graph layer is unavailable, callers receive a clear `GroundworkersError` instead of an opaque lower-level exception.
|
|
68
|
+
|
|
69
|
+
## Temporary stored-ancestry primitive and upstream migration
|
|
70
|
+
|
|
71
|
+
Groundworkers temporarily provides `q_ancestor_rows()` in
|
|
72
|
+
`adapters/_omop_graph_ancestry.py` pending an omop-graph release. It depends only
|
|
73
|
+
on SQLAlchemy and the OMOP model; it contains no Groundworkers selection policy.
|
|
74
|
+
`OmopGraphAdapter.ancestor_rows()` is the stable execution boundary. It returns
|
|
75
|
+
plain rows with descendant ID, ancestor ID and stored minimum/maximum separation.
|
|
76
|
+
Distinct zero-separation ancestors are retained; `include_self` compares IDs.
|
|
77
|
+
`max_separation=0` is supported and empty input returns no rows.
|
|
78
|
+
|
|
79
|
+
The shared-ancestor service uses `GraphService.get_stored_ancestor_maps()` to batch
|
|
80
|
+
ancestry and strict metadata lookup, adding self at depth zero. Ordinary parent
|
|
81
|
+
and descendant walks retain their existing semantics. Eligible targets must be
|
|
82
|
+
active standard concepts in the input domain. Optional `concept_class_ids` and
|
|
83
|
+
`vocabulary_ids` constrain targets before nearest-common selection. Ranking uses
|
|
84
|
+
the maximum stored minimum separation across inputs; distance ties abstain.
|
|
85
|
+
`common_ancestors` exposes ranked alternatives on successful and tied results.
|
|
86
|
+
Backend failures and missing ancestor metadata raise errors rather than becoming
|
|
87
|
+
no-match results. Concept enrichment elsewhere retains its tolerant default.
|
|
88
|
+
|
|
89
|
+
### Upstream path
|
|
90
|
+
|
|
91
|
+
1. Move `q_ancestor_rows` and its raw-row contract to omop-graph, with tests for
|
|
92
|
+
non-self zero distances, self policy, batch input, bounds and empty input.
|
|
93
|
+
2. Add an omop-graph runtime method that executes that query and returns the same
|
|
94
|
+
four fields. It must preserve stored distances rather than counting BFS hops.
|
|
95
|
+
3. After releasing and pinning that dependency, replace the implementation of
|
|
96
|
+
`OmopGraphAdapter.ancestor_rows()` with delegation to the upstream method.
|
|
97
|
+
Remove the temporary module and import; no mapping-service or plugin API
|
|
98
|
+
change is required. Keep `tests/unit/test_stored_ancestry.py` as the consumer
|
|
99
|
+
contract and run it against the upstream implementation.
|
|
100
|
+
4. Audit existing upstream `q_concept_potential_ancestor*` helpers separately:
|
|
101
|
+
their positive-distance filter also excludes non-self zero-separation rows.
|
|
102
|
+
Do not change those callers' behavior implicitly during migration.
|
|
103
|
+
|
|
104
|
+
Drug-specific ingredient/form/strength checks and broad-match acceptance remain
|
|
105
|
+
in the PBS plugin. Groundworkers makes no global preference between Clinical Drug
|
|
106
|
+
and Branded Drug; callers can request classes explicitly.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Demo
|
|
2
|
+
|
|
3
|
+
This is a real Claude Code session with the Groundworkers MCP server plugged into a local OMOP vocabulary.
|
|
4
|
+
|
|
5
|
+
## Basic lookups
|
|
6
|
+
|
|
7
|
+
In this video you see groundworkers load with no system memory or project settings - only groundworkers tools loaded.
|
|
8
|
+
|
|
9
|
+
Simple lookup questions:
|
|
10
|
+
|
|
11
|
+
1. _Find the standard OMOP concept for ‘heart attack’_
|
|
12
|
+
2. _Which drugs make up the FOLFOX regimen, as OMOP standard RxNorm ingredients?_
|
|
13
|
+
|
|
14
|
+
<div class="asciicast" data-src="../static/demo.short.cast" data-start-at="40.9" data-poster-at="58.9"></div>
|
|
15
|
+
|
|
16
|
+
*Sped up: 39 s real time, 18 s playbacks.*
|
|
17
|
+
|
|
18
|
+
| Concept | concept_id | Vocabulary | Athena |
|
|
19
|
+
|---|---|---|---|
|
|
20
|
+
| Myocardial infarction ("heart attack") | 4329847 | SNOMED | [Open](https://athena.ohdsi.org/search-terms/terms/4329847) |
|
|
21
|
+
| FOLFOX (regimen) | 35806596 | HemOnc | [Open](https://athena.ohdsi.org/search-terms/terms/35806596) |
|
|
22
|
+
| fluorouracil | 955632 | RxNorm Ingredient | [Open](https://athena.ohdsi.org/search-terms/terms/955632) |
|
|
23
|
+
| leucovorin | 1388796 | RxNorm Ingredient | [Open](https://athena.ohdsi.org/search-terms/terms/1388796) |
|
|
24
|
+
| oxaliplatin | 1318011 | RxNorm Ingredient | [Open](https://athena.ohdsi.org/search-terms/terms/1318011) |
|
|
25
|
+
|
|
26
|
+
## Colorectal cancer concept set
|
|
27
|
+
|
|
28
|
+
Complex vocabulary inference:
|
|
29
|
+
|
|
30
|
+
1. **Initial concept set request:** _I would like a concept set covering colorectal cancer. This concept set should be split into groups covering each of the major relevant anatomical regions. Exclude non-malignant disease and non-solid tumors_
|
|
31
|
+
2. **Use topography clues to ask groundworkers to check completeness of the set:** _Let's audit the concept set specific to the ascending colon to check for completeness_
|
|
32
|
+
3. **Add in morphology-based verification as well:** _Could we use the snomed morphology property to map backwards to ICDO3 and provide additional confirmation that way as well?_
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<div class="asciicast" data-src="../static/demo.short.cast" data-start-at="59.1"></div>
|
|
36
|
+
|
|
37
|
+
*Sped up: 6 min 10 s real time, 2 min 1 s playback. Only the waiting is compressed (spinner and counter updates while the model and tool calls run).*
|
|
38
|
+
|
|
39
|
+
| Concept | concept_id | Why look at it | Athena |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| Malignant tumor of large intestine | 443396 | The parent the whole concept set is built from (2,329 descendants) | [Open](https://athena.ohdsi.org/search-terms/terms/443396) |
|
|
42
|
+
| Neoplasm of ascending colon | 4130997 | The audit parent: everything under it is diffed against the ascending colon group | [Open](https://athena.ohdsi.org/search-terms/terms/4130997) |
|
|
43
|
+
| Large cell neuroendocrine carcinoma of ascending colon | 44502762 | ICD-O-3 outlier: standard, but not a descendant of 443396 because not all ICD-O-3 concepts attach to the SNOMED hierarchy | [Open](https://athena.ohdsi.org/search-terms/terms/44502762) |
|
|
44
|
+
| Primary malignant neuroendocrine neoplasm of ascending colon | 761001 | SNOMED outlier: sits under the ascending colon parent but not under 443396, so the hierarchy alone misses it | [Open](https://athena.ohdsi.org/search-terms/terms/761001) |
|
|
45
|
+
| Well-differentiated neuroendocrine tumor of ascending colon | 1077457 | Judgement call: it is the "Maps to" target of benign-carcinoid source codes, so it mixes behaviours | [Open](https://athena.ohdsi.org/search-terms/terms/1077457) |
|
|
46
|
+
|
|
47
|
+
## Data dictionary mapping
|
|
48
|
+
|
|
49
|
+
A toy data dictionary decomposition showing handling of real mapping problems beyond label:concept translation.
|
|
50
|
+
|
|
51
|
+
<div class="asciicast" data-src="../static/demo.short.cast" data-start-at="180.3"></div>
|
|
52
|
+
|
|
53
|
+
*Sped up: 1 min 27 s real time, 16 s playback*
|
|
54
|
+
|
|
55
|
+
| Concept | concept_id | Why look at it | Athena |
|
|
56
|
+
|---|---|---|---|
|
|
57
|
+
| Family history of clinical finding | 4167217 | The observation concept for `fhx_crc`; the condition goes in `value_as_concept_id` | [Open](https://athena.ohdsi.org/search-terms/terms/4167217) |
|
|
58
|
+
| Malignant colorectal neoplasm | 37168850 | The value used for `fhx_crc` | [Open](https://athena.ohdsi.org/search-terms/terms/37168850) |
|
|
59
|
+
| Malignant tumor of intestine | 443398 | The literal reading of "bowel cancer", which also includes the small intestine | [Open](https://athena.ohdsi.org/search-terms/terms/443398) |
|
|
60
|
+
| Current smoker | 40766945 | A LOINC question item used for `smoking`, with Yes/No answers as values | [Open](https://athena.ohdsi.org/search-terms/terms/40766945) |
|
|
61
|
+
| Smokes cigarette daily | 1450766 | The narrowest SNOMED alternative, since no plain "Current smoker" concept exists | [Open](https://athena.ohdsi.org/search-terms/terms/1450766) |
|
|
62
|
+
| Body mass index | 4245997 | The exact match for `bmi`; a LOINC concept was chosen instead, so pick one and be consistent | [Open](https://athena.ohdsi.org/search-terms/terms/4245997) |
|
|
63
|
+
| capecitabine | 1337620 | `chemo_agent_2`, mapped at Ingredient level (a FOLFOX/CAPOX component) | [Open](https://athena.ohdsi.org/search-terms/terms/1337620) |
|
|
64
|
+
| Colonoscopy | 4249893 | An exact match for `colonoscopy` (a Procedure) | [Open](https://athena.ohdsi.org/search-terms/terms/4249893) |
|
|
65
|
+
|
|
66
|
+
## Setup TUI
|
|
67
|
+
|
|
68
|
+
This part was recorded before the session above, and it's what you'd see on day one. Run
|
|
69
|
+
`groundworkers tui` and it walks you through connecting your CDM database, checks that each
|
|
70
|
+
backend is working (including how much of the vocabulary has embeddings), and lets you tweak
|
|
71
|
+
plugin settings such as UMLS.
|
|
72
|
+
|
|
73
|
+
<div class="asciicast" data-src="../static/demo.short.cast" data-start-at="0" data-poster-at="19"></div>
|
|
74
|
+
|
|
75
|
+
*Sped up: 1 min 22 s real time, 41 s in the recording. The setup waits are compressed.*
|
|
@@ -80,7 +80,7 @@ The concept-embedding row and the free-text-embedding row look similar but are n
|
|
|
80
80
|
### Assumptions this table is making
|
|
81
81
|
|
|
82
82
|
- **Vocabulary only, so far.** Every example above reads OMOP vocabulary: concepts, concept relationships, concept embeddings, or the host's shared grounding cascade. `context.cdm_session_factory` routes vocabulary and primary roles, including on split-vocabulary deployments. Clinical/person-level queries need a database role explicitly configured for them.
|
|
83
|
-
- **Shared mapping access.** `PluginContext.mapping_context` is an optional,read-only capability façade over the host's mapping and grounding policy. Use its operations when a plugin needs candidate bundles, text grounding, or concept context. `concept_shared_standard_ancestor(concept_ids, max_depth=5)`
|
|
83
|
+
- **Shared mapping access.** `PluginContext.mapping_context` is an optional,read-only capability façade over the host's mapping and grounding policy. Use its operations when a plugin needs candidate bundles, text grounding, or concept context. `concept_shared_standard_ancestor(concept_ids, max_depth=5, concept_class_ids=None, vocabulary_ids=None, limit=10, offset=0)` selects from complete stored ancestry with active standard targets, optional exact catalogue constraints and explicit nearest-distance ties. Depth is stored minimum separation (0..20), including distinct zero-distance ancestors. Pagination affects display only. Empty constraints are invalid. The response retains `found`, `selected_ancestor` and `selection_reason` and adds status, evidence, constraints and complete-set counts. The same capability is exposed as an MCP tool with a typed envelope; plugin callers retain the transport-neutral dictionary. The underlying vocabulary, graph, and service objects are deliberately not exposed. Do not construct a second `omop-graph` or vocabulary adapter from `context.cdm_engine`. The field is `None` only when the host did not compose services for the plugin context.
|
|
84
84
|
|
|
85
85
|
## Build and register a new plugin
|
|
86
86
|
|
|
@@ -25,10 +25,13 @@ Install Groundworkers with the setup console:
|
|
|
25
25
|
uv pip install "groundworkers[tui]"
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Include the extra for the database backend you plan to use:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
+
# PostgreSQL embeddings
|
|
31
32
|
uv pip install "groundworkers[tui,embedding-pgvector]"
|
|
33
|
+
# DuckDB vocabulary and embeddings
|
|
34
|
+
uv pip install "groundworkers[tui,duckdb]"
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
Other extras include `embedding-faiss` for FAISS sidecar acceleration and `all_source` for XLSX, PDF, and DOCX source-planning inputs. See [Installation](usage/installation.md) for the available extras.
|
|
@@ -57,18 +60,27 @@ Run **Test connections** in Database or **Verify all** in Overview. A working CD
|
|
|
57
60
|
|
|
58
61
|
See [Configuration](usage/configuration.md) for the shared configuration layout and named references.
|
|
59
62
|
|
|
63
|
+
For prepared database files, follow the [file configuration requirements](usage/configuration.md#file-backed-databases)
|
|
64
|
+
and use the supplied vocabulary and model metadata when configuring them.
|
|
65
|
+
|
|
60
66
|
## 4. Prepare graph and search support
|
|
61
67
|
|
|
62
|
-
|
|
68
|
+
For PostgreSQL, open **Graph → Prepare graph** when readiness reports missing relationship, full-text, or functional indexes. Review the proposed commands before starting. **Performance** shows index readiness and offers further index maintenance.
|
|
63
69
|
|
|
64
70
|
Preparation runs as a background maintenance task; follow it in **Runs**. The database account used for preparation needs permission to create the required indexes and supporting objects. Normal service queries remain read-only.
|
|
65
71
|
|
|
66
72
|
You can use basic vocabulary operations before preparing every index. Prepare the search and graph support needed by the tools you intend to use, then rerun the checks.
|
|
67
73
|
|
|
74
|
+
For DuckDB, **Graph → Prepare graph** can load relationship classification. Stop services and close other readers using the CDM file before starting it. PostgreSQL full-text, GIN/trigram indexes and CLUSTER maintenance do not apply to DuckDB and are disabled in this wizard.
|
|
75
|
+
|
|
68
76
|
## 5. Add embeddings (optional)
|
|
69
77
|
|
|
70
78
|
Embedding search needs a named embedding model, a named vector store, and vectors for the concepts you want to search. The query model must be compatible with the stored vectors.
|
|
71
79
|
|
|
80
|
+
For DuckDB CDM and embedding connections, enter absolute file paths in `database_name`; relative paths and `~` aliases are rejected. For a prebuilt DuckDBVSS store, configure its separate file and matching model, then check registration and coverage. To prepare a new DuckDBVSS store, select a separate file in an existing directory and follow the steps below. Stop services and close other readers using the embedding file before initialization. Population also opens the CDM file, so close its readers too. Prepare [offline dependencies](usage/installation.md#prepare-an-offline-deployment) before disconnecting from the network.
|
|
81
|
+
|
|
82
|
+
For stores you are preparing through the console:
|
|
83
|
+
|
|
72
84
|
1. **Configure the store.** Use Database to select or create the vector-store configuration.
|
|
73
85
|
2. **Configure the model.** In Embeddings, choose **Configure model**. Supply the provider details and select a model already registered in the store or a new model from the provider.
|
|
74
86
|
3. **Initialize and check.** Use **Initialize embedding store** if needed, then **Check model** to check the store registration and test whether the provider can encode text with that model.
|
|
@@ -143,7 +155,13 @@ Change the authoritative configuration source, then reopen the console to verify
|
|
|
143
155
|
|
|
144
156
|
## Maintenance runs
|
|
145
157
|
|
|
146
|
-
|
|
158
|
+
Serving and readiness checks are read-only. The setup console can explicitly initialize embedding storage, populate vectors and classify relationships. For DuckDB, stop services and close other readers of the file being written before starting preparation. A conflicting connection causes the operation to fail; close it and retry. Restart the service after preparation completes.
|
|
159
|
+
|
|
160
|
+
For bulk CDM loading or index rebuilds, use the omop-alchemy and omop-emb CLIs. Graph preparation uses the classification packaged with omop-graph unless you choose a custom CSV directory in the wizard.
|
|
161
|
+
|
|
162
|
+
Close writers cleanly before sharing or reopening the files. Several Groundworkers reader processes can share the same prepared files. Distribute files without outstanding WAL, and record the vocabulary release, package/DuckDB versions, model identity, dimensions and prefixes with them.
|
|
163
|
+
|
|
164
|
+
When you start graph preparation or embedding population from the console, it runs in a separate background process. You can close and reopen the console while it continues. In **Runs**, follow progress, inspect a redacted log tail, cancel active work, retry a supported failed step, or export commands. Postflight results appear for tasks that define those checks.
|
|
147
165
|
|
|
148
166
|
Run history is saved on disk. Groundworkers uses `GROUNDWORKERS_STATE_HOME`, then `XDG_STATE_HOME`, as the state base directory and appends `groundworkers`. If neither is set, it uses `~/.local/state/groundworkers`.
|
|
149
167
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Mounts an asciinema player on each <div class="asciicast" data-src="..." data-start-at="...">.
|
|
2
|
+
// Players pause at the next marker in the recording, so one cast can back several sections.
|
|
3
|
+
// data-poster-at picks the preview frame when the start frame is blank.
|
|
4
|
+
function mountAsciicasts() {
|
|
5
|
+
document.querySelectorAll(".asciicast[data-src]:not([data-mounted])").forEach((el) => {
|
|
6
|
+
const startAt = parseFloat(el.dataset.startAt || "0");
|
|
7
|
+
AsciinemaPlayer.create(el.dataset.src, el, {
|
|
8
|
+
startAt,
|
|
9
|
+
speed: parseFloat(el.dataset.speed || "1.5"),
|
|
10
|
+
pauseOnMarkers: true,
|
|
11
|
+
preload: true,
|
|
12
|
+
poster: `npt:${el.dataset.posterAt || startAt}`,
|
|
13
|
+
fit: "width",
|
|
14
|
+
});
|
|
15
|
+
el.dataset.mounted = "true";
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (window.document$) {
|
|
20
|
+
document$.subscribe(mountAsciicasts);
|
|
21
|
+
} else {
|
|
22
|
+
document.addEventListener("DOMContentLoaded", mountAsciicasts);
|
|
23
|
+
}
|