Spaces:
Runtime error
Runtime error
|
Download README.md from Macbath/indicator-modeling: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/spaces/Macbath/indicator-modeling/resolve/main/README.md
- Command line
-
hf download hf://spaces/Macbath/indicator-modeling/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Macbath/indicator-modeling/resolve/main/README.md
1.71 kB
A newer version of the Streamlit SDK is available: 1.68.0
metadata
title: 数据指标建模师
emoji: 📊
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.39.0
python_version: '3.11'
app_file: app.py
pinned: false
数据指标建模师 (Data Metrics Modeler)
AI-powered data metrics modeling tool with 3-step workflow:
- 需求理解 - Extract structured requirements from natural language input
- 指标推荐 - Recommend relevant indicators using RAG + vector similarity
- 建模生成 - Generate SQL DDL, table structures, and data dictionary
🚀 Demo
This app is configured for Mock Mode (no API key required for demonstration).
📦 Features
- ✅ Natural language requirement understanding
- ✅ Intelligent indicator recommendation (60+ indicators across retail/e-commerce/finance)
- ✅ Automatic SQL DDL generation
- ✅ Dimension & fact table design
- ✅ Data dictionary generation
- ✅ Downloadable scheme package (.zip)
🛠️ Tech Stack
- Frontend: Streamlit 1.39+
- Vector DB: FAISS CPU
- Embeddings: SentenceTransformers (multilingual MiniLM)
- Mock Mode: Preset responses, no API needed for demo
🔧 Configuration
Edit config/settings.py:
MOCK_MODE = True- Use mock data (default, no API needed)MOCK_MODE = False- Use real DeepSeek API (setDEEPSEEK_API_KEY)
📝 Usage
- Enter business requirement (Chinese or English)
- Click "理解需求" to extract structured info
- Click "推荐指标" to see recommended indicators
- Select indicators and click "生成建模"
- Download the complete scheme package (.zip)
🌐 Deployment
This app is deployed on Hugging Face Spaces with Streamlit.