datasight 0.6.2__tar.gz → 0.7.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 (303) hide show
  1. {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/ci.yml +3 -3
  2. {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/codeql.yml +1 -1
  3. {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/gh-pages.yml +1 -1
  4. {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/release.yml +1 -1
  5. {datasight-0.6.2 → datasight-0.7.0}/PKG-INFO +8 -5
  6. {datasight-0.6.2 → datasight-0.7.0}/README.md +4 -1
  7. {datasight-0.6.2/docs/tool-developer → datasight-0.7.0/docs/design}/architecture.md +1 -1
  8. {datasight-0.6.2/docs/concepts → datasight-0.7.0/docs/design}/how-the-agent-works.md +7 -7
  9. {datasight-0.6.2/docs/concepts → datasight-0.7.0/docs/design}/sql-result-cache.md +1 -1
  10. datasight-0.7.0/docs/index.md +68 -0
  11. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/how-to/configure-measures.md +1 -1
  12. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/database-connections.md +4 -4
  13. datasight-0.7.0/docs/project-setup/how-to/declare-joins.md +40 -0
  14. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/querying-files.md +1 -1
  15. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/schema-config.md +1 -1
  16. datasight-0.7.0/docs/project-setup/how-to/validation-rules.md +84 -0
  17. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/tutorials}/set-up-project.md +18 -14
  18. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/tutorials/time-validation.md +3 -3
  19. {datasight-0.6.2 → datasight-0.7.0}/docs/reference/cli.md +220 -138
  20. {datasight-0.6.2 → datasight-0.7.0}/docs/reference/configuration.md +9 -11
  21. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/keyboard-shortcuts.md +2 -2
  22. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/query-confidence-toggles.md +2 -2
  23. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/web-ui.md +2 -3
  24. {datasight-0.6.2/docs → datasight-0.7.0/docs/use}/concepts/choosing-an-llm.md +5 -5
  25. {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/use/concepts}/query-confidence.md +2 -2
  26. {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/use/concepts}/trusting-ai-results.md +30 -2
  27. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/ask-from-cli.md +1 -1
  28. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/ask-in-web-ui.md +2 -2
  29. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/audit-data-quality.md +12 -76
  30. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/explore-files.md +2 -2
  31. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/review-query-log.md +10 -26
  32. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/run-on-hpc.md +2 -2
  33. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/save-and-rerun.md +41 -0
  34. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/tutorials/getting-started.md +3 -3
  35. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/tutorials/tempo.md +2 -2
  36. {datasight-0.6.2 → datasight-0.7.0}/frontend/package-lock.json +379 -1548
  37. {datasight-0.6.2 → datasight-0.7.0}/frontend/package.json +1 -1
  38. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/chat.ts +60 -5
  39. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/dashboard.ts +3 -0
  40. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/summarize.ts +1 -1
  41. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChatInput.svelte +2 -2
  42. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardToolbar.svelte +28 -1
  43. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ExportBar.svelte +20 -8
  44. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Header.svelte +1 -1
  45. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/LandingPage.svelte +1 -1
  46. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MessageBubble.svelte +117 -27
  47. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MessageList.svelte +18 -1
  48. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/chat.svelte.ts +10 -0
  49. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/dashboard.svelte.ts +8 -0
  50. datasight-0.7.0/frontend/tests/replay.test.ts +120 -0
  51. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/summarize.test.ts +1 -0
  52. datasight-0.7.0/mkdocs.yml +117 -0
  53. {datasight-0.6.2 → datasight-0.7.0}/pyproject.toml +4 -4
  54. {datasight-0.6.2 → datasight-0.7.0}/scripts/generate_cli_reference.py +25 -9
  55. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/distribution.py +2 -2
  56. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/export.py +34 -5
  57. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/data_profile.py +33 -23
  58. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/export.py +238 -3
  59. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/export_dashboard.mustache +2 -2
  60. datasight-0.7.0/src/datasight/templates/html/export_session_python.mustache +110 -0
  61. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/app.py +134 -11
  62. datasight-0.6.2/src/datasight/web/static/assets/index-Moupsw0X.js → datasight-0.7.0/src/datasight/web/static/assets/index-B5SIawAX.js +134 -132
  63. datasight-0.7.0/src/datasight/web/static/assets/index-DyflbovG.css +1 -0
  64. datasight-0.6.2/src/datasight/web/static/assets/plotly.min-DzYmtRpP.js → datasight-0.7.0/src/datasight/web/static/assets/plotly.min-DkfFcv5I.js +1 -1
  65. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/templates/index.html +2 -2
  66. {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_commands.py +7 -2
  67. {datasight-0.6.2 → datasight-0.7.0}/tests/test_data_profile_extra.py +46 -0
  68. datasight-0.7.0/tests/test_export.py +651 -0
  69. {datasight-0.6.2 → datasight-0.7.0}/tests/test_web_app_extra.py +86 -1
  70. {datasight-0.6.2 → datasight-0.7.0}/tests/test_web_ui_smoke.py +12 -2
  71. {datasight-0.6.2 → datasight-0.7.0}/uv.lock +239 -40
  72. datasight-0.6.2/docs/concepts/users-and-roles.md +0 -70
  73. datasight-0.6.2/docs/index.md +0 -70
  74. datasight-0.6.2/mkdocs.yml +0 -115
  75. datasight-0.6.2/src/datasight/web/static/assets/index-55BjTfy-.css +0 -1
  76. datasight-0.6.2/tests/test_export.py +0 -309
  77. {datasight-0.6.2 → datasight-0.7.0}/.github/dependabot.yml +0 -0
  78. {datasight-0.6.2 → datasight-0.7.0}/.gitignore +0 -0
  79. {datasight-0.6.2 → datasight-0.7.0}/.pre-commit-config.yaml +0 -0
  80. {datasight-0.6.2 → datasight-0.7.0}/AGENTS.md +0 -0
  81. {datasight-0.6.2 → datasight-0.7.0}/CLAUDE.md +0 -0
  82. {datasight-0.6.2 → datasight-0.7.0}/DISCLAIMER.md +0 -0
  83. {datasight-0.6.2 → datasight-0.7.0}/LICENSE +0 -0
  84. {datasight-0.6.2 → datasight-0.7.0}/codecov.yml +0 -0
  85. {datasight-0.6.2 → datasight-0.7.0}/dashboard-filter-roadmap.md +0 -0
  86. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/datasight-icon.svg +0 -0
  87. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/01-landing.png +0 -0
  88. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/02-chat-view.png +0 -0
  89. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/03-sql-editor.png +0 -0
  90. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/04-chart-result.png +0 -0
  91. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/05-dashboard.png +0 -0
  92. {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/06-web-ui-reference.png +0 -0
  93. {datasight-0.6.2/docs/tool-developer → datasight-0.7.0/docs/design}/contributing.md +0 -0
  94. {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/project-setup/concepts}/semantic-measures.md +0 -0
  95. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/how-to/declare-time-series.md +0 -0
  96. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/example-queries.md +0 -0
  97. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/schema-description.md +0 -0
  98. {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/verification.md +0 -0
  99. {datasight-0.6.2 → datasight-0.7.0}/docs/stylesheets/extra.css +0 -0
  100. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/build-a-dashboard.md +0 -0
  101. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/connect-flight-sql.md +0 -0
  102. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/connect-spark.md +0 -0
  103. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/create-visualizations.md +0 -0
  104. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/install.md +0 -0
  105. {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/save-dashboard-template.md +0 -0
  106. {datasight-0.6.2 → datasight-0.7.0}/frontend/e2e/screenshots.spec.ts +0 -0
  107. {datasight-0.6.2 → datasight-0.7.0}/frontend/e2e/smoke.spec.ts +0 -0
  108. {datasight-0.6.2 → datasight-0.7.0}/frontend/index.html +0 -0
  109. {datasight-0.6.2 → datasight-0.7.0}/frontend/playwright.config.ts +0 -0
  110. {datasight-0.6.2 → datasight-0.7.0}/frontend/public/datasight-icon.svg +0 -0
  111. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/App.svelte +0 -0
  112. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/app.css +0 -0
  113. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/assets/datasight-icon.svg +0 -0
  114. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/client.ts +0 -0
  115. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/measures.ts +0 -0
  116. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/projects.ts +0 -0
  117. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/saved.ts +0 -0
  118. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/schema.ts +0 -0
  119. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/settings.ts +0 -0
  120. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/sql.ts +0 -0
  121. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/starters.ts +0 -0
  122. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/AddFilesInput.svelte +0 -0
  123. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/BookmarksList.svelte +0 -0
  124. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChartResult.svelte +0 -0
  125. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChatView.svelte +0 -0
  126. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ClarifyOptions.svelte +0 -0
  127. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/CodeEditor.svelte +0 -0
  128. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/CommandPalette.svelte +0 -0
  129. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ConversationsList.svelte +0 -0
  130. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardCard.svelte +0 -0
  131. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardGrid.svelte +0 -0
  132. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardNote.svelte +0 -0
  133. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardSection.svelte +0 -0
  134. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardView.svelte +0 -0
  135. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DiscoveredFilesCard.svelte +0 -0
  136. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ExploreCard.svelte +0 -0
  137. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/LlmConfigForm.svelte +0 -0
  138. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MeasureEditor.svelte +0 -0
  139. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MeasureEditorModal.svelte +0 -0
  140. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/PlotlyChart.svelte +0 -0
  141. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectCard.svelte +0 -0
  142. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectHealth.svelte +0 -0
  143. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectsPanel.svelte +0 -0
  144. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/QueriesList.svelte +0 -0
  145. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/QueryHistoryPanel.svelte +0 -0
  146. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/RecipesList.svelte +0 -0
  147. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ReportsList.svelte +0 -0
  148. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/RunDetails.svelte +0 -0
  149. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SaveProjectModal.svelte +0 -0
  150. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SchemaInspector.svelte +0 -0
  151. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SettingsPanel.svelte +0 -0
  152. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ShortcutsModal.svelte +0 -0
  153. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Sidebar.svelte +0 -0
  154. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SidebarSection.svelte +0 -0
  155. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SqlConfirmDialog.svelte +0 -0
  156. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SqlView.svelte +0 -0
  157. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/StarterGrid.svelte +0 -0
  158. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/StarterOverview.svelte +0 -0
  159. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SuggestionButtons.svelte +0 -0
  160. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/TableResult.svelte +0 -0
  161. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Toast.svelte +0 -0
  162. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ToolIndicator.svelte +0 -0
  163. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/palette.svelte.ts +0 -0
  164. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/queries.svelte.ts +0 -0
  165. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/schema.svelte.ts +0 -0
  166. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/session.svelte.ts +0 -0
  167. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/settings.svelte.ts +0 -0
  168. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/sidebar.svelte.ts +0 -0
  169. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/sql_editor.svelte.ts +0 -0
  170. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/toast.svelte.ts +0 -0
  171. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/types/plotly-js-dist-min.d.ts +0 -0
  172. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/types/plotly.ts +0 -0
  173. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/conversation.ts +0 -0
  174. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/emacs-keys.ts +0 -0
  175. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/format.ts +0 -0
  176. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/markdown.ts +0 -0
  177. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/search.ts +0 -0
  178. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/sql-completion.ts +0 -0
  179. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/main.ts +0 -0
  180. {datasight-0.6.2 → datasight-0.7.0}/frontend/src/vite-env.d.ts +0 -0
  181. {datasight-0.6.2 → datasight-0.7.0}/frontend/svelte.config.js +0 -0
  182. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/chat.test.ts +0 -0
  183. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/emacs-keys.test.ts +0 -0
  184. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/format.test.ts +0 -0
  185. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/search.test.ts +0 -0
  186. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/sql-completion.test.ts +0 -0
  187. {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/stores.test.ts +0 -0
  188. {datasight-0.6.2 → datasight-0.7.0}/frontend/tsconfig.json +0 -0
  189. {datasight-0.6.2 → datasight-0.7.0}/frontend/vite.config.ts +0 -0
  190. {datasight-0.6.2 → datasight-0.7.0}/frontend/vitest.config.ts +0 -0
  191. {datasight-0.6.2 → datasight-0.7.0}/scripts/build-frontend.sh +0 -0
  192. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/__init__.py +0 -0
  193. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/__main__.py +0 -0
  194. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/agent.py +0 -0
  195. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/audit_report.py +0 -0
  196. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/chart.py +0 -0
  197. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli.py +0 -0
  198. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/__init__.py +0 -0
  199. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/ask.py +0 -0
  200. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/audit_report.py +0 -0
  201. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/config.py +0 -0
  202. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/demo.py +0 -0
  203. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/dimensions.py +0 -0
  204. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/doctor.py +0 -0
  205. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/generate.py +0 -0
  206. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/init.py +0 -0
  207. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/inspect.py +0 -0
  208. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/integrity.py +0 -0
  209. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/log.py +0 -0
  210. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/measures.py +0 -0
  211. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/profile.py +0 -0
  212. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/quality.py +0 -0
  213. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/recipes.py +0 -0
  214. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/report.py +0 -0
  215. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/run.py +0 -0
  216. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/templates.py +0 -0
  217. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/trends.py +0 -0
  218. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/validate.py +0 -0
  219. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/verify.py +0 -0
  220. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/config.py +0 -0
  221. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cost.py +0 -0
  222. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/dashboard_template.py +0 -0
  223. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo.py +0 -0
  224. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo_dsgrid_tempo.py +0 -0
  225. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo_time_validation.py +0 -0
  226. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/distribution.py +0 -0
  227. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/events.py +0 -0
  228. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/exceptions.py +0 -0
  229. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/explore.py +0 -0
  230. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/generate.py +0 -0
  231. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/identifiers.py +0 -0
  232. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/integrity.py +0 -0
  233. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/llm.py +0 -0
  234. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/prompts.py +0 -0
  235. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/query_log.py +0 -0
  236. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/recent_projects.py +0 -0
  237. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/runner.py +0 -0
  238. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema.py +0 -0
  239. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema_links.py +0 -0
  240. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema_types.py +0 -0
  241. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/settings.py +0 -0
  242. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/sql_validation.py +0 -0
  243. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/env.template +0 -0
  244. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/global_env.template +0 -0
  245. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/audit_report.mustache +0 -0
  246. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/chart.mustache +0 -0
  247. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/export_session.mustache +0 -0
  248. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/queries.yaml +0 -0
  249. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/schema_description.md +0 -0
  250. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/time_series.yaml +0 -0
  251. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/validation.yaml +0 -0
  252. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templating.py +0 -0
  253. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/validation.py +0 -0
  254. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/verify.py +0 -0
  255. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/__init__.py +0 -0
  256. {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/static/datasight-icon.svg +0 -0
  257. {datasight-0.6.2 → datasight-0.7.0}/tests/__init__.py +0 -0
  258. {datasight-0.6.2 → datasight-0.7.0}/tests/_env_helpers.py +0 -0
  259. {datasight-0.6.2 → datasight-0.7.0}/tests/conftest.py +0 -0
  260. {datasight-0.6.2 → datasight-0.7.0}/tests/test_agent.py +0 -0
  261. {datasight-0.6.2 → datasight-0.7.0}/tests/test_agent_extra.py +0 -0
  262. {datasight-0.6.2 → datasight-0.7.0}/tests/test_audit.py +0 -0
  263. {datasight-0.6.2 → datasight-0.7.0}/tests/test_audit_report_extra.py +0 -0
  264. {datasight-0.6.2 → datasight-0.7.0}/tests/test_caching_runner.py +0 -0
  265. {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_ask.py +0 -0
  266. {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_config.py +0 -0
  267. {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_tools.py +0 -0
  268. {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_tools_extra.py +0 -0
  269. {datasight-0.6.2 → datasight-0.7.0}/tests/test_config.py +0 -0
  270. {datasight-0.6.2 → datasight-0.7.0}/tests/test_config_extra.py +0 -0
  271. {datasight-0.6.2 → datasight-0.7.0}/tests/test_dashboard_template.py +0 -0
  272. {datasight-0.6.2 → datasight-0.7.0}/tests/test_distribution.py +0 -0
  273. {datasight-0.6.2 → datasight-0.7.0}/tests/test_docs_cli_reference.py +0 -0
  274. {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore.py +0 -0
  275. {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore_extra.py +0 -0
  276. {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore_spark.py +0 -0
  277. {datasight-0.6.2 → datasight-0.7.0}/tests/test_export_extra.py +0 -0
  278. {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate.py +0 -0
  279. {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate_extra.py +0 -0
  280. {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate_persist_db.py +0 -0
  281. {datasight-0.6.2 → datasight-0.7.0}/tests/test_identifiers.py +0 -0
  282. {datasight-0.6.2 → datasight-0.7.0}/tests/test_integrity.py +0 -0
  283. {datasight-0.6.2 → datasight-0.7.0}/tests/test_llm.py +0 -0
  284. {datasight-0.6.2 → datasight-0.7.0}/tests/test_prompts.py +0 -0
  285. {datasight-0.6.2 → datasight-0.7.0}/tests/test_query_log.py +0 -0
  286. {datasight-0.6.2 → datasight-0.7.0}/tests/test_recent_projects.py +0 -0
  287. {datasight-0.6.2 → datasight-0.7.0}/tests/test_reports.py +0 -0
  288. {datasight-0.6.2 → datasight-0.7.0}/tests/test_runner.py +0 -0
  289. {datasight-0.6.2 → datasight-0.7.0}/tests/test_runner_extra.py +0 -0
  290. {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema.py +0 -0
  291. {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_config_load.py +0 -0
  292. {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_extra.py +0 -0
  293. {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_filter.py +0 -0
  294. {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_links.py +0 -0
  295. {datasight-0.6.2 → datasight-0.7.0}/tests/test_settings.py +0 -0
  296. {datasight-0.6.2 → datasight-0.7.0}/tests/test_settings_extra.py +0 -0
  297. {datasight-0.6.2 → datasight-0.7.0}/tests/test_spark_runner.py +0 -0
  298. {datasight-0.6.2 → datasight-0.7.0}/tests/test_sql_validation.py +0 -0
  299. {datasight-0.6.2 → datasight-0.7.0}/tests/test_sql_validation_extra.py +0 -0
  300. {datasight-0.6.2 → datasight-0.7.0}/tests/test_time_series.py +0 -0
  301. {datasight-0.6.2 → datasight-0.7.0}/tests/test_validation.py +0 -0
  302. {datasight-0.6.2 → datasight-0.7.0}/tests/test_verify.py +0 -0
  303. {datasight-0.6.2 → datasight-0.7.0}/tests/test_web_app.py +0 -0
@@ -10,7 +10,7 @@ jobs:
10
10
  lint:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v4
13
+ - uses: actions/checkout@v6
14
14
 
15
15
  - name: Install uv
16
16
  uses: astral-sh/setup-uv@v7
@@ -52,7 +52,7 @@ jobs:
52
52
  test:
53
53
  runs-on: ubuntu-latest
54
54
  steps:
55
- - uses: actions/checkout@v4
55
+ - uses: actions/checkout@v6
56
56
 
57
57
  - name: Install uv
58
58
  uses: astral-sh/setup-uv@v7
@@ -113,7 +113,7 @@ jobs:
113
113
  security:
114
114
  runs-on: ubuntu-latest
115
115
  steps:
116
- - uses: actions/checkout@v4
116
+ - uses: actions/checkout@v6
117
117
 
118
118
  - name: Install uv
119
119
  uses: astral-sh/setup-uv@v7
@@ -27,7 +27,7 @@ jobs:
27
27
  build-mode: none
28
28
 
29
29
  steps:
30
- - uses: actions/checkout@v4
30
+ - uses: actions/checkout@v6
31
31
 
32
32
  - name: Initialize CodeQL
33
33
  uses: github/codeql-action/init@v4
@@ -8,7 +8,7 @@ jobs:
8
8
  make-pages:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v4
11
+ - uses: actions/checkout@v6
12
12
 
13
13
  - name: Install uv
14
14
  uses: astral-sh/setup-uv@v7
@@ -14,7 +14,7 @@ jobs:
14
14
  id-token: write
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@v6
18
18
 
19
19
  - name: Install uv
20
20
  uses: astral-sh/setup-uv@v7
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datasight
3
- Version: 0.6.2
3
+ Version: 0.7.0
4
4
  Summary: AI-powered data exploration with natural language
5
5
  Project-URL: Repository, https://github.com/dsgrid/datasight
6
6
  Project-URL: Documentation, https://dsgrid.github.io/datasight/
@@ -22,7 +22,7 @@ Requires-Dist: openpyxl<4,>=3.1
22
22
  Requires-Dist: pandas<4,>=2.0
23
23
  Requires-Dist: plotly<7,>=5.0
24
24
  Requires-Dist: psycopg[binary]<4,>=3.1
25
- Requires-Dist: pyarrow<19,>=14.0
25
+ Requires-Dist: pyarrow<25,>=14.0
26
26
  Requires-Dist: python-dotenv<2,>=1.0
27
27
  Requires-Dist: pyyaml<7,>=6.0
28
28
  Requires-Dist: rich-click<2,>=1.8
@@ -34,12 +34,12 @@ Provides-Extra: dev
34
34
  Requires-Dist: prek<1,>=0.2; extra == 'dev'
35
35
  Requires-Dist: pytest-asyncio<2,>=0.23; extra == 'dev'
36
36
  Requires-Dist: pytest-cov; extra == 'dev'
37
- Requires-Dist: pytest<9,>=8.0; extra == 'dev'
37
+ Requires-Dist: pytest<10,>=8.0; extra == 'dev'
38
38
  Requires-Dist: ruff<1,>=0.15; extra == 'dev'
39
39
  Requires-Dist: ty>=0.0.26; extra == 'dev'
40
40
  Requires-Dist: zensical>=0.0.31; extra == 'dev'
41
41
  Provides-Extra: export
42
- Requires-Dist: kaleido<1,>=0.2; extra == 'export'
42
+ Requires-Dist: kaleido<2,>=0.2; extra == 'export'
43
43
  Provides-Extra: spark
44
44
  Requires-Dist: pyspark[connect]<5,>=4.0; extra == 'spark'
45
45
  Description-Content-Type: text/markdown
@@ -122,7 +122,10 @@ datasight ask --file questions.txt --output-dir batch-output
122
122
  - **Example queries** — seed the AI with question/SQL pairs
123
123
  - **Reusable prompt recipes** — project-specific analysis prompts derived from the schema
124
124
  - **Multi-chart dashboard** — pin results, filter cards, and configure layouts
125
- - **Session export** — export conversations as shareable HTML pages
125
+ - **Session export** — share a session as a self-contained HTML page, or
126
+ export it as a runnable Python script (editable SQL constants, embedded
127
+ Plotly specs, hardcoded DB path with `--db` / `--output-dir` overrides)
128
+ that re-runs the analysis without datasight or the AI in the loop
126
129
  - **Keyboard shortcuts** — `?` to see all shortcuts, `/` to focus input
127
130
  - **Streaming responses** — real-time SSE streaming from the LLM
128
131
 
@@ -76,7 +76,10 @@ datasight ask --file questions.txt --output-dir batch-output
76
76
  - **Example queries** — seed the AI with question/SQL pairs
77
77
  - **Reusable prompt recipes** — project-specific analysis prompts derived from the schema
78
78
  - **Multi-chart dashboard** — pin results, filter cards, and configure layouts
79
- - **Session export** — export conversations as shareable HTML pages
79
+ - **Session export** — share a session as a self-contained HTML page, or
80
+ export it as a runnable Python script (editable SQL constants, embedded
81
+ Plotly specs, hardcoded DB path with `--db` / `--output-dir` overrides)
82
+ that re-runs the analysis without datasight or the AI in the loop
80
83
  - **Keyboard shortcuts** — `?` to see all shortcuts, `/` to focus input
81
84
  - **Streaming responses** — real-time SSE streaming from the LLM
82
85
 
@@ -4,7 +4,7 @@ datasight is a FastAPI web server with a Svelte 5 + TypeScript + Tailwind
4
4
  frontend (built with Vite, served as static assets by FastAPI). The LLM agent
5
5
  loop, tool execution, and SSE streaming are implemented in plain Python, with
6
6
  a pluggable `LLMClient` abstraction that supports Anthropic, GitHub Models,
7
- and Ollama — see [Choosing an LLM](../concepts/choosing-an-llm.md) for
7
+ and Ollama — see [Choosing an LLM](../use/concepts/choosing-an-llm.md) for
8
8
  guidance on picking a provider.
9
9
 
10
10
  ## System overview
@@ -77,16 +77,16 @@ will run under, so dialect-specific syntax isn't falsely flagged.
77
77
 
78
78
  **Query confidence controls.** Users can require SQL approval before
79
79
  execution and ask the model to explain its query in plain English. See
80
- [Query confidence toggles](../end-user/reference/query-confidence-toggles.md).
80
+ [Query confidence toggles](../reference/query-confidence-toggles.md).
81
81
 
82
82
  **Clarifying questions.** When a question is ambiguous along a dimension
83
83
  that changes the answer (granularity, time range, units), the agent is
84
84
  prompted to ask rather than guess. See
85
- [Why clarifying questions appear](../end-user/explanation/query-confidence.md).
85
+ [Why clarifying questions appear](../use/concepts/query-confidence.md).
86
86
 
87
87
  **The query log.** Every SQL statement the agent runs is logged with its
88
88
  question, timing, and row count, so you can audit after the fact. See
89
- [Review the SQL query log](../end-user/how-to/review-query-log.md).
89
+ [Review the SQL query log](../use/how-to/review-query-log.md).
90
90
 
91
91
  **Per-question cost budget.** The agent tracks estimated LLM cost across
92
92
  the tool-use loop and aborts with a visible stop message once a
@@ -98,7 +98,7 @@ tokens. The cap defaults to `$1.00` per question and is controlled by
98
98
  **Cross-model verification.** For high-stakes questions, the `verify`
99
99
  workflow re-runs a question across multiple LLMs and compares results.
100
100
  Disagreement is a signal to investigate. See
101
- [Verify queries across models](../project-developer/verification.md).
101
+ [Verify queries across models](../project-setup/how-to/verification.md).
102
102
 
103
103
  ## What mitigations don't catch
104
104
 
@@ -106,14 +106,14 @@ None of the above proves a query is *right*. They catch hallucinated
106
106
  tables, disallowed aggregations, and obvious parse errors — but a query
107
107
  can reference real tables, respect every rule, run cleanly, and still
108
108
  answer the wrong question. For this reason datasight treats results as
109
- drafts. See [Trusting AI-generated results](../end-user/explanation/trusting-ai-results.md)
109
+ drafts. See [Trusting AI-generated results](../use/concepts/trusting-ai-results.md)
110
110
  for the posture we recommend when acting on them.
111
111
 
112
112
  ## Where to read more
113
113
 
114
- - [Choosing an LLM](choosing-an-llm.md) — model selection and data
114
+ - [Choosing an LLM](../use/concepts/choosing-an-llm.md) — model selection and data
115
115
  sensitivity tradeoffs.
116
116
  - [SQL result cache](sql-result-cache.md) — how repeat queries are
117
117
  served without re-running the model or the database.
118
- - [Architecture](../tool-developer/architecture.md) — the code-level view
118
+ - [Architecture](architecture.md) — the code-level view
119
119
  of the same loop.
@@ -27,7 +27,7 @@ overview twice in one session.
27
27
  ## What gets cached
28
28
 
29
29
  The cache lives in the `CachingSqlRunner` wrapper around the active
30
- [`SqlRunner`](../tool-developer/architecture.md). It caches **pandas
30
+ [`SqlRunner`](architecture.md). It caches **pandas
31
31
  DataFrames keyed on normalized SQL text** — whitespace is collapsed, trailing
32
32
  semicolons are stripped, and the key is lowercased. Two queries that differ
33
33
  only in formatting share a cache entry.
@@ -0,0 +1,68 @@
1
+ ---
2
+ hide:
3
+ - navigation
4
+ - toc
5
+ ---
6
+
7
+ # datasight
8
+
9
+ **AI-powered data exploration with natural language.** Point datasight at
10
+ your CSV, Parquet, Excel, or DuckDB files and start asking questions — minimal setup
11
+ required. Or create a curated project with schema descriptions and example
12
+ queries for your team. Start with guided starter workflows in the web UI or
13
+ use deterministic CLI inspection commands before involving the LLM.
14
+
15
+ ![datasight chat view](assets/screenshots/02-chat-view.png)
16
+
17
+ ```bash
18
+ uv tool install datasight
19
+
20
+ # Explore files instantly — no project setup needed
21
+ datasight run
22
+ # Open http://localhost:8084, enter a file path, and start asking questions
23
+
24
+ # Or inspect a configured project without the web UI
25
+ datasight profile
26
+
27
+ # Or try a built-in demo dataset
28
+ datasight demo eia-generation ./my-project # US power plants
29
+ cd my-project
30
+ # Edit .env with your API key (see Set up your first project)
31
+ datasight run
32
+ ```
33
+
34
+ ## Where to go next
35
+
36
+ <div class="grid cards" markdown>
37
+
38
+ - :material-account:{ .lg .middle } **[Use datasight](use/how-to/install.md)**
39
+
40
+ ---
41
+
42
+ Install, choose an LLM, ask questions in the web UI or CLI, build
43
+ dashboards, audit data quality, and run on HPC or Spark.
44
+
45
+ [:octicons-arrow-right-24: Explore US electricity generation](use/tutorials/getting-started.md)
46
+ [:octicons-arrow-right-24: Choosing an LLM](use/concepts/choosing-an-llm.md)
47
+
48
+ - :material-database-cog:{ .lg .middle } **[Project Setup](project-setup/tutorials/set-up-project.md)**
49
+
50
+ ---
51
+
52
+ Connect a database, write schema descriptions, define semantic
53
+ measures, declare validation rules, and verify queries across
54
+ models.
55
+
56
+ [:octicons-arrow-right-24: Set up your first project](project-setup/tutorials/set-up-project.md)
57
+ [:octicons-arrow-right-24: Verify queries across models](project-setup/how-to/verification.md)
58
+
59
+ - :material-code-braces:{ .lg .middle } **[Design](design/architecture.md)**
60
+
61
+ ---
62
+
63
+ Architecture, internals, and contributor notes for the datasight
64
+ codebase itself.
65
+
66
+ [:octicons-arrow-right-24: Architecture](design/architecture.md)
67
+
68
+ </div>
@@ -4,7 +4,7 @@
4
4
  for each measure and define calculated measures (like `net_load_mw`) that
5
5
  behave like first-class columns. For the concept behind measures and how
6
6
  they influence the AI, see
7
- [What semantic measures are](../explanation/semantic-measures.md).
7
+ [What semantic measures are](../concepts/semantic-measures.md).
8
8
 
9
9
  ## Inspect what datasight inferred
10
10
 
@@ -30,7 +30,7 @@ databases, data warehouses, or managed services like RDS or Cloud SQL.
30
30
 
31
31
  **Flight SQL** is for remote query engines that speak the Arrow Flight SQL
32
32
  protocol, such as [GizmoSQL](https://github.com/gizmodata/gizmosql) on an
33
- HPC cluster. See [Connect to a remote Flight SQL backend](../end-user/how-to/connect-flight-sql.md)
33
+ HPC cluster. See [Connect to a remote Flight SQL backend](../../use/how-to/connect-flight-sql.md)
34
34
  for a full walkthrough.
35
35
 
36
36
  **Spark** connects to an Apache Spark cluster via
@@ -172,7 +172,7 @@ ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO datasight;
172
172
  ## Flight SQL
173
173
 
174
174
  Flight SQL connects to remote query engines over gRPC. See
175
- [Connect to a remote Flight SQL backend](../end-user/how-to/connect-flight-sql.md) for a detailed
175
+ [Connect to a remote Flight SQL backend](../../use/how-to/connect-flight-sql.md) for a detailed
176
176
  guide using GizmoSQL.
177
177
 
178
178
  ```bash
@@ -193,7 +193,7 @@ FLIGHT_SQL_TOKEN=your_bearer_token
193
193
 
194
194
  Spark connects to an Apache Spark cluster over Spark Connect. Use this
195
195
  for multi-terabyte datasets that won't fit on a single machine. See
196
- [Connect to an Apache Spark backend](../end-user/how-to/connect-spark.md)
196
+ [Connect to an Apache Spark backend](../../use/how-to/connect-spark.md)
197
197
  for the full walkthrough.
198
198
 
199
199
  ```bash
@@ -216,5 +216,5 @@ as predicates.
216
216
 
217
217
  ## All environment variables
218
218
 
219
- See the [Configuration reference](../reference/configuration.md) for a
219
+ See the [Configuration reference](../../reference/configuration.md) for a
220
220
  complete list of database-related environment variables.
@@ -0,0 +1,40 @@
1
+ # Declare table joins
2
+
3
+ datasight infers foreign keys from naming convention — a column named
4
+ `plant_id` is treated as a likely FK to a `plants` table with an `id`
5
+ column. When that convention doesn't match your schema, declare the
6
+ relationships explicitly in `joins.yaml`. The declarations are used by
7
+ `datasight integrity` and inform the AI agent when it writes joins.
8
+
9
+ ## Create `joins.yaml`
10
+
11
+ `joins.yaml` lives in the project root. Each entry maps a child column to
12
+ a parent table and column:
13
+
14
+ ```yaml
15
+ - child_table: generation_fuel
16
+ child_column: plant_id
17
+ parent_table: plants
18
+ parent_column: id # optional, defaults to "id"
19
+
20
+ - child_table: generation_fuel
21
+ child_column: energy_source_code
22
+ parent_table: energy_sources
23
+ parent_column: code
24
+ ```
25
+
26
+ `parent_column` defaults to `id`, so most entries reduce to three lines.
27
+
28
+ ## Verify the declarations
29
+
30
+ `datasight integrity` reports primary keys, duplicate keys, orphan FKs,
31
+ and join-explosion risks. Once `joins.yaml` is in place it follows the
32
+ declared relationships instead of guessing:
33
+
34
+ ```bash
35
+ datasight integrity
36
+ datasight integrity --table generation_fuel
37
+ ```
38
+
39
+ See [Audit data quality](../../use/how-to/audit-data-quality.md#check-referential-integrity)
40
+ for the full integrity workflow.
@@ -16,7 +16,7 @@ questions immediately.
16
16
  You can add more files at any time from the sidebar. When you're ready to
17
17
  save your work, click **Save** in the header to create a project.
18
18
 
19
- See the [EIA generation tutorial](../end-user/tutorials/getting-started.md) for a walkthrough.
19
+ See the [EIA generation tutorial](../../use/tutorials/getting-started.md) for a walkthrough.
20
20
 
21
21
  ## Manual setup
22
22
 
@@ -167,7 +167,7 @@ your project directory.
167
167
  1. **Use `schema.yaml` to limit the schema** (this page).
168
168
  2. **Switch to a backend with a larger context window** — OpenAI
169
169
  (128k), Anthropic (200k), or a local Ollama model (typically
170
- 8k–32k, check the specific model). See [Choosing an LLM](../concepts/choosing-an-llm.md).
170
+ 8k–32k, check the specific model). See [Choosing an LLM](../../use/concepts/choosing-an-llm.md).
171
171
 
172
172
  Option 1 often improves answer quality regardless of model, so try it
173
173
  first.
@@ -0,0 +1,84 @@
1
+ # Define validation rules
2
+
3
+ `validation.yaml` declares expectations about your data that should hold
4
+ across every refresh — required columns, allowed values, freshness, row
5
+ counts, uniqueness, and so on. `datasight validate` checks each rule and
6
+ reports `pass`, `fail`, or `warn`. Lock these in alongside the schema so
7
+ that data drift is caught the moment it appears, not after a stakeholder
8
+ spots a bad number.
9
+
10
+ ## Scaffold a starting file
11
+
12
+ ```bash
13
+ datasight validate --scaffold
14
+ ```
15
+
16
+ This writes a commented `validation.yaml` into the project directory.
17
+ Edit it to match your data:
18
+
19
+ ```yaml
20
+ - table: generation_fuel
21
+ rules:
22
+ - type: required_columns
23
+ columns: [plant_id, report_date, energy_source_code, net_generation_mwh]
24
+
25
+ - type: max_null_rate
26
+ column: net_generation_mwh
27
+ threshold: 0.05
28
+
29
+ - type: numeric_range
30
+ column: net_generation_mwh
31
+ min: 0
32
+
33
+ - type: allowed_values
34
+ column: energy_source_code
35
+ values: [NG, COL, NUC, SUN, WND, WAT, OTH, PET, GEO, BIO, WDS, OOG]
36
+
37
+ - type: uniqueness
38
+ columns: [plant_id, report_date, energy_source_code]
39
+
40
+ - type: row_count
41
+ min: 100
42
+
43
+ - type: freshness
44
+ column: report_date
45
+ max_age_days: 90
46
+ ```
47
+
48
+ ## Supported rule types
49
+
50
+ | Rule | Purpose |
51
+ |------|---------|
52
+ | `required_columns` | Columns that must exist in the schema |
53
+ | `max_null_rate` | Maximum allowed fraction of NULL values (0.0–1.0) |
54
+ | `numeric_range` | `min` and/or `max` bounds for a numeric column |
55
+ | `allowed_values` | Whitelist of accepted category values |
56
+ | `regex` | Pattern that all non-null values must match |
57
+ | `uniqueness` | Composite key that must be unique across rows |
58
+ | `monotonic` | Column must be non-decreasing or strictly increasing |
59
+ | `row_count` | Table row count must fall within `min`/`max` bounds |
60
+ | `freshness` | Latest date must be within `max_age_days` of today |
61
+
62
+ ## Run the rules
63
+
64
+ ```bash
65
+ datasight validate
66
+ datasight validate --table generation_fuel
67
+ datasight validate --format markdown -o validation.md
68
+ ```
69
+
70
+ Each result is reported as `pass`, `fail`, or `warn`, with a short detail
71
+ string explaining the violation. See
72
+ [Audit data quality](../../use/how-to/audit-data-quality.md#run-declarative-validation)
73
+ for how `validate` fits with the other deterministic audits.
74
+
75
+ ## Which file should you edit?
76
+
77
+ | File | Purpose |
78
+ |------|---------|
79
+ | `schema_description.md` | Narrative domain context |
80
+ | `queries.yaml` | Example questions and correct SQL |
81
+ | `measures.yaml` | Metric semantics and calculated measures |
82
+ | `time_series.yaml` | Temporal structure and completeness expectations |
83
+ | `joins.yaml` | Foreign-key relationships when naming convention doesn't apply |
84
+ | `validation.yaml` | Declarative data-quality rules |
@@ -1,12 +1,16 @@
1
- # Set up a project
1
+ # Set up your first project
2
2
 
3
- This guide walks you through creating a datasight project for your database.
3
+ This tutorial walks you through creating a datasight project for your
4
+ database — from installing the CLI to launching the web UI on your own
5
+ data. Allow about ten minutes. By the end you'll have a project directory
6
+ with a working `.env`, a database connection, and AI-generated drafts of
7
+ the schema description and example queries.
4
8
 
5
9
  ## Prerequisites
6
10
 
7
11
  - Python 3.11+
8
12
  - A database: DuckDB file, SQLite file, PostgreSQL server, or CSV/Parquet/Excel files
9
- - An LLM provider: Anthropic API key, OpenAI API key, GitHub account (free, public), or Ollama (free, local). Not sure which? See [Choosing an LLM](../concepts/choosing-an-llm.md).
13
+ - An LLM provider: Anthropic API key, OpenAI API key, GitHub account (free, public), or Ollama (free, local). Not sure which? See [Choosing an LLM](../../use/concepts/choosing-an-llm.md).
10
14
 
11
15
  ## Install datasight
12
16
 
@@ -15,7 +19,7 @@ uv tool install datasight
15
19
  ```
16
20
 
17
21
  Don't have [uv](https://docs.astral.sh/uv/) yet? See
18
- [Install datasight](../end-user/how-to/install.md). All database
22
+ [Install datasight](../../use/how-to/install.md). All database
19
23
  backends (DuckDB, SQLite, PostgreSQL) and LLM providers (Anthropic,
20
24
  GitHub Models, Ollama) are included.
21
25
 
@@ -34,7 +38,7 @@ and uncomment the credentials you actually use — `ANTHROPIC_API_KEY`,
34
38
  machine will pick up these values automatically, so each project's `.env`
35
39
  only has to set provider, model, and database. Per-project `.env` values
36
40
  still override the global file when you need a different key for one
37
- project. See [Configuration reference](../reference/configuration.md) for
41
+ project. See [Configuration reference](../../reference/configuration.md) for
38
42
  the full precedence rules.
39
43
 
40
44
  ## Create a project
@@ -56,7 +60,7 @@ This creates four template files:
56
60
  : Example question/SQL pairs.
57
61
 
58
62
  `time_series.yaml`
59
- : Declare temporal structure for completeness checks. See [Declare time series](../end-user/how-to/declare-time-series.md).
63
+ : Declare temporal structure for completeness checks. See [Declare time series](../how-to/declare-time-series.md).
60
64
 
61
65
  ## Configure
62
66
 
@@ -65,7 +69,7 @@ assume you've already run `datasight config init` and put your API keys in
65
69
  `~/.config/datasight/.env`. If not, you can also paste the key directly
66
70
  into the project `.env` — both work. For guidance on picking a provider —
67
71
  data sensitivity, cost tiers, local vs hosted — see
68
- [Choosing an LLM](../concepts/choosing-an-llm.md).
72
+ [Choosing an LLM](../../use/concepts/choosing-an-llm.md).
69
73
 
70
74
  **Option A — Anthropic (cloud API):**
71
75
 
@@ -134,7 +138,7 @@ POSTGRES_PASSWORD=secret
134
138
  # POSTGRES_URL=postgresql://user:pass@host:5432/dbname
135
139
  ```
136
140
 
137
- See [Configuration reference](../reference/configuration.md) for all
141
+ See [Configuration reference](../../reference/configuration.md) for all
138
142
  PostgreSQL options.
139
143
 
140
144
  ### Auto-generate documentation
@@ -180,7 +184,7 @@ When CSV, Parquet, Excel, or mixed file inputs are passed, datasight also:
180
184
  - Writes a persistent DuckDB file (`database.duckdb` by default in the
181
185
  project directory) with views pointing at each CSV/Parquet input file.
182
186
  Excel sheets are materialized as tables (one table per sheet — see
183
- [Query files directly](querying-files.md#excel-files)).
187
+ [Query files directly](../how-to/querying-files.md#excel-files)).
184
188
  - Creates or updates `.env` with `DB_MODE=duckdb` and `DB_PATH` set to
185
189
  the new database. Existing entries are replaced in place; other env
186
190
  values (like `ANTHROPIC_API_KEY`) are preserved.
@@ -198,7 +202,7 @@ the AI gets you a solid starting point but you know your data best.
198
202
 
199
203
  It also seeds a `measures.yaml` file for project-specific semantic
200
204
  overrides and a `time_series.yaml` file for temporal completeness
201
- declarations (see [Declare time series](../end-user/how-to/declare-time-series.md)).
205
+ declarations (see [Declare time series](../how-to/declare-time-series.md)).
202
206
 
203
207
  To regenerate after making database changes:
204
208
 
@@ -212,10 +216,10 @@ You can also write these files by hand, or refine the generated versions.
212
216
 
213
217
  Edit `schema_description.md` to explain your data — domain concepts, column
214
218
  meanings, code lookups, and query tips. The AI uses this context to write
215
- better SQL. See [Write a schema description](schema-description.md) for guidance.
219
+ better SQL. See [Write a schema description](../how-to/schema-description.md) for guidance.
216
220
 
217
221
  Edit `queries.yaml` with example questions and their correct SQL. See
218
- [Create example queries](example-queries.md) for guidance.
222
+ [Create example queries](../how-to/example-queries.md) for guidance.
219
223
 
220
224
  If your project contains energy metrics, rates, or project-specific formulas,
221
225
  edit `measures.yaml` to lock in semantic behavior such as:
@@ -226,7 +230,7 @@ edit `measures.yaml` to lock in semantic behavior such as:
226
230
  - preferred chart types
227
231
  - calculated measures such as `net_load_mw`
228
232
 
229
- See [Configure semantic measures](../end-user/how-to/configure-measures.md) for the full `measures.yaml` workflow.
233
+ See [Configure semantic measures](../how-to/configure-measures.md) for the full `measures.yaml` workflow.
230
234
 
231
235
  ## Run
232
236
 
@@ -262,7 +266,7 @@ datasight dimensions --table generation_fuel
262
266
  datasight trends --table generation_fuel
263
267
  ```
264
268
 
265
- See [Ask questions from the CLI](../end-user/how-to/ask-from-cli.md) for batch mode, export
269
+ See [Ask questions from the CLI](../../use/how-to/ask-from-cli.md) for batch mode, export
266
270
  options, and diagnostics.
267
271
 
268
272
  ## What happens at startup
@@ -26,7 +26,7 @@ uv tool install datasight
26
26
  ```
27
27
 
28
28
  Don't have [uv](https://docs.astral.sh/uv/) yet? See
29
- [Install datasight](../how-to/install.md).
29
+ [Install datasight](../../use/how-to/install.md).
30
30
 
31
31
  ## 2. Generate the dataset
32
32
 
@@ -49,7 +49,7 @@ listing each gap and duplicate the generator planted.
49
49
 
50
50
  ## 4. Explore interactively
51
51
 
52
- Add an API key to `.env` (see [Set up a project](../../project-developer/set-up-project.md#configure))
52
+ Add an API key to `.env` (see [Set up a project](set-up-project.md#configure))
53
53
  and launch the web UI:
54
54
 
55
55
  ```bash
@@ -67,5 +67,5 @@ Try questions like:
67
67
  - [Declare time series](../how-to/declare-time-series.md) — write a
68
68
  `time_series.yaml` for your own data so `datasight quality` can audit
69
69
  completeness.
70
- - [Audit data quality](../how-to/audit-data-quality.md) — the full set of
70
+ - [Audit data quality](../../use/how-to/audit-data-quality.md) — the full set of
71
71
  deterministic quality commands.