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.
- {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/ci.yml +3 -3
- {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/codeql.yml +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/gh-pages.yml +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/.github/workflows/release.yml +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/PKG-INFO +8 -5
- {datasight-0.6.2 → datasight-0.7.0}/README.md +4 -1
- {datasight-0.6.2/docs/tool-developer → datasight-0.7.0/docs/design}/architecture.md +1 -1
- {datasight-0.6.2/docs/concepts → datasight-0.7.0/docs/design}/how-the-agent-works.md +7 -7
- {datasight-0.6.2/docs/concepts → datasight-0.7.0/docs/design}/sql-result-cache.md +1 -1
- datasight-0.7.0/docs/index.md +68 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/how-to/configure-measures.md +1 -1
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/database-connections.md +4 -4
- datasight-0.7.0/docs/project-setup/how-to/declare-joins.md +40 -0
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/querying-files.md +1 -1
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/schema-config.md +1 -1
- datasight-0.7.0/docs/project-setup/how-to/validation-rules.md +84 -0
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/tutorials}/set-up-project.md +18 -14
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/tutorials/time-validation.md +3 -3
- {datasight-0.6.2 → datasight-0.7.0}/docs/reference/cli.md +220 -138
- {datasight-0.6.2 → datasight-0.7.0}/docs/reference/configuration.md +9 -11
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/keyboard-shortcuts.md +2 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/query-confidence-toggles.md +2 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs}/reference/web-ui.md +2 -3
- {datasight-0.6.2/docs → datasight-0.7.0/docs/use}/concepts/choosing-an-llm.md +5 -5
- {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/use/concepts}/query-confidence.md +2 -2
- {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/use/concepts}/trusting-ai-results.md +30 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/ask-from-cli.md +1 -1
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/ask-in-web-ui.md +2 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/audit-data-quality.md +12 -76
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/explore-files.md +2 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/review-query-log.md +10 -26
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/run-on-hpc.md +2 -2
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/save-and-rerun.md +41 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/tutorials/getting-started.md +3 -3
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/tutorials/tempo.md +2 -2
- {datasight-0.6.2 → datasight-0.7.0}/frontend/package-lock.json +379 -1548
- {datasight-0.6.2 → datasight-0.7.0}/frontend/package.json +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/chat.ts +60 -5
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/dashboard.ts +3 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/summarize.ts +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChatInput.svelte +2 -2
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardToolbar.svelte +28 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ExportBar.svelte +20 -8
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Header.svelte +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/LandingPage.svelte +1 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MessageBubble.svelte +117 -27
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MessageList.svelte +18 -1
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/chat.svelte.ts +10 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/dashboard.svelte.ts +8 -0
- datasight-0.7.0/frontend/tests/replay.test.ts +120 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/summarize.test.ts +1 -0
- datasight-0.7.0/mkdocs.yml +117 -0
- {datasight-0.6.2 → datasight-0.7.0}/pyproject.toml +4 -4
- {datasight-0.6.2 → datasight-0.7.0}/scripts/generate_cli_reference.py +25 -9
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/distribution.py +2 -2
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/export.py +34 -5
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/data_profile.py +33 -23
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/export.py +238 -3
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/export_dashboard.mustache +2 -2
- datasight-0.7.0/src/datasight/templates/html/export_session_python.mustache +110 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/app.py +134 -11
- 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
- datasight-0.7.0/src/datasight/web/static/assets/index-DyflbovG.css +1 -0
- 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
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/templates/index.html +2 -2
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_commands.py +7 -2
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_data_profile_extra.py +46 -0
- datasight-0.7.0/tests/test_export.py +651 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_web_app_extra.py +86 -1
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_web_ui_smoke.py +12 -2
- {datasight-0.6.2 → datasight-0.7.0}/uv.lock +239 -40
- datasight-0.6.2/docs/concepts/users-and-roles.md +0 -70
- datasight-0.6.2/docs/index.md +0 -70
- datasight-0.6.2/mkdocs.yml +0 -115
- datasight-0.6.2/src/datasight/web/static/assets/index-55BjTfy-.css +0 -1
- datasight-0.6.2/tests/test_export.py +0 -309
- {datasight-0.6.2 → datasight-0.7.0}/.github/dependabot.yml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/.gitignore +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/.pre-commit-config.yaml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/AGENTS.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/CLAUDE.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/DISCLAIMER.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/LICENSE +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/codecov.yml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/dashboard-filter-roadmap.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/datasight-icon.svg +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/01-landing.png +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/02-chat-view.png +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/03-sql-editor.png +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/04-chart-result.png +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/05-dashboard.png +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/assets/screenshots/06-web-ui-reference.png +0 -0
- {datasight-0.6.2/docs/tool-developer → datasight-0.7.0/docs/design}/contributing.md +0 -0
- {datasight-0.6.2/docs/end-user/explanation → datasight-0.7.0/docs/project-setup/concepts}/semantic-measures.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/how-to/declare-time-series.md +0 -0
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/example-queries.md +0 -0
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/schema-description.md +0 -0
- {datasight-0.6.2/docs/project-developer → datasight-0.7.0/docs/project-setup/how-to}/verification.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/docs/stylesheets/extra.css +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/build-a-dashboard.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/connect-flight-sql.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/connect-spark.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/create-visualizations.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/install.md +0 -0
- {datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/use}/how-to/save-dashboard-template.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/e2e/screenshots.spec.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/e2e/smoke.spec.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/index.html +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/playwright.config.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/public/datasight-icon.svg +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/App.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/app.css +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/assets/datasight-icon.svg +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/client.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/measures.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/projects.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/saved.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/schema.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/settings.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/sql.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/api/starters.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/AddFilesInput.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/BookmarksList.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChartResult.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ChatView.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ClarifyOptions.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/CodeEditor.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/CommandPalette.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ConversationsList.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardCard.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardGrid.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardNote.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardSection.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DashboardView.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/DiscoveredFilesCard.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ExploreCard.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/LlmConfigForm.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MeasureEditor.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/MeasureEditorModal.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/PlotlyChart.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectCard.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectHealth.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ProjectsPanel.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/QueriesList.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/QueryHistoryPanel.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/RecipesList.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ReportsList.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/RunDetails.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SaveProjectModal.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SchemaInspector.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SettingsPanel.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ShortcutsModal.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Sidebar.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SidebarSection.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SqlConfirmDialog.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SqlView.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/StarterGrid.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/StarterOverview.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/SuggestionButtons.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/TableResult.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/Toast.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/components/ToolIndicator.svelte +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/palette.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/queries.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/schema.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/session.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/settings.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/sidebar.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/sql_editor.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/stores/toast.svelte.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/types/plotly-js-dist-min.d.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/types/plotly.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/conversation.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/emacs-keys.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/format.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/markdown.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/search.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/lib/utils/sql-completion.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/main.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/src/vite-env.d.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/svelte.config.js +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/chat.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/emacs-keys.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/format.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/search.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/sql-completion.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tests/stores.test.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/tsconfig.json +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/vite.config.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/frontend/vitest.config.ts +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/scripts/build-frontend.sh +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/__init__.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/__main__.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/agent.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/audit_report.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/chart.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/__init__.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/ask.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/audit_report.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/config.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/demo.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/dimensions.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/doctor.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/generate.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/init.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/inspect.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/integrity.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/log.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/measures.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/profile.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/quality.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/recipes.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/report.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/run.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/templates.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/trends.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/validate.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cli_commands/verify.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/config.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/cost.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/dashboard_template.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo_dsgrid_tempo.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/demo_time_validation.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/distribution.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/events.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/exceptions.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/explore.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/generate.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/identifiers.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/integrity.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/llm.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/prompts.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/query_log.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/recent_projects.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/runner.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema_links.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/schema_types.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/settings.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/sql_validation.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/env.template +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/global_env.template +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/audit_report.mustache +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/chart.mustache +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/html/export_session.mustache +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/queries.yaml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/schema_description.md +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/time_series.yaml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templates/validation.yaml +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/templating.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/validation.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/verify.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/__init__.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/src/datasight/web/static/datasight-icon.svg +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/__init__.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/_env_helpers.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/conftest.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_agent.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_agent_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_audit.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_audit_report_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_caching_runner.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_ask.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_config.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_tools.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_cli_tools_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_config.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_config_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_dashboard_template.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_distribution.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_docs_cli_reference.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_explore_spark.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_export_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_generate_persist_db.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_identifiers.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_integrity.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_llm.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_prompts.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_query_log.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_recent_projects.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_reports.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_runner.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_runner_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_config_load.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_filter.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_schema_links.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_settings.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_settings_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_spark_runner.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_sql_validation.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_sql_validation_extra.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_time_series.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_validation.py +0 -0
- {datasight-0.6.2 → datasight-0.7.0}/tests/test_verify.py +0 -0
- {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@
|
|
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@
|
|
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@
|
|
116
|
+
- uses: actions/checkout@v6
|
|
117
117
|
|
|
118
118
|
- name: Install uv
|
|
119
119
|
uses: astral-sh/setup-uv@v7
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datasight
|
|
3
|
-
Version: 0.
|
|
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<
|
|
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<
|
|
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<
|
|
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** —
|
|
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** —
|
|
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](../
|
|
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](../
|
|
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](../
|
|
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-
|
|
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](../
|
|
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](
|
|
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`](
|
|
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
|
+

|
|
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>
|
{datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/how-to/configure-measures.md
RENAMED
|
@@ -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](../
|
|
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](
|
|
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](
|
|
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](
|
|
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](
|
|
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](
|
|
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](
|
|
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
|
|
1
|
+
# Set up your first project
|
|
2
2
|
|
|
3
|
-
This
|
|
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](
|
|
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](
|
|
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](
|
|
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](../
|
|
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](
|
|
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](
|
|
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](../
|
|
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](../
|
|
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](
|
|
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
|
{datasight-0.6.2/docs/end-user → datasight-0.7.0/docs/project-setup}/tutorials/time-validation.md
RENAMED
|
@@ -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](
|
|
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](
|
|
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](
|
|
70
|
+
- [Audit data quality](../../use/how-to/audit-data-quality.md) — the full set of
|
|
71
71
|
deterministic quality commands.
|