Modern Metaphysics: AI-Powered Bazi Consultant
Interpreting ancient Chinese Metaphysics (Bazi) using Large Language Models to provide personalized life coaching and business strategy.
Project Scope
SaaS Platform / API
Tech Stack
Capabilities
- Date -> Solar/Lunar Conversion
- "Ten Gods" Calculation
- MBTI Correlation
The Concept
Bazi (Eight Characters) is a complex system of Chinese astrology. Traditionally, a consultation takes hours of manual calculation and interpretation. Our goal was to build an AI agent that could instantly calculate a chart and act as a "Modern Metaphysics Consultant."
Implementation Strategy
We chose Python FastAPI for the backend due to its speed and robust libraries for calendar calculation.
- Calculation Engine: We built a Python engine to convert Gregorian birth dates into the Chinese Sexagenary Cycle (Heavenly Stems and Earthly Branches).
- Context Injection: The calculated chart (e.g., "Weak Fire Day Master") is injected into the system prompt.
- DeepSeek API: We utilize the DeepSeek LLM, which has superior understanding of Chinese cultural contexts and metaphysical concepts compared to Western models.
- Thematic Mapping: The AI cross-references the Bazi profile with modern frameworks like MBTI and Business Strategy archetypes.
prompt_engineering.json
{
"role": "system",
"content": "You are an expert Bazi consultant. The user is a 'Yang Wood' Day Master born in the season of Winter.
Task: Analyze their career path using the 'Ten Gods' framework. Compare their leadership style to an ENTJ personality type.
Constraint: Be practical and actionable. Avoid superstition."
}
Business Value
This application demonstrates how AI can revitalize traditional industries. By automating the technical calculation, the "Human Consultant" can focus entirely on high-level strategy and client empathy.
Have a complex domain?
We specialize in teaching AI to understand niche, expert-level topics.
Discuss Your Project