datasight 0.3.0__tar.gz → 0.3.1__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.3.1/.github/dependabot.yml +34 -0
- {datasight-0.3.0 → datasight-0.3.1}/.github/workflows/ci.yml +30 -0
- datasight-0.3.1/.github/workflows/codeql.yml +42 -0
- {datasight-0.3.0 → datasight-0.3.1}/AGENTS.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/CLAUDE.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/PKG-INFO +3 -3
- {datasight-0.3.0 → datasight-0.3.1}/README.md +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/docs/concepts/choosing-an-llm.md +11 -7
- datasight-0.3.1/docs/end-user/how-to/install.md +84 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/run-on-hpc.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/tutorials/getting-started.md +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/tutorials/tempo.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/tutorials/time-validation.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/index.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/set-up-project.md +8 -3
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/verification.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/reference/cli.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/reference/configuration.md +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/docs/tool-developer/contributing.md +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/app.css +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/LlmConfigForm.svelte +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SqlView.svelte +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/pyproject.toml +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/cli.py +9 -4
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/dashboard_template.py +5 -7
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/data_profile.py +1 -4
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/generate.py +17 -5
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/schema.py +12 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/settings.py +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/env.template +1 -1
- datasight-0.3.0/src/datasight/web/static/assets/index-B9ADeqpL.js → datasight-0.3.1/src/datasight/web/static/assets/index-BLWRdIfD.js +3 -3
- datasight-0.3.0/src/datasight/web/static/assets/index-cOOWLGwC.css → datasight-0.3.1/src/datasight/web/static/assets/index-Cq4zJr8M.css +1 -1
- datasight-0.3.0/src/datasight/web/static/assets/plotly.min-8S0eIcYl.js → datasight-0.3.1/src/datasight/web/static/assets/plotly.min-CzY2oMrX.js +1 -1
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/web/templates/index.html +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/tests/conftest.py +1 -3
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_cli_ask.py +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_cli_commands.py +2 -2
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_cli_tools.py +4 -4
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_generate.py +54 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_schema_extra.py +18 -0
- {datasight-0.3.0 → datasight-0.3.1}/uv.lock +1 -1
- datasight-0.3.0/docs/end-user/how-to/install.md +0 -67
- {datasight-0.3.0 → datasight-0.3.1}/.github/workflows/gh-pages.yml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/.github/workflows/release.yml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/.gitignore +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/.pre-commit-config.yaml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/DISCLAIMER.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/LICENSE +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/codecov.yml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/dashboard-filter-roadmap.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/datasight-icon.svg +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/01-landing.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/02-chat-view.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/03-sql-editor.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/04-chart-result.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/05-dashboard.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/assets/screenshots/06-web-ui-reference.png +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/concepts/how-the-agent-works.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/concepts/sql-result-cache.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/concepts/users-and-roles.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/explanation/query-confidence.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/explanation/semantic-measures.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/explanation/trusting-ai-results.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/ask-from-cli.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/ask-in-web-ui.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/audit-data-quality.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/build-a-dashboard.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/configure-measures.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/connect-flight-sql.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/create-visualizations.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/declare-time-series.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/explore-files.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/review-query-log.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/save-and-rerun.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/how-to/save-dashboard-template.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/reference/keyboard-shortcuts.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/reference/query-confidence-toggles.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/end-user/reference/web-ui.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/database-connections.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/example-queries.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/querying-files.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/schema-config.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/project-developer/schema-description.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/stylesheets/extra.css +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/docs/tool-developer/architecture.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/e2e/screenshots.spec.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/e2e/smoke.spec.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/index.html +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/package-lock.json +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/package.json +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/playwright.config.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/public/datasight-icon.svg +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/App.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/assets/datasight-icon.svg +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/chat.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/client.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/dashboard.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/measures.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/projects.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/saved.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/schema.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/settings.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/sql.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/starters.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/api/summarize.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/AddFilesInput.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/BookmarksList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ChartResult.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ChatInput.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ChatView.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ClarifyOptions.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/CodeEditor.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/CommandPalette.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ConversationsList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardCard.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardGrid.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardNote.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardSection.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardToolbar.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DashboardView.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/DiscoveredFilesCard.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ExploreCard.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ExportBar.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/Header.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/LandingPage.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/MeasureEditor.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/MeasureEditorModal.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/MessageBubble.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/MessageList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/PlotlyChart.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ProjectCard.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ProjectHealth.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ProjectsPanel.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/QueriesList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/QueryHistoryPanel.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/RecipesList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ReportsList.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/RunDetails.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SaveProjectModal.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SchemaInspector.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SettingsPanel.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ShortcutsModal.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/Sidebar.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SidebarSection.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SqlConfirmDialog.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/StarterGrid.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/StarterOverview.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/SuggestionButtons.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/TableResult.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/Toast.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/components/ToolIndicator.svelte +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/chat.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/dashboard.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/palette.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/queries.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/schema.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/session.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/settings.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/sidebar.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/sql_editor.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/stores/toast.svelte.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/types/plotly-js-dist-min.d.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/types/plotly.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/conversation.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/emacs-keys.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/format.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/markdown.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/search.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/lib/utils/sql-completion.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/src/main.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/svelte.config.js +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/chat.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/emacs-keys.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/format.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/search.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/sql-completion.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/stores.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tests/summarize.test.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/tsconfig.json +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/vite.config.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/frontend/vitest.config.ts +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/mkdocs.yml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/scripts/build-frontend.sh +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/scripts/generate_cli_reference.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/__init__.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/__main__.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/agent.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/audit_report.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/chart.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/config.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/cost.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/demo.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/demo_dsgrid_tempo.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/demo_time_validation.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/distribution.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/events.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/exceptions.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/explore.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/export.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/identifiers.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/integrity.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/llm.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/prompts.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/query_log.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/recent_projects.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/runner.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/sql_validation.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/global_env.template +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/html/audit_report.mustache +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/html/chart.mustache +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/html/export_dashboard.mustache +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/html/export_session.mustache +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/queries.yaml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/schema_description.md +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/time_series.yaml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templates/validation.yaml +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/templating.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/validation.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/verify.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/web/__init__.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/web/app.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/src/datasight/web/static/datasight-icon.svg +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/__init__.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/_env_helpers.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_agent.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_agent_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_audit.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_audit_report_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_caching_runner.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_cli_config.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_cli_tools_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_config.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_config_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_dashboard_template.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_data_profile_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_distribution.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_docs_cli_reference.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_explore.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_explore_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_export.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_export_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_generate_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_generate_persist_db.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_identifiers.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_integrity.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_llm.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_prompts.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_query_log.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_recent_projects.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_reports.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_runner.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_runner_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_schema.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_schema_config_load.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_schema_filter.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_settings.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_settings_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_sql_validation.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_sql_validation_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_time_series.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_validation.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_verify.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_web_app.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_web_app_extra.py +0 -0
- {datasight-0.3.0 → datasight-0.3.1}/tests/test_web_ui_smoke.py +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "uv"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
open-pull-requests-limit: 5
|
|
8
|
+
groups:
|
|
9
|
+
python-minor-patch:
|
|
10
|
+
update-types:
|
|
11
|
+
- "minor"
|
|
12
|
+
- "patch"
|
|
13
|
+
|
|
14
|
+
- package-ecosystem: "npm"
|
|
15
|
+
directory: "/frontend"
|
|
16
|
+
schedule:
|
|
17
|
+
interval: "weekly"
|
|
18
|
+
open-pull-requests-limit: 5
|
|
19
|
+
groups:
|
|
20
|
+
npm-minor-patch:
|
|
21
|
+
update-types:
|
|
22
|
+
- "minor"
|
|
23
|
+
- "patch"
|
|
24
|
+
|
|
25
|
+
- package-ecosystem: "github-actions"
|
|
26
|
+
directory: "/"
|
|
27
|
+
schedule:
|
|
28
|
+
interval: "weekly"
|
|
29
|
+
open-pull-requests-limit: 5
|
|
30
|
+
groups:
|
|
31
|
+
actions-minor-patch:
|
|
32
|
+
update-types:
|
|
33
|
+
- "minor"
|
|
34
|
+
- "patch"
|
|
@@ -109,3 +109,33 @@ jobs:
|
|
|
109
109
|
name: datasight-tests
|
|
110
110
|
fail_ci_if_error: false
|
|
111
111
|
verbose: true
|
|
112
|
+
|
|
113
|
+
security:
|
|
114
|
+
runs-on: ubuntu-latest
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v4
|
|
117
|
+
|
|
118
|
+
- name: Install uv
|
|
119
|
+
uses: astral-sh/setup-uv@v4
|
|
120
|
+
with:
|
|
121
|
+
python-version: "3.13"
|
|
122
|
+
enable-cache: false
|
|
123
|
+
|
|
124
|
+
- name: Set up Node
|
|
125
|
+
uses: actions/setup-node@v4
|
|
126
|
+
with:
|
|
127
|
+
node-version: "22"
|
|
128
|
+
cache: npm
|
|
129
|
+
cache-dependency-path: frontend/package-lock.json
|
|
130
|
+
|
|
131
|
+
- name: Export Python dependencies
|
|
132
|
+
run: uv export --frozen --no-dev --no-emit-project --format requirements-txt -o requirements.txt
|
|
133
|
+
|
|
134
|
+
- name: Run pip-audit
|
|
135
|
+
uses: pypa/gh-action-pip-audit@v1.1.0
|
|
136
|
+
with:
|
|
137
|
+
inputs: requirements.txt
|
|
138
|
+
|
|
139
|
+
- name: Run npm audit
|
|
140
|
+
run: npm audit --omit=dev --audit-level=high
|
|
141
|
+
working-directory: frontend
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "21 6 * * 1"
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
name: Analyze (${{ matrix.language }})
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
actions: read
|
|
17
|
+
contents: read
|
|
18
|
+
security-events: write
|
|
19
|
+
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
include:
|
|
24
|
+
- language: python
|
|
25
|
+
build-mode: none
|
|
26
|
+
- language: javascript-typescript
|
|
27
|
+
build-mode: none
|
|
28
|
+
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Initialize CodeQL
|
|
33
|
+
uses: github/codeql-action/init@v3
|
|
34
|
+
with:
|
|
35
|
+
languages: ${{ matrix.language }}
|
|
36
|
+
build-mode: ${{ matrix.build-mode }}
|
|
37
|
+
queries: security-and-quality
|
|
38
|
+
|
|
39
|
+
- name: Perform CodeQL Analysis
|
|
40
|
+
uses: github/codeql-action/analyze@v3
|
|
41
|
+
with:
|
|
42
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -134,7 +134,7 @@ Docs use **Zensical**. Key details:
|
|
|
134
134
|
## Testing
|
|
135
135
|
|
|
136
136
|
- **pytest + pytest-asyncio** with `asyncio_mode = "auto"`
|
|
137
|
-
- **Integration marker**: tests marked `integration` require a running local Ollama instance with `
|
|
137
|
+
- **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen2.5:7b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
|
|
138
138
|
- **Vitest** for frontend unit tests (`frontend/tests/`). Run with `cd frontend && npm test`.
|
|
139
139
|
- **Playwright** for frontend E2E tests (`frontend/e2e/`). Requires `datasight run` to be running. Run with `cd frontend && npm run test:e2e`.
|
|
140
140
|
- **Web UI smoke tests** live in `tests/test_web_ui_smoke.py` and exercise the rendered FastAPI app without a browser build step
|
|
@@ -140,7 +140,7 @@ artifacts, so do not commit bundled frontend output.
|
|
|
140
140
|
## Testing
|
|
141
141
|
|
|
142
142
|
- **pytest + pytest-asyncio** with `asyncio_mode = "auto"`
|
|
143
|
-
- **Integration marker**: tests marked `integration` require a running local Ollama instance with `
|
|
143
|
+
- **Integration marker**: tests marked `integration` require a running local Ollama instance with `qwen2.5:7b` available and are excluded in CI with `pytest -m "not integration"`. New tests that call a live LLM provider must be marked `integration`; prefer fake/stub LLM clients for deterministic unit tests.
|
|
144
144
|
- **Vitest** for frontend unit tests (`frontend/tests/`). Run with `cd frontend && npm test`.
|
|
145
145
|
- **Playwright** for frontend E2E tests (`frontend/e2e/`). Requires `datasight run` to be running. Run with `cd frontend && npm run test:e2e`.
|
|
146
146
|
- **Web UI smoke tests** live in `tests/test_web_ui_smoke.py` and exercise the rendered FastAPI app without a browser build step
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datasight
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
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/
|
|
@@ -60,7 +60,7 @@ and **Ollama** (local) as LLM backends.
|
|
|
60
60
|
## Quick start
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
uv tool install
|
|
63
|
+
uv tool install datasight
|
|
64
64
|
|
|
65
65
|
# Create a new project
|
|
66
66
|
mkdir my-project && cd my-project
|
|
@@ -155,7 +155,7 @@ Generated web assets under `src/datasight/web/static/` and
|
|
|
155
155
|
checkout when you want FastAPI to serve the production UI.
|
|
156
156
|
|
|
157
157
|
Ollama-backed CLI tests are marked `integration` because they require a running
|
|
158
|
-
local Ollama server with the `
|
|
158
|
+
local Ollama server with the `qwen2.5:7b` model available. CI runs `pytest -m "not
|
|
159
159
|
integration"`; run `pytest -m integration` locally when you want to exercise the
|
|
160
160
|
live LLM path.
|
|
161
161
|
|
|
@@ -18,7 +18,7 @@ and **Ollama** (local) as LLM backends.
|
|
|
18
18
|
## Quick start
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
uv tool install
|
|
21
|
+
uv tool install datasight
|
|
22
22
|
|
|
23
23
|
# Create a new project
|
|
24
24
|
mkdir my-project && cd my-project
|
|
@@ -113,7 +113,7 @@ Generated web assets under `src/datasight/web/static/` and
|
|
|
113
113
|
checkout when you want FastAPI to serve the production UI.
|
|
114
114
|
|
|
115
115
|
Ollama-backed CLI tests are marked `integration` because they require a running
|
|
116
|
-
local Ollama server with the `
|
|
116
|
+
local Ollama server with the `qwen2.5:7b` model available. CI runs `pytest -m "not
|
|
117
117
|
integration"`; run `pytest -m integration` locally when you want to exercise the
|
|
118
118
|
live LLM path.
|
|
119
119
|
|
|
@@ -9,7 +9,7 @@ This page helps you pick one without reading every provider's pricing page.
|
|
|
9
9
|
| Your situation | Start with |
|
|
10
10
|
|---|---|
|
|
11
11
|
| Trying datasight for the first time, non-sensitive data | **Anthropic Claude Haiku** or **OpenAI GPT-4o-mini** |
|
|
12
|
-
| Want zero cost, don't mind rate limits | **GitHub Models** (free tier) |
|
|
12
|
+
| Want zero cost, don't mind rate limits | **GitHub Models** (free tier, recommended over Ollama for most users) |
|
|
13
13
|
| Already have an OpenAI key | **OpenAI** (`gpt-4o-mini` or `gpt-4.1-mini`) |
|
|
14
14
|
| Data is sensitive and must not leave your network | **Local Ollama** (laptop or HPC GPU node) |
|
|
15
15
|
| Data is sensitive but you have a secure hosted endpoint | **Anthropic on Bedrock** or **Azure OpenAI** (custom `base_url`) |
|
|
@@ -93,9 +93,11 @@ So a Llama 3.1 8B model fits in ~5 GB VRAM at 4-bit, a 70B model needs
|
|
|
93
93
|
| NVIDIA laptop GPU, 8 GB VRAM | 7–8B at 4-bit |
|
|
94
94
|
| NVIDIA laptop GPU, 16 GB VRAM | 13B at 4-bit |
|
|
95
95
|
|
|
96
|
-
For datasight's SQL-generation workload,
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
For datasight's SQL-generation workload, `qwen2.5:7b` is the recommended
|
|
97
|
+
starting point for CLI queries (`datasight ask`). For the web UI with
|
|
98
|
+
visualizations, step up to `qwen2.5:14b` — the 7B model struggles with
|
|
99
|
+
the more complex multi-step agent interactions required for chart
|
|
100
|
+
generation. Smaller models often struggle with realistic schemas.
|
|
99
101
|
|
|
100
102
|
### On an HPC GPU node
|
|
101
103
|
|
|
@@ -120,7 +122,9 @@ your laptop browser).
|
|
|
120
122
|
### When hosted beats local
|
|
121
123
|
|
|
122
124
|
A hosted cheap-tier call (Haiku or GPT-4o-mini) often produces better
|
|
123
|
-
SQL than a locally-run 8B model, at a fraction of a cent.
|
|
125
|
+
SQL than a locally-run 8B model, at a fraction of a cent. GitHub Models
|
|
126
|
+
offers a free tier that handles the full datasight feature set —
|
|
127
|
+
including visualizations — better than most local models. Don't reach
|
|
124
128
|
for local models just to avoid hosted costs — reach for them when data
|
|
125
129
|
sensitivity or offline use requires it.
|
|
126
130
|
|
|
@@ -161,9 +165,9 @@ OPENAI_API_KEY=sk-...
|
|
|
161
165
|
LLM_PROVIDER=github
|
|
162
166
|
GITHUB_TOKEN=ghp-...
|
|
163
167
|
|
|
164
|
-
# Ollama (local)
|
|
168
|
+
# Ollama (local — use for cost/data-security reasons)
|
|
165
169
|
LLM_PROVIDER=ollama
|
|
166
|
-
OLLAMA_MODEL=
|
|
170
|
+
OLLAMA_MODEL=qwen2.5:7b # CLI queries; use qwen2.5:14b for web UI with viz
|
|
167
171
|
```
|
|
168
172
|
|
|
169
173
|
A secure hosted endpoint (Bedrock, Azure OpenAI, corporate proxy) is
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Install datasight
|
|
2
|
+
|
|
3
|
+
datasight is distributed as a Python CLI on PyPI. The recommended
|
|
4
|
+
installer is [uv](https://docs.astral.sh/uv/), which installs datasight
|
|
5
|
+
as a global tool without managing a virtual environment. If you already
|
|
6
|
+
have a Python toolchain you prefer, `pip` works too.
|
|
7
|
+
|
|
8
|
+
=== "uv (recommended)"
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
# Install uv (one-time — see https://docs.astral.sh/uv/getting-started/installation/)
|
|
12
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
13
|
+
|
|
14
|
+
# Install datasight
|
|
15
|
+
uv tool install datasight
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
=== "pip"
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install --user datasight
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
This includes DuckDB, SQLite, PostgreSQL, Anthropic, OpenAI, GitHub
|
|
25
|
+
Models, and Ollama support.
|
|
26
|
+
|
|
27
|
+
## Configure an LLM provider
|
|
28
|
+
|
|
29
|
+
Run `datasight config init` to create `~/.config/datasight/.env`, then add
|
|
30
|
+
your API key there — every project on this machine will pick it up.
|
|
31
|
+
Alternatively, paste the key into the project `.env` or export it in your
|
|
32
|
+
shell. Pick one of:
|
|
33
|
+
|
|
34
|
+
=== "Anthropic"
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
ANTHROPIC_API_KEY=sk-ant-...
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
=== "OpenAI"
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
LLM_PROVIDER=openai
|
|
44
|
+
OPENAI_API_KEY=sk-...
|
|
45
|
+
OPENAI_MODEL=gpt-4o-mini
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
For Azure OpenAI or a corporate gateway, also set `OPENAI_BASE_URL`.
|
|
49
|
+
|
|
50
|
+
=== "GitHub Models"
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
LLM_PROVIDER=github
|
|
54
|
+
GITHUB_TOKEN=ghp_...
|
|
55
|
+
GITHUB_MODELS_MODEL=gpt-4o
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
=== "Ollama (local)"
|
|
59
|
+
|
|
60
|
+
Install [Ollama](https://ollama.com/), pull a tool-calling model, then:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
ollama pull qwen2.5:7b
|
|
64
|
+
|
|
65
|
+
LLM_PROVIDER=ollama
|
|
66
|
+
OLLAMA_MODEL=qwen2.5:7b
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`qwen2.5:7b` is a good starting point for CLI queries (`datasight ask`).
|
|
70
|
+
For the web UI with visualizations, `qwen2.5:14b` handles the more
|
|
71
|
+
complex agent interactions better. For the best experience overall,
|
|
72
|
+
consider [GitHub Models](https://github.com/marketplace/models) (free
|
|
73
|
+
tier) — only use Ollama when cost or data-security requirements demand
|
|
74
|
+
keeping inference local.
|
|
75
|
+
|
|
76
|
+
See the [Configuration reference](../../reference/configuration.md) for
|
|
77
|
+
every supported variable.
|
|
78
|
+
|
|
79
|
+
!!! note "PNG chart export"
|
|
80
|
+
`datasight ask --chart-format png` needs the optional export extra.
|
|
81
|
+
Reinstall with the extra — for example,
|
|
82
|
+
`uv tool install "datasight[export]"` or
|
|
83
|
+
`pip install --user "datasight[export]"`.
|
|
84
|
+
The web UI does not need it.
|
|
@@ -10,7 +10,7 @@ TEMPO](tempo.md) or [Try the time-validation demo](time-validation.md).
|
|
|
10
10
|
## 1. Install
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
uv tool install
|
|
13
|
+
uv tool install datasight
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Don't have [uv](https://docs.astral.sh/uv/) yet? See
|
|
@@ -82,5 +82,5 @@ Click **Pin** on any result to add it to the dashboard.
|
|
|
82
82
|
!!! note "PNG chart export"
|
|
83
83
|
The `datasight ask --chart-format png` CLI command needs the optional
|
|
84
84
|
export extra. Reinstall with:
|
|
85
|
-
`uv tool install "datasight[export]
|
|
85
|
+
`uv tool install "datasight[export]"`.
|
|
86
86
|
The web UI uses interactive HTML charts and does not need this.
|
|
@@ -31,7 +31,7 @@ variants across four body styles (compact, midsize, SUV, pickup).
|
|
|
31
31
|
## 1. Install datasight
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
uv tool install
|
|
34
|
+
uv tool install datasight
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Don't have [uv](https://docs.astral.sh/uv/) yet? See
|
|
@@ -15,7 +15,7 @@ use deterministic CLI inspection commands before involving the LLM.
|
|
|
15
15
|

|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
uv tool install
|
|
18
|
+
uv tool install datasight
|
|
19
19
|
|
|
20
20
|
# Explore files instantly — no project setup needed
|
|
21
21
|
datasight run
|
|
@@ -11,7 +11,7 @@ This guide walks you through creating a datasight project for your database.
|
|
|
11
11
|
## Install datasight
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
uv tool install
|
|
14
|
+
uv tool install datasight
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Don't have [uv](https://docs.astral.sh/uv/) yet? See
|
|
@@ -99,18 +99,23 @@ First, install and start [Ollama](https://ollama.com/), then pull a model
|
|
|
99
99
|
with tool-calling support:
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
ollama pull
|
|
102
|
+
ollama pull qwen2.5:7b
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
Then configure `.env`:
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
108
|
LLM_PROVIDER=ollama
|
|
109
|
-
OLLAMA_MODEL=
|
|
109
|
+
OLLAMA_MODEL=qwen2.5:7b
|
|
110
110
|
DB_MODE=duckdb
|
|
111
111
|
DB_PATH=./my_database.duckdb
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
+
`qwen2.5:7b` works well for CLI queries. For the web UI with visualizations,
|
|
115
|
+
use `qwen2.5:14b` (`ollama pull qwen2.5:14b`). For the best experience,
|
|
116
|
+
consider GitHub Models (free tier) instead — only use Ollama when cost or
|
|
117
|
+
data-security requirements demand local inference.
|
|
118
|
+
|
|
114
119
|
**Using SQLite or PostgreSQL?** Set `DB_MODE` accordingly:
|
|
115
120
|
|
|
116
121
|
```bash
|
|
@@ -111,7 +111,7 @@ Run the same suite against different models to compare reliability:
|
|
|
111
111
|
datasight verify --model claude-sonnet-4-6
|
|
112
112
|
datasight verify --model claude-haiku-4-5-20251001
|
|
113
113
|
LLM_PROVIDER=github datasight verify --model gpt-4o
|
|
114
|
-
LLM_PROVIDER=ollama datasight verify --model
|
|
114
|
+
LLM_PROVIDER=ollama datasight verify --model qwen2.5:7b
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## Writing deterministic queries
|
|
@@ -399,7 +399,7 @@ datasight ask [OPTIONS] [QUESTION]
|
|
|
399
399
|
| `--file` | Read one question per line from a text file. |
|
|
400
400
|
| `--output-dir` | Directory for per-question batch outputs (only with --file). |
|
|
401
401
|
| `--print-sql` | Print the SQL queries executed by the agent to the console. |
|
|
402
|
-
| `--provenance` | Print run provenance as JSON to
|
|
402
|
+
| `--provenance` | Print run provenance as JSON to stdout (suppresses human-readable answer). |
|
|
403
403
|
| `--sql-script` | Write executed queries to a SQL script that materializes results into auto-named tables (CREATE OR REPLACE). |
|
|
404
404
|
| `-v`, `--verbose` | Enable debug logging. |
|
|
405
405
|
|
|
@@ -74,7 +74,7 @@ For help picking a provider, see [Choosing an LLM](../concepts/choosing-an-llm.m
|
|
|
74
74
|
|
|
75
75
|
| Variable | Default | Description |
|
|
76
76
|
|----------|---------|-------------|
|
|
77
|
-
| `OLLAMA_MODEL` | `
|
|
77
|
+
| `OLLAMA_MODEL` | `qwen2.5:7b` | Ollama model name (must support tool calling). `qwen2.5:7b` works well for CLI queries; for the web UI with visualizations, try `qwen2.5:14b`. |
|
|
78
78
|
| `OLLAMA_BASE_URL` | `http://localhost:11434/v1` | Ollama API endpoint |
|
|
79
79
|
|
|
80
80
|
### Database settings
|
|
@@ -158,10 +158,10 @@ datasight verify -v
|
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
Tests marked `integration` require a running local Ollama server with the
|
|
161
|
-
`
|
|
161
|
+
`qwen2.5:7b` model available:
|
|
162
162
|
|
|
163
163
|
```bash
|
|
164
|
-
ollama pull
|
|
164
|
+
ollama pull qwen2.5:7b
|
|
165
165
|
ollama serve
|
|
166
166
|
pytest -m integration
|
|
167
167
|
```
|
|
@@ -338,7 +338,7 @@ form,
|
|
|
338
338
|
|
|
339
339
|
.page-btn {
|
|
340
340
|
background: transparent;
|
|
341
|
-
border:
|
|
341
|
+
border: 1.5px solid var(--text-secondary);
|
|
342
342
|
border-radius: 4px;
|
|
343
343
|
padding: 2px 10px;
|
|
344
344
|
font-family: inherit;
|
|
@@ -360,7 +360,7 @@ form,
|
|
|
360
360
|
|
|
361
361
|
.export-csv-btn {
|
|
362
362
|
background: transparent;
|
|
363
|
-
border:
|
|
363
|
+
border: 1.5px solid var(--text-secondary);
|
|
364
364
|
border-radius: 6px;
|
|
365
365
|
padding: 4px 10px;
|
|
366
366
|
font-family: inherit;
|
|
@@ -1140,6 +1140,7 @@ def _build_cli_provenance(
|
|
|
1140
1140
|
return {
|
|
1141
1141
|
"turn_id": tools[0].get("turn_id") if tools else None,
|
|
1142
1142
|
"question": question,
|
|
1143
|
+
"answer": result.text or "",
|
|
1143
1144
|
"model": model,
|
|
1144
1145
|
"dialect": dialect,
|
|
1145
1146
|
"project_dir": project_dir,
|
|
@@ -1171,7 +1172,7 @@ def _emit_cli_provenance(
|
|
|
1171
1172
|
project_dir=project_dir,
|
|
1172
1173
|
provider=provider,
|
|
1173
1174
|
)
|
|
1174
|
-
click.echo(json.dumps(provenance, indent=2)
|
|
1175
|
+
click.echo(json.dumps(provenance, indent=2))
|
|
1175
1176
|
|
|
1176
1177
|
|
|
1177
1178
|
def _write_batch_result_files(
|
|
@@ -2477,7 +2478,7 @@ def verify(project_dir, model, queries_path, verbose):
|
|
|
2477
2478
|
@click.option(
|
|
2478
2479
|
"--provenance",
|
|
2479
2480
|
is_flag=True,
|
|
2480
|
-
help="Print run provenance as JSON to
|
|
2481
|
+
help="Print run provenance as JSON to stdout (suppresses human-readable answer).",
|
|
2481
2482
|
)
|
|
2482
2483
|
@click.option(
|
|
2483
2484
|
"--sql-script",
|
|
@@ -2545,6 +2546,8 @@ def ask(
|
|
|
2545
2546
|
settings, resolved_model = _resolve_settings(project_dir, model)
|
|
2546
2547
|
_validate_settings_for_llm(settings)
|
|
2547
2548
|
|
|
2549
|
+
click.echo(f"Using {settings.llm.provider} model: {resolved_model}", err=True)
|
|
2550
|
+
|
|
2548
2551
|
resolved_db_path = _resolve_db_path(settings, project_dir)
|
|
2549
2552
|
if settings.database.mode in ("duckdb", "sqlite") and not os.path.exists(resolved_db_path):
|
|
2550
2553
|
click.echo(f"Error: Database file not found: {resolved_db_path}", err=True)
|
|
@@ -2575,7 +2578,8 @@ def ask(
|
|
|
2575
2578
|
sql_dialect=sql_dialect,
|
|
2576
2579
|
)
|
|
2577
2580
|
)
|
|
2578
|
-
|
|
2581
|
+
if not provenance:
|
|
2582
|
+
_emit_ask_result(result, batch_output_format, None, None)
|
|
2579
2583
|
if print_sql:
|
|
2580
2584
|
_print_sql_queries(result)
|
|
2581
2585
|
if provenance:
|
|
@@ -2617,7 +2621,8 @@ def ask(
|
|
|
2617
2621
|
sql_dialect=sql_dialect,
|
|
2618
2622
|
)
|
|
2619
2623
|
)
|
|
2620
|
-
|
|
2624
|
+
if not provenance:
|
|
2625
|
+
_emit_ask_result(result, output_format, chart_format, output_path)
|
|
2621
2626
|
if print_sql:
|
|
2622
2627
|
_print_sql_queries(result)
|
|
2623
2628
|
if provenance:
|
|
@@ -16,6 +16,8 @@ from dataclasses import dataclass, field
|
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
from typing import Any
|
|
18
18
|
|
|
19
|
+
from datasight.schema import _quote_identifier
|
|
20
|
+
|
|
19
21
|
try:
|
|
20
22
|
import sqlglot
|
|
21
23
|
from sqlglot import exp
|
|
@@ -364,10 +366,6 @@ class ApplyResult:
|
|
|
364
366
|
error: str | None = None
|
|
365
367
|
|
|
366
368
|
|
|
367
|
-
def _quote_duckdb_identifier(name: str) -> str:
|
|
368
|
-
return '"' + name.replace('"', '""') + '"'
|
|
369
|
-
|
|
370
|
-
|
|
371
369
|
def _list_attached_tables(conn) -> set[str]:
|
|
372
370
|
rows = conn.execute(
|
|
373
371
|
"SELECT table_name FROM information_schema.tables "
|
|
@@ -462,15 +460,15 @@ async def apply_template(
|
|
|
462
460
|
if source_table in resolved_sources:
|
|
463
461
|
continue
|
|
464
462
|
conn.execute(
|
|
465
|
-
f"CREATE VIEW {
|
|
466
|
-
f"AS SELECT * FROM base.main.{
|
|
463
|
+
f"CREATE VIEW {_quote_identifier(source_table)} "
|
|
464
|
+
f"AS SELECT * FROM base.main.{_quote_identifier(source_table)}"
|
|
467
465
|
)
|
|
468
466
|
|
|
469
467
|
for name, path in resolved_sources.items():
|
|
470
468
|
escaped = str(path).replace("'", "''")
|
|
471
469
|
try:
|
|
472
470
|
conn.execute(
|
|
473
|
-
f"CREATE OR REPLACE VIEW {
|
|
471
|
+
f"CREATE OR REPLACE VIEW {_quote_identifier(name)} "
|
|
474
472
|
f"AS SELECT * FROM read_parquet('{escaped}')"
|
|
475
473
|
)
|
|
476
474
|
except duckdb.Error as err:
|
|
@@ -8,10 +8,7 @@ import yaml
|
|
|
8
8
|
from loguru import logger
|
|
9
9
|
|
|
10
10
|
from datasight.runner import RunSql
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def _quote_identifier(name: str) -> str:
|
|
14
|
-
return '"' + name.replace('"', '""') + '"'
|
|
11
|
+
from datasight.schema import _quote_identifier
|
|
15
12
|
|
|
16
13
|
|
|
17
14
|
def _is_date_dtype(dtype: str) -> bool:
|
|
@@ -14,7 +14,7 @@ from loguru import logger
|
|
|
14
14
|
|
|
15
15
|
from datasight.prompts import DESCRIBE_SYSTEM_PROMPT, DESCRIBE_USER_MESSAGE, dialect_hint
|
|
16
16
|
from datasight.runner import RunSql
|
|
17
|
-
from datasight.schema import TableInfo,
|
|
17
|
+
from datasight.schema import TableInfo, _quote_identifier, format_schema_context
|
|
18
18
|
|
|
19
19
|
_TEMPORAL_TYPES = {
|
|
20
20
|
"TIMESTAMP",
|
|
@@ -63,12 +63,18 @@ async def sample_enum_columns(run_sql: RunSql, tables: list[TableInfo]) -> str:
|
|
|
63
63
|
string_types = {"VARCHAR", "TEXT", "CHAR", "STRING", "NVARCHAR", "BPCHAR", "NAME"}
|
|
64
64
|
|
|
65
65
|
for table in tables:
|
|
66
|
-
|
|
66
|
+
try:
|
|
67
|
+
table_name = _quote_identifier(table.name)
|
|
68
|
+
except ValueError:
|
|
69
|
+
continue
|
|
67
70
|
for col in table.columns:
|
|
68
71
|
base_type = col.dtype.upper().split("(")[0].strip()
|
|
69
72
|
if base_type not in string_types:
|
|
70
73
|
continue
|
|
71
|
-
|
|
74
|
+
try:
|
|
75
|
+
col_name = _quote_identifier(col.name)
|
|
76
|
+
except ValueError:
|
|
77
|
+
continue
|
|
72
78
|
try:
|
|
73
79
|
count_result = await run_sql(
|
|
74
80
|
f"SELECT COUNT(DISTINCT {col_name}) AS n FROM {table_name}"
|
|
@@ -101,7 +107,10 @@ async def sample_timestamp_columns(run_sql: RunSql, tables: list[TableInfo]) ->
|
|
|
101
107
|
lines: list[str] = []
|
|
102
108
|
|
|
103
109
|
for table in tables:
|
|
104
|
-
|
|
110
|
+
try:
|
|
111
|
+
table_name = _quote_identifier(table.name)
|
|
112
|
+
except ValueError:
|
|
113
|
+
continue
|
|
105
114
|
for col in table.columns:
|
|
106
115
|
base_type = col.dtype.upper().split("(")[0].strip()
|
|
107
116
|
name_lower = col.name.lower()
|
|
@@ -111,7 +120,10 @@ async def sample_timestamp_columns(run_sql: RunSql, tables: list[TableInfo]) ->
|
|
|
111
120
|
)
|
|
112
121
|
if not (is_temporal or is_numeric_time):
|
|
113
122
|
continue
|
|
114
|
-
|
|
123
|
+
try:
|
|
124
|
+
col_name = _quote_identifier(col.name)
|
|
125
|
+
except ValueError:
|
|
126
|
+
continue
|
|
115
127
|
try:
|
|
116
128
|
result = await run_sql(
|
|
117
129
|
f"SELECT MIN({col_name}) AS min_v, MAX({col_name}) AS max_v "
|