prime-complete

bytanjiro kamado

Build a complete, professional 3D Data Analyst Agent system using HTML, CSS, JavaScript, and Python that operates entirely without APIs or Docker, leveraging only the best available local LLM models. The system should feature three specialized agents, each representing a core data analyst skill: Excel Mastery Agent, SQL Expert Agent, and Power BI Visualization Agent, all rendered with professional 3D avatars or interactive interfaces. Create a full end-to-end data analysis project workflow that progresses from zero to completion through these integrated stages: - **Data Ingestion & Exploration**: Upload or connect to data sources, with the system automatically detecting schema, data types, and quality issues - **Intelligent Data Cleaning**: Automated detection and correction of missing values, outliers, duplicates, inconsistent formatting, and type mismatches, with the LLM explaining each cleaning decision - **Natural Language to Query Conversion**: Convert user questions into executable SQL queries or Excel formulas automatically, with the LLM generating, validating, and explaining the query logic - **Dynamic Dashboard Generation**: Create customized, interactive dashboards via text prompts specifying KPIs, visualizations, filters, and layout preferences - **Advanced Visualization**: Generate charts including scatter plots, trend lines, heatmaps, funnel charts, geographic maps, and drill-down hierarchies based on prompt descriptions - **KPI & Scorecard Builder**: Automatically calculate and display key performance indicators with conditional formatting, targets, and variance analysis - **Narrative Insights & Summarization**: The LLM generates executive summaries, anomaly explanations, and actionable recommendations from analysis results Technical requirements and constraints: - No external API calls; all LLM inference must run locally using the best available open-source models (e.g., Llama 3, Mistral, CodeLlama, or comparable) - No Docker containers; use direct Python environment management - Frontend: HTML5, CSS3, and vanilla JavaScript or lightweight frameworks for the 3D agent interfaces and dashboard rendering - Backend: Python with FastAPI or Flask for orchestration, local LLM integration via llama.cpp, Ollama, or similar local inference engines - Database: SQLite or local PostgreSQL for SQL agent demonstrations and project data persistence - 3D Agent Representation: Use Three.js or CSS 3D transforms to create professional, animated agent avatars that respond during task execution with status indicators and speech bubbles Specific interactive features to implement: - Prompt-based dashboard creation where users describe what they want to see (e.g., "Create a sales dashboard with monthly revenue trend, top 10 products by region, and customer acquisition cost KPI") - Conversational data cleaning where users ask questions like "Find and fix all date formatting issues" or "Show me duplicate records in the customer table" - SQL query sandbox with natural language input, generated query display, execution results, and the LLM explaining how the query answers the original question - Excel formula generator with step-by-step breakdown of complex calculations - Real-time collaboration between the three agents, where the SQL agent passes cleaned data to the Power BI agent for immediate visualization Include error handling, fallback explanations when the LLM is uncertain, progress tracking for multi-step operations, and export capabilities for dashboards (PNG, PDF) and datasets (CSV, Excel).

LandingLogin
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 9

System Requirements Document for prime-complete

1. Introduction

The prime-complete project aims to build a professional 3D Data Analyst Agent system that operates entirely locally without APIs or Docker. It leverages the best available local LLM models to provide a sophisticated data analysis experience. The system features three specialized agents: Excel Mastery Agent, SQL Expert Agent, and Power BI Visualization Agent, each represented with professional 3D avatars or interactive interfaces. The target audience is data analysts seeking an advanced, immersive tool for comprehensive data analysis workflows.

2. System Overview

The system delivers an end-to-end data analysis workflow, from data ingestion to narrative insights, using local execution and open-source technologies. It includes specialized agents for Excel, SQL, and Power BI tasks, each with interactive 3D representations. The system is designed for local operation, ensuring data privacy and independence from external services.

2a. Product Interpretation and Delivery Boundary

The system operates entirely locally, using HTML, CSS, JavaScript, and Python, with no external API calls or Docker containers. It integrates local LLM models for intelligent data processing and visualization. The system supports a complete data analysis lifecycle, with a focus on professional use and advanced technology. The delivery excludes any external service dependencies, ensuring all operations are performed within the local environment.

Page 2 of 9

2b. Source Content Inventory

Not applicable as no content_source directive was provided.

2c. Page Content and Component Coverage

Landing

  • Information: Introduction to the system, its capabilities, and intended audience.
  • Primary Actions: Navigate to Login or explore system features.
  • Components: Overview video, feature highlights, and call-to-action buttons.

Login

  • Information: User authentication for returning analysts.
  • Primary Actions: Enter credentials, submit login.
  • Components: Login form, error messages for incorrect credentials.

Dashboard

  • Information: Summary of project progress and access to various workflow stages.
  • Primary Actions: Navigate to Data Ingestion, Data Cleaning, Query Builder, etc.
  • Components: Project overview, navigation links, status indicators.

Data Ingestion

  • Information: Upload or connect to data sources, schema detection.
  • Primary Actions: Upload data, view schema and quality issues.
  • Components: File upload interface, schema viewer, quality issue alerts.
Page 3 of 9

Data Cleaning

  • Information: Review and clean data with LLM explanations.
  • Primary Actions: Identify and correct data issues, view explanations.
  • Components: Data issue list, cleaning tools, explanation panel.

Query Builder

  • Information: Convert natural language to SQL or Excel formulas.
  • Primary Actions: Input query, view generated SQL/formula, validate logic.
  • Components: Query input field, SQL/formula display, validation feedback.

SQL Sandbox

  • Information: Inspect and execute generated SQL queries.
  • Primary Actions: Execute query, view results, understand query logic.
  • Components: SQL editor, execution results, logic explanation.

Dashboards

  • Information: Create and refine interactive dashboards.
  • Primary Actions: Generate dashboard, customize layout, add visualizations.
  • Components: Dashboard creation tool, visualization library, layout editor.

KPI Scorecards

  • Information: Calculate and review KPIs with formatting and analysis.
  • Primary Actions: Define KPIs, apply conditional formatting, analyze variance.
  • Components: KPI builder, formatting options, variance analysis tools.
Page 4 of 9

Insights

  • Information: Review executive summaries and recommendations.
  • Primary Actions: View summaries, explore recommendations.
  • Components: Summary viewer, recommendation list, anomaly explanations.

Operations

  • Information: Track progress and handle errors in multi-step operations.
  • Primary Actions: Monitor operation progress, view error explanations.
  • Components: Progress tracker, error message display, fallback options.

Agent Workspace

  • Information: Access specialized agent experiences and collaboration.
  • Primary Actions: Interact with agents, initiate SQL-to-Power BI handoff.
  • Components: Agent avatars, collaboration tools, task progress indicators.

Exports

  • Information: Export dashboards and datasets in specified formats.
  • Primary Actions: Select export format, download file.
  • Components: Export options, download links, format selection.
Page 5 of 9

3. Functional Requirements

  • As a Data Analyst, I should be able to upload or connect to data sources and automatically detect schema, data types, and quality issues. (explicit)
  • As a Data Analyst, I should be able to detect and correct missing values, outliers, duplicates, inconsistent formatting, and type mismatches, with explanations provided by the local LLM. (explicit)
  • As a Data Analyst, I should be able to convert natural-language questions into executable SQL queries or Excel formulas, with generation, validation, and explanations of query logic. (explicit)
  • As a Data Analyst, I should be able to generate customized interactive dashboards from text prompts describing KPIs, visualizations, filters, and layout preferences. (explicit)
  • As a Data Analyst, I should be able to generate advanced visualizations including scatter plots, trend lines, heatmaps, funnel charts, geographic maps, and drill-down hierarchies from prompt descriptions. (explicit)
  • As a Data Analyst, I should be able to automatically calculate and display KPIs with conditional formatting, targets, and variance analysis. (explicit)
  • As a Data Analyst, I should be able to generate executive summaries, anomaly explanations, and actionable recommendations from analysis results. (explicit)
  • As a Data Analyst, I should be able to perform prompt-based dashboard creation. (explicit)
  • As a Data Analyst, I should be able to engage in conversational data cleaning. (explicit)
  • As a Data Analyst, I should be able to use a SQL query sandbox with natural-language input, generated-query display, execution results, and explanation of how the query answers the question. (explicit)
  • As a Data Analyst, I should be able to use an Excel formula generator with step-by-step breakdowns of complex calculations. (explicit)
  • As a Data Analyst, I should be able to collaborate where the SQL agent passes cleaned data to the Power BI agent for visualization. (explicit)
  • As a Data Analyst, I should be able to handle errors, receive fallback explanations when the LLM is uncertain, track progress for multi-step operations, and export dashboards as PNG/PDF and datasets as CSV/Excel. (explicit)

4. User Personas

  • Data Analyst: The indispensable human operator who uploads data, asks analysis and cleaning questions, reviews generated queries, dashboards, KPIs, and insights, and completes the end-to-end project workflow.
Page 6 of 9

5. Core User Flows

  1. Data Ingestion Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Data Ingestion page.
    • Steps:
      1. Upload or connect to a data source.
      2. System automatically detects schema, data types, and quality issues.
      3. User reviews detected issues.
    • Outcome: Data is ready for cleaning.
  2. Data Cleaning Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Data Cleaning page.
    • Steps:
      1. Review data issues.
      2. Use LLM to detect and correct issues.
      3. Receive explanations for cleaning decisions.
    • Outcome: Data is cleaned and ready for analysis.
  3. Query Conversion Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Query Builder page.
    • Steps:
      1. Input natural-language question.
      2. System converts it to SQL or Excel formula.
      3. Validate and understand query logic.
    • Outcome: Executable query/formula is ready.
  4. Dashboard Generation Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Dashboards page.
    • Steps:
      1. Describe desired dashboard via text prompt.
      2. System generates interactive dashboard.
      3. Customize layout and visualizations.
    • Outcome: Interactive dashboard is created.
  5. KPI Scorecard Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the KPI Scorecards page.
    • Steps:
      1. Define KPIs and targets.
      2. Apply conditional formatting.
      3. Analyze variance.
    • Outcome: KPI scorecard is ready for review.
  6. Insight Generation Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Insights page.
    • Steps:
      1. Review executive summaries.
      2. Explore anomaly explanations.
      3. Consider actionable recommendations.
    • Outcome: Insights are generated and reviewed.
  7. Export Flow:

    • Actor: Data Analyst
    • Trigger: User accesses the Exports page.
    • Steps:
      1. Select export format (PNG, PDF, CSV, Excel).
      2. Download the file.
    • Outcome: Data and dashboards are exported.
Page 7 of 9

6. Visuals Colors and Theme

  • Muse: Gleb Kuznetsov
  • Palette:
    • Background: #00001A
    • Surface: #0A0A2A
    • Text: #E0E0F8
    • Primary: #00E0FF
    • Accent: #FF00FF
    • Muted: #303060
  • Typography:
    • Headings: Space Grotesk — Wide, uppercase, medium weight, tight tracking
    • Body: Orbitron
    • Scale: 1.5 modular, 64/32/21/14
  • Shape Language: Full-bleed 3D scenes with floating glass panels and radial layouts.
  • Layout: Asymmetric layouts with floating elements, minimal chrome, and edge-to-edge panels.
  • Motion: Slow orbit and parallax effects, data streams, and light sweeps for dynamic interaction.

7. Signature Design Concept

A full-viewport 3D scene with a central floating glass panel displaying a holographic agent avatar. The background is deep black with luminous cyan and magenta highlights creating a sense of depth and motion. The central real-time 3D avatar interacts with user inputs and displays task progress, surrounded by floating glass panels that reveal data insights with luminous edges.

Page 8 of 9

8. Interaction Model & Motion Direction

  • Interaction Model: Animated
  • Motion Tempo: Cinematic
  • Hero Dimensionality: WebGL
  • Landing Hero Motion Brief: A central floating glass panel with a holographic agent avatar, surrounded by slow orbit animations and responsive light sweeps that highlight key data points and interactions. The scene uses real-time rendering for interactivity and includes a reduced-motion state for accessibility.

9. Non-Functional Requirements

  • Local Execution: All operations must execute locally without external API calls or Docker containers.
  • Performance: The system should handle large datasets efficiently and provide real-time feedback.
  • Security: Ensure data privacy and integrity with local data processing.
  • Usability: The interface should be intuitive and support seamless navigation through the workflow.

10. Tech Stack

  • Frontend: HTML5, CSS3, vanilla JavaScript, Three.js
  • Backend: Python, FastAPI or Flask, llama.cpp or Ollama for local LLM integration
  • Database: SQLite or local PostgreSQL
Page 9 of 9

11. Assumptions and Constraints

  • Assumptions:
    • Users have a basic understanding of data analysis concepts.
    • The system will be used in environments with sufficient computational resources for local LLM inference.
  • Constraints:
    • No external API calls or Docker containers.
    • All LLM inference must run locally using open-source models.

12. Glossary

  • LLM: Large Language Model, used for natural language processing tasks.
  • SQL: Structured Query Language, used for managing and querying relational databases.
  • KPI: Key Performance Indicator, a measurable value that demonstrates how effectively a company is achieving key business objectives.
  • 3D Agent: A virtual representation of a specialized data analysis skill, rendered in 3D for interactive use.
Landing design preview
Landing: Explore system features
Login: Submit login credentials
Dashboard: View project progress
Data Ingestion: Upload data source
Data Ingestion: Review schema and issues
Data Cleaning: Review data issues
Data Cleaning: Correct issues with LLM
Query Builder: Input natural language query
Query Builder: Validate generated query
SQL Sandbox: Execute SQL query
SQL Sandbox: View query logic
Agent Workspace: Initiate SQL to Power BI handoff
Dashboards: Generate dashboard from prompt
Dashboards: Customize layout visualizations
KPI Scorecards: Define KPIs and targets
KPI Scorecards: Analyze variance
Insights: View executive summaries
Insights: Explore recommendations
Operations: Monitor operation progress
Exports: Select export format
Exports: Download exported file
Landing design preview
Landing: Explore system features
Login: Submit login credentials
Dashboard: View project progress
Data Ingestion: Upload data source
Data Ingestion: Review schema and issues
Data Cleaning: Review data issues
Data Cleaning: Correct issues with LLM
Query Builder: Input natural language query
Query Builder: Validate generated query
SQL Sandbox: Execute SQL query
SQL Sandbox: View query logic
Agent Workspace: Initiate SQL to Power BI handoff
Dashboards: Generate dashboard from prompt
Dashboards: Customize layout visualizations
KPI Scorecards: Define KPIs and targets
KPI Scorecards: Analyze variance
Insights: View executive summaries
Insights: Explore recommendations
Operations: Monitor operation progress
Exports: Select export format
Exports: Download exported file