groundworkers 0.8.1__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.
Files changed (339) hide show
  1. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/workflows/ci.yml +4 -0
  2. groundworkers-0.10.0/Makefile +29 -0
  3. {groundworkers-0.8.1 → groundworkers-0.10.0}/PKG-INFO +37 -7
  4. {groundworkers-0.8.1 → groundworkers-0.10.0}/README.md +25 -0
  5. groundworkers-0.10.0/config/groundworkers.duckdb.example.toml +39 -0
  6. groundworkers-0.10.0/docs/adapters/ancestry.md +71 -0
  7. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/adapters/omop_emb.md +11 -1
  8. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/adapters/omop_graph.md +39 -0
  9. groundworkers-0.10.0/docs/demo.md +75 -0
  10. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/development/plugins.md +1 -1
  11. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/from-scratch.md +21 -3
  12. groundworkers-0.10.0/docs/js/asciinema-init.js +23 -0
  13. groundworkers-0.10.0/docs/static/demo.cast +9185 -0
  14. groundworkers-0.10.0/docs/static/demo.short.cast +6518 -0
  15. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/concept.md +8 -1
  16. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/mapping.md +52 -1
  17. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/overview.md +1 -1
  18. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/configuration.md +39 -0
  19. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/installation.md +23 -0
  20. groundworkers-0.10.0/evaluation/surface/budget.json +10 -0
  21. groundworkers-0.10.0/evaluation/surface/reference.json +3003 -0
  22. {groundworkers-0.8.1 → groundworkers-0.10.0}/mkdocs.yaml +7 -0
  23. {groundworkers-0.8.1 → groundworkers-0.10.0}/pyproject.toml +14 -6
  24. groundworkers-0.10.0/src/groundworkers/adapters/_omop_graph_ancestry.py +59 -0
  25. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/adapters/omop_graph.py +144 -21
  26. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/app.py +37 -23
  27. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/configuration_provider.py +182 -47
  28. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/databases.py +30 -6
  29. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_population.py +18 -9
  30. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_registry.py +2 -0
  31. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_setup.py +23 -5
  32. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/graph_maintenance.py +49 -42
  33. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/performance_maintenance.py +2 -0
  34. groundworkers-0.10.0/src/groundworkers/base/ancestry.py +156 -0
  35. groundworkers-0.10.0/src/groundworkers/base/database.py +97 -0
  36. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/server.py +85 -11
  37. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/sql.py +48 -7
  38. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/bootstrap.py +30 -27
  39. groundworkers-0.10.0/src/groundworkers/omop_domains.py +64 -0
  40. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/plugins.py +32 -4
  41. groundworkers-0.10.0/src/groundworkers/prompt_packs/__init__.py +8 -0
  42. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-request.schema.json +86 -0
  43. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/classification-result.schema.json +76 -0
  44. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/examples.yaml +68 -0
  45. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/instructions.md +103 -0
  46. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/manifest.yaml +60 -0
  47. groundworkers-0.10.0/src/groundworkers/prompt_packs/groundcrew-source-column-classification/role-catalogue.yaml +20 -0
  48. groundworkers-0.10.0/src/groundworkers/services/ancestry.py +219 -0
  49. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/domain.py +7 -18
  50. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/graph.py +140 -39
  51. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/grounding.py +22 -4
  52. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/mapping.py +162 -140
  53. groundworkers-0.10.0/src/groundworkers/services/relationship_neighborhood.py +79 -0
  54. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/vocab.py +22 -12
  55. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/concept_tools.py +31 -6
  56. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/domain_tools.py +1 -0
  57. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/mapping_tools.py +71 -9
  58. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/embeddings.py +12 -14
  59. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/embedding_store.py +6 -2
  60. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/embeddings.py +7 -0
  61. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/graph_maintenance.py +47 -40
  62. groundworkers-0.10.0/tests/integration/test_omop_duckdb_runtime.py +834 -0
  63. groundworkers-0.10.0/tests/support/agent_surface.py +286 -0
  64. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/wheel_smoke.py +62 -0
  65. groundworkers-0.10.0/tests/test_agent_surface.py +65 -0
  66. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/test_bootstrap_config.py +3 -3
  67. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/test_server_registry.py +1 -0
  68. groundworkers-0.10.0/tests/unit/test_ancestry_mcp_contract.py +304 -0
  69. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_concept_tools.py +16 -7
  70. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_configuration_provider.py +69 -7
  71. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_graph_maintenance.py +25 -33
  72. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_graph_maintenance_wizard.py +18 -29
  73. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_graph_service.py +19 -3
  74. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_grounding_constraints.py +95 -0
  75. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_mapping_context.py +32 -2
  76. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_mapping_service.py +513 -101
  77. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_mapping_tools.py +5 -5
  78. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_migration_boundaries.py +9 -6
  79. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_normalized_index.py +1 -1
  80. groundworkers-0.10.0/tests/unit/test_omop_domains.py +78 -0
  81. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_omop_emb_adapter.py +1 -1
  82. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_omop_graph_adapter.py +28 -3
  83. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_predicate_mapping_classification.py +1 -1
  84. groundworkers-0.10.0/tests/unit/test_prompt_packs.py +99 -0
  85. groundworkers-0.10.0/tests/unit/test_relationship_edges.py +75 -0
  86. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_databases.py +11 -0
  87. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_embeddings.py +32 -0
  88. groundworkers-0.10.0/tests/unit/test_stored_ancestry.py +219 -0
  89. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_tui_state.py +44 -2
  90. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_vector_store_setup.py +147 -14
  91. {groundworkers-0.8.1 → groundworkers-0.10.0}/uv.lock +222 -109
  92. groundworkers-0.8.1/Makefile +0 -23
  93. groundworkers-0.8.1/src/groundworkers/config/README +0 -6
  94. groundworkers-0.8.1/src/groundworkers/config/predicate_classification.csv +0 -26
  95. groundworkers-0.8.1/src/groundworkers/config/predicate_mapping.csv +0 -735
  96. {groundworkers-0.8.1 → groundworkers-0.10.0}/.githooks/pre-commit +0 -0
  97. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/CONTRIBUTING.md +0 -0
  98. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  99. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  100. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  101. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/ISSUE_TEMPLATE/not_working.yml +0 -0
  102. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  103. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/release-drafter.yml +0 -0
  104. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/workflows/docs.yml +0 -0
  105. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/workflows/merge.yml +0 -0
  106. {groundworkers-0.8.1 → groundworkers-0.10.0}/.github/workflows/publish.yml +0 -0
  107. {groundworkers-0.8.1 → groundworkers-0.10.0}/.gitignore +0 -0
  108. {groundworkers-0.8.1 → groundworkers-0.10.0}/.python-version +0 -0
  109. {groundworkers-0.8.1 → groundworkers-0.10.0}/CHANGELOG.md +0 -0
  110. {groundworkers-0.8.1 → groundworkers-0.10.0}/config/docker-compose.yaml +0 -0
  111. {groundworkers-0.8.1 → groundworkers-0.10.0}/config/groundworkers.example.toml +0 -0
  112. {groundworkers-0.8.1 → groundworkers-0.10.0}/config/groundworkers_db.env +0 -0
  113. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/adapters/cdm.md +0 -0
  114. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/architecture.md +0 -0
  115. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/concepts.md +0 -0
  116. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/development/extending.md +0 -0
  117. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/development/integration.md +0 -0
  118. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/development/standard-resolution-packs.md +0 -0
  119. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/index.md +0 -0
  120. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/js/mermaid-init.js +0 -0
  121. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/plugins.md +0 -0
  122. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/reference/ref_adapters.md +0 -0
  123. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/reference/ref_base.md +0 -0
  124. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/reference/ref_config.md +0 -0
  125. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/reference/ref_services.md +0 -0
  126. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/reference/ref_tools.md +0 -0
  127. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/domain.md +0 -0
  128. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/graph.md +0 -0
  129. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/grounding.md +0 -0
  130. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/mapping.md +0 -0
  131. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/semantic_projection.md +0 -0
  132. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/source_planning.md +0 -0
  133. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/text.md +0 -0
  134. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/services/vocab.md +0 -0
  135. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/01_create_config.png +0 -0
  136. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/02_empty_config.png +0 -0
  137. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/03_config_wizard.png +0 -0
  138. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/04_test_cnx.png +0 -0
  139. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/04_warnings.png +0 -0
  140. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/05_graph_setup.png +0 -0
  141. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/06_load_predicates.png +0 -0
  142. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/07_vector_store.png +0 -0
  143. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/08_register_embedding.png +0 -0
  144. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/static/10_setup_complete.png +0 -0
  145. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/domain.md +0 -0
  146. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/embedding.md +0 -0
  147. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/knowledge.md +0 -0
  148. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/resolver.md +0 -0
  149. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/search.md +0 -0
  150. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/semantic_projection.md +0 -0
  151. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/source_planning.md +0 -0
  152. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/system.md +0 -0
  153. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/tools/text.md +0 -0
  154. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/integrations.md +0 -0
  155. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/prompt-handling.md +0 -0
  156. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/setup_journey.md +0 -0
  157. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/testing.md +0 -0
  158. {groundworkers-0.8.1 → groundworkers-0.10.0}/docs/usage/upgrading-from-0.6.md +0 -0
  159. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/__init__.py +0 -0
  160. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/_env.py +0 -0
  161. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/adapters/__init__.py +0 -0
  162. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/adapters/cdm.py +0 -0
  163. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/adapters/llm.py +0 -0
  164. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/adapters/omop_emb.py +0 -0
  165. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/__init__.py +0 -0
  166. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/__init__.py +0 -0
  167. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/configuration.py +0 -0
  168. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_artifacts.py +0 -0
  169. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_capability.py +0 -0
  170. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_coverage.py +0 -0
  171. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/embedding_reconciliation.py +0 -0
  172. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/integration.py +0 -0
  173. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/maintenance_runs.py +0 -0
  174. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/model_inventory.py +0 -0
  175. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/models.py +0 -0
  176. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/plugin_configuration.py +0 -0
  177. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/application/setup/runtime_setup.py +0 -0
  178. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/__init__.py +0 -0
  179. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/concept_payload.py +0 -0
  180. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/domain_names.py +0 -0
  181. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/errors.py +0 -0
  182. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/base/results.py +0 -0
  183. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/config.py +0 -0
  184. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/guidance.md +0 -0
  185. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/criteria-gate-yesno/manifest.yaml +0 -0
  186. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/guidance.md +0 -0
  187. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/diagnosis-role-modifier/manifest.yaml +0 -0
  188. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/guidance.md +0 -0
  189. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/manifest.yaml +0 -0
  190. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/domain-routing/rules.yaml +0 -0
  191. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/guidance.md +0 -0
  192. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/manifest.yaml +0 -0
  193. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/drug-concept-granularity/rules.yaml +0 -0
  194. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/history-of-event/guidance.md +0 -0
  195. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/history-of-event/manifest.yaml +0 -0
  196. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/guidance.md +0 -0
  197. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/manifest.yaml +0 -0
  198. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/knowledge/packs/core/standard-concept-preference/rules.yaml +0 -0
  199. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/server.py +0 -0
  200. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/__init__.py +0 -0
  201. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/__init__.py +0 -0
  202. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/catalogue.py +0 -0
  203. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/knowledge/models.py +0 -0
  204. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/__init__.py +0 -0
  205. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/definitions.py +0 -0
  206. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/models.py +0 -0
  207. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/semantic_projection/service.py +0 -0
  208. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/__init__.py +0 -0
  209. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/assisted.py +0 -0
  210. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/canonical_headers.py +0 -0
  211. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/classifier.py +0 -0
  212. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposer.py +0 -0
  213. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/__init__.py +0 -0
  214. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/csv_.py +0 -0
  215. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/ddl_.py +0 -0
  216. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/docx_.py +0 -0
  217. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/json_.py +0 -0
  218. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/pdf_.py +0 -0
  219. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/xlsx_.py +0 -0
  220. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/decomposers/xml_.py +0 -0
  221. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/detector.py +0 -0
  222. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/models.py +0 -0
  223. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/normalisation.py +0 -0
  224. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/provenance.py +0 -0
  225. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/router.py +0 -0
  226. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/serialisation.py +0 -0
  227. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/service.py +0 -0
  228. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/__init__.py +0 -0
  229. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/base.py +0 -0
  230. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/redcap.py +0 -0
  231. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/source_profiles/registry.py +0 -0
  232. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/source_planning/warnings.py +0 -0
  233. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/text/__init__.py +0 -0
  234. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/text/models.py +0 -0
  235. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/text/prompts.py +0 -0
  236. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/services/text/service.py +0 -0
  237. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/__init__.py +0 -0
  238. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/embedding_tools.py +0 -0
  239. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/knowledge_tools.py +0 -0
  240. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/resolver_tools.py +0 -0
  241. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/search_tools.py +0 -0
  242. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/semantic_projection_tools.py +0 -0
  243. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/source_planning_tools.py +0 -0
  244. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/system_tools.py +0 -0
  245. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tools/text_tools.py +0 -0
  246. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/transports/__init__.py +0 -0
  247. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/transports/rest/__init__.py +0 -0
  248. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/transports/rest/api.py +0 -0
  249. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/transports/rest/models.py +0 -0
  250. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/__init__.py +0 -0
  251. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/app.py +0 -0
  252. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/pages/__init__.py +0 -0
  253. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/pages/base.py +0 -0
  254. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/pages/plugin_config.py +0 -0
  255. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/pages/plugin_setup.py +0 -0
  256. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/pages/setup.py +0 -0
  257. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/__init__.py +0 -0
  258. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/base.py +0 -0
  259. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/chat.py +0 -0
  260. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/configuration.py +0 -0
  261. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/database.py +0 -0
  262. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/graph.py +0 -0
  263. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/llm_provider.py +0 -0
  264. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/overview.py +0 -0
  265. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/performance.py +0 -0
  266. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/presenters/runs.py +0 -0
  267. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/routes.py +0 -0
  268. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/state.py +0 -0
  269. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/__init__.py +0 -0
  270. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/config_location.py +0 -0
  271. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/performance_maintenance.py +0 -0
  272. {groundworkers-0.8.1 → groundworkers-0.10.0}/src/groundworkers/tui/wizards/plugin_setup.py +0 -0
  273. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/__init__.py +0 -0
  274. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/conftest.py +0 -0
  275. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/integration/__init__.py +0 -0
  276. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/integration/test_omop_emb_adapter.py +0 -0
  277. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/integration/test_omop_emb_contract.py +0 -0
  278. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/integration/test_omop_graph_adapter.py +0 -0
  279. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/integration/test_omop_postgres_runtime.py +0 -0
  280. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/__init__.py +0 -0
  281. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/embedding_contract_fixture.py +0 -0
  282. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/omop.py +0 -0
  283. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/postgres_ci_config.toml +0 -0
  284. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/seed_postgres_fixture.py +0 -0
  285. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/support/stack_config.py +0 -0
  286. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/test_rest_api.py +0 -0
  287. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/__init__.py +0 -0
  288. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_concept_payload.py +0 -0
  289. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_config_location_wizard.py +0 -0
  290. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_domain_names.py +0 -0
  291. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_domain_tools.py +0 -0
  292. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_embedding_population_scope.py +0 -0
  293. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_embedding_reconciliation.py +0 -0
  294. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_embedding_registry_step.py +0 -0
  295. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_embedding_tools.py +0 -0
  296. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_env_bootstrap.py +0 -0
  297. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_error_boundary.py +0 -0
  298. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_graph_status.py +0 -0
  299. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_grounding_service.py +0 -0
  300. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_knowledge_catalogue.py +0 -0
  301. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_llm_adapter.py +0 -0
  302. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_maintenance_runs_phase2.py +0 -0
  303. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_omop_emb_setup_config.py +0 -0
  304. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_performance.py +0 -0
  305. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_performance_maintenance_wizard.py +0 -0
  306. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_phase3_overview.py +0 -0
  307. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_plugin_configuration.py +0 -0
  308. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_plugin_lint_cli.py +0 -0
  309. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_plugins.py +0 -0
  310. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_provider_fields.py +0 -0
  311. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_required_integration_preflight.py +0 -0
  312. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_required_test_gate.py +0 -0
  313. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_schema_resolution.py +0 -0
  314. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_semantic_projection_service.py +0 -0
  315. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_semantic_projection_tools.py +0 -0
  316. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_artifacts_and_coverage.py +0 -0
  317. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_configuration.py +0 -0
  318. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_configuration_section.py +0 -0
  319. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_provider_conformance.py +0 -0
  320. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_runtime.py +0 -0
  321. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_truth.py +0 -0
  322. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_setup_write_flows.py +0 -0
  323. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_assisted_classifier.py +0 -0
  324. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_classifier.py +0 -0
  325. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_decomposer.py +0 -0
  326. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_detector.py +0 -0
  327. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_document_formats.py +0 -0
  328. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_models.py +0 -0
  329. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_normalisation.py +0 -0
  330. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_router.py +0 -0
  331. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_service.py +0 -0
  332. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_source_planning_tools.py +0 -0
  333. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_split_classified_edges.py +0 -0
  334. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_stack_config_fixtures.py +0 -0
  335. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_system_tools.py +0 -0
  336. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_text_service.py +0 -0
  337. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_text_tools.py +0 -0
  338. {groundworkers-0.8.1 → groundworkers-0.10.0}/tests/unit/test_tui_app.py +0 -0
  339. {groundworkers-0.8.1 → 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
@@ -0,0 +1,29 @@
1
+ .PHONY: setup test lint typecheck check describe inspector
2
+
3
+ PYTHON := .venv/bin/python3
4
+ # Empty = the server-specific lookup (OA_CONFIG_PATH, then ~/.config/omop/config.toml).
5
+ # Override per run, e.g. make describe CONFIG=config/groundworkers.example.toml
6
+ CONFIG ?=
7
+
8
+ # Mirrors the install CI performs, so a local run reproduces the pipeline exactly.
9
+ setup:
10
+ uv sync --all-extras --dev
11
+
12
+ describe:
13
+ $(PYTHON) -m groundworkers.server $(if $(CONFIG),--config-path $(CONFIG)) --describe
14
+
15
+ # Launch the official MCP Inspector against this checkout's stdio server.
16
+ inspector:
17
+ MCP_INSPECTOR_SECRET_STORE=memory npm_config_cache="$${TMPDIR:-/tmp}/groundworkers-inspector-npm-cache" npx --yes @modelcontextprotocol/inspector@2.12.0 uv run --project . groundworkers
18
+
19
+ lint:
20
+ uv run ruff check .
21
+
22
+ typecheck:
23
+ uv run ty check src/
24
+
25
+ test:
26
+ uv run pytest -q
27
+
28
+ # The three gates build-test.yml enforces on every pull request.
29
+ check: typecheck lint test
@@ -1,15 +1,15 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: groundworkers
3
- Version: 0.8.1
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.0.0
10
- Requires-Dist: omop-alchemy<3,>=2.0.0
11
- Requires-Dist: omop-emb<4,>=3.0.0
12
- Requires-Dist: omop-graph<4,>=3.0.0
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.0.0; extra == 'embedding-faiss'
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.0.0; extra == 'embedding-pgvector'
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
@@ -102,6 +107,14 @@ groundworkers
102
107
  groundworkers --transport streamable-http --host 127.0.0.1 --port 8000
103
108
  ```
104
109
 
110
+ Explore the configured MCP tools, prompts, and resources interactively with the official MCP Inspector:
111
+
112
+ ```bash
113
+ make inspector
114
+ ```
115
+
116
+ This launches Groundworkers over stdio using the active shared OMOP configuration and opens the Inspector UI. It requires Node.js 22.19 or newer and `uv`; the first run downloads the Inspector package through `npx`.
117
+
105
118
  REST is a separate, curated interface:
106
119
 
107
120
  ```bash
@@ -127,6 +140,23 @@ bundle = app.services.mapping.concept_candidate_bundle(
127
140
 
128
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.
129
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
+
130
160
  ## Companion repositories
131
161
 
132
162
  - [groundcrew](https://github.com/AustralianCancerDataNetwork/groundcrew) owns session state and orchestration.
@@ -44,6 +44,14 @@ groundworkers
44
44
  groundworkers --transport streamable-http --host 127.0.0.1 --port 8000
45
45
  ```
46
46
 
47
+ Explore the configured MCP tools, prompts, and resources interactively with the official MCP Inspector:
48
+
49
+ ```bash
50
+ make inspector
51
+ ```
52
+
53
+ This launches Groundworkers over stdio using the active shared OMOP configuration and opens the Inspector UI. It requires Node.js 22.19 or newer and `uv`; the first run downloads the Inspector package through `npx`.
54
+
47
55
  REST is a separate, curated interface:
48
56
 
49
57
  ```bash
@@ -69,6 +77,23 @@ bundle = app.services.mapping.concept_candidate_bundle(
69
77
 
70
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.
71
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
+
72
97
  ## Companion repositories
73
98
 
74
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
- The underlying backend is built lazily on first use. If the backend cannot be opened, the adapter reports unavailability rather than failing application construction for callers that do not need embedding-backed operations.
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)` returns the unique nearest shared standard ancestor when one exists; raise `max_depth` to widen the hierarchy search. 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.
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
- If you plan to store embeddings in PostgreSQL, include its backend support:
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
- 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.
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
- Graph preparation and embedding population run in separate background processes. You can close and reopen the console while they continue. 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.
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
+ }