Evaluating General-Purpose LLMs for Traditional Chinese Metaphysical Calculations: A Practical Guide to Testing and Avoiding Common Pitfalls
Traditional Chinese metaphysical systems such as Bazi, Zi Wei Dou Shu, Mei Hua Yi Shu, and Liu Yao combine calendar conversion, rule-based reasoning, knowledge retrieval, and natural-language explanation. This guide presents a reproducible evaluation framework, identifies domain-specific failure modes, and recommends a hybrid architecture that separates deterministic chart calculation from LLM-based interpretation. It also covers structured outputs, regression testing, version control, safety boundaries, and model selection for consumer and enterprise applications.
1. The Technical Nature of Traditional Metaphysical Calculations
Traditional metaphysical calculation is not a single text-generation task. It is a combination of calendar conversion, rule-based reasoning, knowledge retrieval, and explanation generation.
Bazi requires the calculation of the Heavenly Stems and Earthly Branches, Ten Gods, chart structures, major luck cycles, and annual influences. Zi Wei Dou Shu depends on star placement rules, star strength across palaces, and transformational stars. Mei Hua Yi Shu relies on the divination method, the relationship between the principal and supplementary trigrams, and mutual and changing trigrams. Liu Yao requires Najia arrangement, the relationships among the self line, response line, and kinship symbols, moving-line transformations, and the selection of the relevant focus line.
These systems share a key characteristic: their underlying rules are relatively deterministic, while their surface-level interpretations are open-ended. General-purpose LLMs are strong at organizing language and producing contextual explanations, but they have inherent limitations in deterministic chart calculation, rule consistency, and reproducibility.
For developers and enterprise users, the main question is usually not whether a model can produce fluent text. The more important questions are whether the output is supported by explicit rules, whether it can be reproduced, and whether errors can be located and corrected.
Common problems include:
- Contradictory chart results across responses
- Incorrect Heavenly Stems, Earthly Branches, or star positions
- Generic and uninformative interpretations
- Inconsistent selection of the relevant element or focus line
- Errors in the start time of major luck cycles
- Mixing terminology from different metaphysical systems
Evaluation should therefore not focus only on whether a single response “sounds right.” A useful evaluation system should use standardized variables and support verification, comparison, and regression testing.
2. A Standardized Evaluation Method for Reproducible Results
To make evaluations objective, use a controlled-variable approach. Keep the following elements fixed:
- Birth date and time
- Time zone and relevant calendar settings
- The question being asked
- The prompt template
- The model and base version
- The number of repeated tests
The evaluation can be divided into five dimensions:
Chart calculation accuracy
Validate rule-based fields individually, including day-pillar conversion, time-zone handling, the start of major luck cycles, star placement, and Najia arrangement.Logical rigor
Check whether the reasoning chain is complete and whether the model presents conclusions without sufficient evidence.Practical usefulness of the interpretation
Evaluate whether technical terms are translated into suggestions relevant to work, collaboration, learning, and everyday life.Error rate
Record errors such as incorrect Ten Gods, incorrect selection of the relevant element, misplaced stars, and confusion between the principal and supplementary trigrams.Scenario suitability
Different systems place different demands on the model. Each system should be scored separately rather than hidden behind a single overall score.
A sample evaluation pipeline can be represented as follows:
for case in evaluation_set:for round in 1..3:input = fixed_birth_data + fixed_question + fixed_templateoutput = LLM(input)parsed_chart = parse_structured_chart_fields(output)rule_score = rule_validator(parsed_chart)logic_score = expert_review(output)practicality_score = scenario_mapping_check(output)error_count = annotate_errors(output)aggregate = aggregate_three_rounds(case)generate_scorecard(aggregate)
The evaluation set should include boundary conditions such as:
- Leap months
- Cross-time-zone inputs
- True solar time
- The transition of the Zi hour across calendar days
- Solar-term boundaries
- Different divination methods
- Different numbers of moving lines
The verifiable parts and the interpretive parts should be evaluated separately. This makes it possible to determine whether a problem occurs at the chart-calculation layer, the reasoning layer, or the expression layer.
3. Domain-Specific Challenges and General Capability Profiles
3.1 Bazi: The Highest Demand for Numerical Precision
Among the four systems, Bazi generally places the greatest demand on calculation accuracy. The model must complete multiple steps, including Heavenly Stem and Earthly Branch conversion, assessment of the Day Master’s strength, Ten Gods and chart-structure analysis, major luck cycles, and annual influences.
Common errors include:
- Confusing the Eating God with the Hurting Officer
- Miscalculating the start time of a major luck cycle
- Applying inconsistent weight to the monthly branch
- Mishandling time zones or day-pillar conversion
Different solution styles also have different trade-offs:
- A numerically rigorous approach may produce more reliable chart calculations but still show instability across repeated tests.
- A popular, user-oriented approach may provide accessible and contextualized explanations while making basic calculation errors.
- An academic or text-oriented approach may offer a complete framework and extensive references but lack flexibility and over-apply fixed chart structures.
A practical testing strategy is to require the model to output an intermediate chart table before presenting any conclusions. Ten Gods, chart structures, and the start time of major luck cycles should then be validated field by field. The same input should be tested at least three times to check whether key fields remain stable. If an error is discovered, allow manual correction and record the corresponding correction rule.
3.2 Zi Wei Dou Shu: Complex Star Placement and Generic Explanations
The main difficulties in Zi Wei Dou Shu are star placement and transformational stars. An error in star positions, palace assignments, star strength, or transformations can affect every later interpretation.
Typical problems include:
- Incorrect star positions
- Incorrect transformational-star labels
- Template-based explanations that are not grounded in the actual palace and star combination
During evaluation, require the model to output a structured star-placement table as an intermediate result. Validate each star individually before evaluating whether the interpretation is specifically based on the relevant palaces and star combinations.
3.3 Mei Hua Yi Shu: The Divination Method Must Be Explicit
Mei Hua Yi Shu may appear relatively simple, but its results are highly sensitive to the method used to generate the hexagram. Time-based, number-based, and sound-based methods can produce different results, including different principal and supplementary trigrams as well as different mutual and changing trigrams.
A common model failure is to omit the basis for generating the hexagram and move directly to a subjective interpretation.
To reduce this risk:
- Fix the divination method in advance.
- Require the model to output the divination parameters.
- Require an explicit classification of the principal and supplementary trigrams.
- Require the model to show the generating and controlling relationships.
- Require evidence for the conclusion instead of returning only a favorable or unfavorable judgment.
3.4 Liu Yao: Hexagram Arrangement and Focus-Line Selection
The engineering challenges in Liu Yao center on Najia arrangement, the self and response lines, the six kinship relationships, the six spirits, moving and changing lines, and the selection of the relevant focus line.
Common errors include:
- Incorrect hexagram arrangement
- Incorrect self or response line
- Incorrect focus-line selection
- Vague timing predictions
Evaluation should require a complete structured hexagram output and an explanation for the selected focus line. Complex cases involving multiple moving lines, hidden lines, or void branches should be checked with a rule validator rather than relying entirely on generated explanations.
4. Hidden Bugs and Practical Ways to Avoid Them
Chart-Level Bugs
Typical chart-level bugs include errors involving:
- Calendrical conversion
- Time zones
- True solar time
- Leap months
- The transition of the Zi hour across calendar days
- The start time of major luck cycles
- Star-placement tables
- Najia tables
Recommended mitigation: Output intermediate chart data in a structured format and compare each field with a rule validator. Maintain a regression set containing boundary cases.
Reasoning-Level Bugs
Typical reasoning-level bugs include:
- Incorrect Ten Gods
- Unstable selection of the relevant element
- Confusion between the principal and supplementary trigrams
- Mechanical application of fixed chart structures
Recommended mitigation: Require a three-part structure: evidence, reasoning, and conclusion. Check consistency among key fields. Run at least three tests with the same input, use stable fields as the trusted result, and mark unstable fields for manual review.
Expression-Level Bugs
Typical expression-level bugs include:
- Empty generalities
- Fear-based conclusions
- Absolute predictions
- Excessive terminology without practical meaning
Recommended mitigation: Require every response to include supporting evidence, scenario-based suggestions, and an explanation of uncertainty. For high-risk areas such as medical, legal, and investment decisions, establish safety boundaries and do not present the output as a substitute for professional advice.
Data-Level Bugs
Typical data-level bugs include inconsistent knowledge-base versions and mixed terminology definitions.
Recommended mitigation: Use a version-controlled knowledge base for retrieval-augmented generation. Maintain an explicit terminology glossary and rule-version record. Log the model version, prompt version, and knowledge-base version for every evaluation.
5. Model Selection: Do Not Expect One Model to Handle Everything
For high-accuracy chart calculation, a hybrid architecture is usually more appropriate than a fully generative solution:
- A rule engine or deterministic service handles calendar conversion, chart calculation, star placement, and Najia arrangement.
- The LLM handles terminology translation, contextualized interpretation, and interactive question answering.
For general-purpose interpretation, evaluate practical usefulness and safety boundaries. The model should be able to translate abstract terminology into actionable suggestions without presenting uncertain interpretations as facts.
For academic or text-based research scenarios, evaluate citation practices and consistency with the underlying knowledge system. At the same time, avoid overly rigid explanations that simply apply fixed rules without considering the specific context.
An enterprise implementation can use a layered architecture:
- Structured input schema
- Chart-calculation rule service
- Knowledge-base retrieval
- LLM-based generation
- Rule validator
- Human review
- Logging and monitoring
For example, general logging services, monitoring and alerting tools, and container platforms provided by Baidu AI Cloud can be used to build an evaluation pipeline and observability layer. However, the core design priority remains the separation of responsibilities between deterministic rules and generative models.
A sample output schema might look like this:
{"input": {"birth_time": "","question": "","method": ""},"chart": {"day_pillar": "","ten_gods": [],"major_luck_cycles": []},"reasoning": [{"step": "","evidence": ""}],"conclusion": {"summary": "","actions": [],"uncertainty": ""},"warnings": []}
6. Conclusion
General-purpose LLMs can significantly improve the interaction experience and explanation efficiency of traditional metaphysical applications. However, they should not replace deterministic chart calculation or rule validation.
Developers and enterprises should make verifiability, reproducibility, and auditability the primary goals. Separate the chart, reasoning, and expression layers during evaluation, and use standardized inputs and regression tests for continuous calibration.
Model selection should not focus on finding a single system that performs every task perfectly. A more reliable approach is to combine rule engines, knowledge bases, LLMs, and human review according to the needs of each scenario. This architecture can improve the practical value of the results while reducing critical calculation errors and generic interpretations.
