How pavankvnr85/data-plant works
Data Plant is a local-first lakehouse and operations-AI platform. Its main workflow seeds or receives batch data, ingests it to bronze, transforms it into silver and gold, and exposes batch and streaming results in a dashboard. Dagster can schedule the batch assets. Pipeline runs and table reads feed metadata and wastage analysis; a separate RAG path indexes project documentation and lets the ops chatbot answer questions using document retrieval and live metadata SQL. The graph includes documented but unsampled capabilities; those links are cited to the README rather than presented as inspected implementation details.
Main entry points: run_dbt.py dbt Transform · autoloader_job.py Batch Ingestion · dashboard.py Analytics Dashboard · chatbot.py Ops Chatbot
Components 26
Batch Lakehouse
- Seed Data
ingestion/batch/seed_data.py - Batch Ingestion
ingestion/batch/autoloader_job.py - Bronze Tables
ingestion/batch/autoloader_job.py - dbt Transform
transform/run_dbt.py - Silver Models
transform/dbt_project/models/staging - Gold Models
transform/dbt_project/models/marts
Streaming Analytics
- Clickstream Producer
ingestion/streaming/kafka_producer_clickstream.py - Kafka / Redpanda
- Window Aggregator
ingestion/streaming/structured_streaming_job.py - Streaming Gold
ingestion/streaming/structured_streaming_job.py
Orchestration and Metadata
- Dagster Assets
orchestration/dagster_project/data_plant/assets.py - Run Metadata Emitter
metadata/openlineage_emitter.py - Pipeline Runs
metadata/schema.sql - Table Read Log
metadata/table_reads.py - Wastage Detection
metadata/wastage_report.py - Wastage Models
metadata/wastage_models
Analytics Serving
- Analytics Dashboard
serving/dashboard.py
RAG Operations Assistant
- Document Embedding
ai_rag/ingest_embeddings.py - Vector Store
ai_rag/vector_store.py - Document Q&A
ai_rag/ask.py - Ops Chatbot
ai_rag/chatbot.py
Other components
- Platform User
- Project Docs
docs - Ollama Models
- Postgres / pgvector
- AWS / Databricks
Connections 39
- Platform User → Seed Data: generates inputs
ingestion/batch/seed_data.py - Platform User → Batch Ingestion: runs ingestion
README.md - Seed Data → Batch Ingestion: provides files
README.md - Batch Ingestion → Bronze Tables: writes bronze
ingestion/batch/autoloader_job.py - Bronze Tables → dbt Transform: transforms inputs
transform/run_dbt.py - dbt Transform → Silver Models: builds staging
- dbt Transform → Gold Models: builds marts
- Dagster Assets → Batch Ingestion: invokes loads
orchestration/dagster_project/data_plant/assets.py - Dagster Assets → dbt Transform: invokes transforms
orchestration/dagster_project/data_plant/assets.py - Platform User → Dagster Assets: runs scheduled job
README.md - Platform User → Clickstream Producer: starts stream
README.md - Clickstream Producer → Kafka / Redpanda: publishes events
README.md - Kafka / Redpanda → Window Aggregator: consumes events
ingestion/streaming/structured_streaming_job.py - Window Aggregator → Streaming Gold: merges windows
ingestion/streaming/structured_streaming_job.py - Platform User → Analytics Dashboard: views analytics
README.md - Analytics Dashboard → Gold Models: reads batch gold
serving/dashboard.py - Analytics Dashboard → Streaming Gold: reads stream gold
serving/dashboard.py - Analytics Dashboard → Table Read Log: records reads
serving/dashboard.py - Batch Ingestion → Run Metadata Emitter: emits run status
ingestion/batch/autoloader_job.py - Window Aggregator → Run Metadata Emitter: emits run status
ingestion/streaming/structured_streaming_job.py - dbt Transform → Run Metadata Emitter: emits run status
transform/run_dbt.py - Run Metadata Emitter → Pipeline Runs: writes run records
metadata/openlineage_emitter.py - dbt Transform → Table Read Log: records dependencies
metadata/table_reads.py - Pipeline Runs → Wastage Detection: analyzes metadata
README.md - Table Read Log → Wastage Detection: informs usage checks
metadata/table_reads.py - Wastage Detection → Wastage Models: uses detection models
README.md - Platform User → Document Embedding: indexes corpus
README.md - Project Docs → Document Embedding: provides documents
README.md - Document Embedding → Ollama Models: requests embeddings
ai_rag/ingest_embeddings.py - Document Embedding → Vector Store: upserts chunks
ai_rag/ingest_embeddings.py - Vector Store → Postgres / pgvector: stores vectors
ai_rag/vector_store.py - Platform User → Ops Chatbot: asks ops questions
README.md - Ops Chatbot → Vector Store: searches documents
ai_rag/chatbot.py - Ops Chatbot → Pipeline Runs: queries live metrics
README.md - Ops Chatbot → Ollama Models: requests answers
README.md - Platform User → Document Q&A: asks document question
ai_rag/ask.py - Document Q&A → Vector Store: retrieves chunks
ai_rag/ask.py - Document Q&A → Ollama Models: embeds and answers
ai_rag/ask.py - Platform User → AWS / Databricks: configures cloud option
README.md