Status: Phase 0 Complete ✅ - Foundations Ready
DataSmith AI is a systematic dataset generation platform built with strong foundations:
- Data Contract: Universal JSON schema for the entire pipeline
- LLM Wrapper: Reusable Ollama interface with proper error handling
- Orchestrator: Pipeline runner with save/resume capability
Phase 0 provides the infrastructure that all future agents will use.
DataSmith_AI/
├── core/ # Phase 0 foundations
│ ├── __init__.py
│ ├── dataset_spec.py # Data contract
│ ├── llm_wrapper.py # LLM wrapper
│ └── orchestrator.py # Pipeline orchestrator
├── tests/ # Test suite
│ ├── __init__.py
│ ├── test_dataset_spec.py
│ ├── test_llm_wrapper.py
│ └── test_orchestrator.py
├── venv/ # Virtual environment
├── .gitignore
├── requirements.txt
├── run.bat
└── README.md # This file
# 1. Create virtual environment
python -m venv venv
# 2. Activate
.\venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Install Ollama and pull model
# Download from: https://ollama.com/download
ollama pull qwen2.5:3b# Activate virtual environment
.\venv\Scripts\activate
# Run all tests
python -m pytest tests/ -v
# Run specific test file
python -m pytest tests/test_dataset_spec.py -vExpected: 19/19 tests passing (4 skipped without Ollama)
- Universal JSON schema for entire pipeline
- Provenance tracking (source_url on every record)
- Confidence scores throughout
- Execution history for save/resume
- Tests: 8/8 passing
- Reusable Ollama interface
- JSON-only output with validation
- Total timeout limit (60s default)
- Maximum 1 retry with error feedback
- Connection error detection
- Tests: 5/5 passing (4 skipped)
- Runs agents in sequence
- Saves spec after each agent
- Resume from any step
- Skip conditions and error handling
- Tests: 6/6 passing
Phase 1 will build agents using these foundations:
-
Requirement Understanding Agent
- Uses LLMWrapper
- Writes to spec.requirement
- Handles user input
-
Domain Detection Agent
- Reads spec.requirement
- Adds domain classification
- Uses shared data contract
All future agents will follow the same pattern.
- ✅ No Code Duplication - All agents use LLMWrapper
- ✅ Unified Data Contract - One spec flows through pipeline
- ✅ Provenance - source_url on all data
- ✅ Testable - Comprehensive test coverage
- ✅ Resumable - Save/resume at any step
- ✅ Generic - Works for any domain
- Python 3.8+
- Ollama (local LLM)
- qwen2.5:3b model
- pydantic (data validation)
- pytest (testing)
core/dataset_spec.py- Data contract with inline docscore/llm_wrapper.py- LLM wrapper with inline docscore/orchestrator.py- Orchestrator with inline docsLLM_WRAPPER_IMPROVEMENTS.md- Recent LLM wrapper improvements
Last Updated: 2026-10-03
Phase: 0 Complete, 1 Pending