Large Language Models for Traditional Chinese Metaphysics: Benchmarking Results and a Pitfall Avoidance Guide

    This article reports hands-on testing of large language models on traditional Chinese metaphysics tasks such as BaZi, Zi Wei Dou Shu, Plum Blossom Numerology, and Liu Yao. It explains why strong single-run output does not equal reliable delivery, proposes a four-dimension evaluation matrix covering chart accuracy, interpretation quality, stability, and error correctability, and presents a layered reference architecture that moves deterministic calculation out of the model and constrains generation with structured JSON input and hard prompt rules. Scenario-specific testing notes, a common pitfall checklist, observability design, and compliance boundaries are included.

    1. Background: Why “Being Able to Calculate” Is Not the Same as “Being Able to Deliver”

    Connecting a large language model (LLM) to traditional Chinese metaphysics scenarios looks like a simple pipeline: take a birth date and time as input, produce an interpretation as output. In practice, it is a full chain of structured computation followed by domain-specific semantic generation. Hands-on testing points to one shared conclusion: capability is highly uneven across models. Some achieve high accuracy in chart construction and pattern determination, yet their conclusions drift across repeated calls. Others produce plain, scenario-relevant language but deviate by one to two years on deterministic calculations such as the starting age of a luck cycle, and sometimes make basic errors where the birth year does not match the luck cycle table.

    These issues are not accidental. Metaphysics inference can be split into two categories with fundamentally different natures:

    • Deterministic calculation: sexagenary cycle conversion, month order and solar term boundaries, day master strength, ten gods classification, luck cycle starting age, the twelve palaces and star placement in Zi Wei Dou Shu, and the najia and six relatives configuration in Liu Yao. These are verifiable rule-based operations with a single correct answer.
    • Probabilistic expression: personality descriptions, industry fit, fortune pacing, and mapping to event scenarios. These are open-ended semantic generation with no single correct answer, evaluated on readability and internal consistency.

    Handing both categories to the same generation process is the root cause of most failures. The correct engineering approach is to layer them: externalize the deterministic part as a calculation service and let the generation part handle expression only.

    2. A Layered Capability Evaluation Model

    Build an evaluation matrix across four dimensions, scored and regression-tested independently, instead of relying on an overall “feels good” judgment.

    1. Chart accuracy: use a standard calendar library output as the baseline and compare field by field for the four pillars, month order, ten gods, hidden stems, palaces, and yao positions.
    2. Interpretation quality: terminology conversion rate, how well it lands in concrete scenarios, absence of empty boilerplate, and internal consistency with the chart.
    3. Stability: conclusion agreement rate across repeated calls with the same input, with particular attention to misclassified ten gods (for example, a “eating god” judged as “hurting officer”) and contradictory pattern assignments.
    4. Error correctability: whether the model corrects itself immediately when an error is pointed out, rather than stubbornly repeating the wrong conclusion.

    Stability is the most frequently overlooked dimension. Strong results from a single test often mask variance, while a production service faces thousands of independent calls.

    3. Reference Architecture: Confining the Uncertainty

    A practical layered structure looks like this:

    1. User input (birth date and time / question)
    2. -> Input validation and normalization (time zone, true solar time, leap month)
    3. -> Deterministic calculation layer (calendar / solar terms / chart / star placement / najia)
    4. -> Structured intermediate representation (JSON)
    5. -> Prompt assembly (rule constraints + scenario constraints + output template)
    6. -> Model generates the interpretation
    7. -> Consistency check and rule re-verification
    8. -> Human correction loop / result archival

    The key element is the intermediate representation. Showing the model pre-computed structured fields instead of a raw natural-language description significantly reduces calculation errors:

    1. {
    2. "pillars": {"year": "Ren Zi", "month": "Gui Chou", "day": "Jia Yin", "hour": "Bing Yin"},
    3. "day_master": "Jia Wood",
    4. "month_order": "Chou month",
    5. "strength": "In season, slightly strong",
    6. "pattern": "Proper Officer pattern",
    7. "ten_gods": {"year_gan": "Indirect Resource", "month_gan": "Direct Resource"},
    8. "luck_cycle": {"start_age": 3, "direction": "Forward", "first": "Jia Yin"}
    9. }

    On the prompt side, a three-part structure of “hard constraints + prohibitions + template” is recommended, as illustrated below:

    1. [Hard constraints] Only fields present in the input JSON may be referenced; do not derive sexagenary pillars, luck cycle starting age, or palaces on your own.
    2. [Prohibitions] Do not output ten gods absent from the JSON; do not rename the pattern; do not fabricate annual events.
    3. [Output template] Chart overview / personality and behavioral tendencies / suitable industries and learning directions / stage pacing / risk notes.
    4. [Consistency] If the fields above conflict, state the conflict first and request review; do not force a conclusion.

    4. Scenario-Specific Testing Notes and Pitfalls

    BaZi: focus on solar term boundaries and true solar time. Critical samples that cross a year or a solar term must be included in the test set, and the luck cycle starting age and direction must be aligned with the rule library item by item. On the interpretation side, when mapping a signal such as “Direct Resource revealed in the heavenly stem” to concrete directions like education or knowledge-based paid content, the model must provide the field that supports the derivation rather than free association.

    Zi Wei Dou Shu: star placement rules are complex, and palaces and the four transformations are easily misplaced. Let the model interpret only an already-constructed chart, and require it to cite palace numbers. Errors such as “the year does not match the chart” should be classified directly as failing samples.

    Plum Blossom Numerology: the hexagram is cast from time or numbers, and the moving yao and the body-use relationship determine the direction of interpretation. The risk here is the model skipping steps and giving a conclusion without the body-use analysis. Fixing the order “casting basis - body and use - moving yao - inference” with a template solves this.

    Liu Yao: najia, six relatives, six spirits, self and response, and selection of the useful god form a chain of dependencies; a single wrong step invalidates the entire reading. Pass each step in as an independent field and require the model to annotate the source it cites at each step.

    Common pitfall checklist:

    • Handing deterministic calculation to a generation model;
    • Evaluating capability with a single call only;
    • Lacking a structured intermediate layer, which makes errors impossible to localize;
    • Having no human correction and feedback loop, so failing samples are never captured.

    5. Testing and Launch: Observability Design

    Build a golden test set of no fewer than several hundred cases covering critical dates, leap months, special hours, and known misjudgment patterns. Run a full regression on every prompt or model version change, recording the agreement rate and field-level error rate. On the production side, connect logging and monitoring with alerting, and set rule validation and alert thresholds for “missing fields,” “out-of-range ten gods,” and “out-of-range luck cycle starting age.” Compute and batch inference can rely on elastic scaling from a container platform, while model serving and caching can be carried by general cloud product categories, avoiding any binding to proprietary interfaces.

    6. Compliance and Product Boundaries

    Metaphysics content falls within entertainment and cultural interpretation. Product copy must state clearly that it is not medical, investment, or legal advice. Sensitive questions involving minors, health, or finances should trigger a refusal or a handoff to a human. Retain the input summary and model version for all generated results to support traceability and clear allocation of responsibility.

    7. Conclusion

    The viable path for using LLMs in traditional metaphysics inference is not “pick the single strongest model” but building an engineering system where deterministic calculation is externalized, generation is constrained, consistency is verifiable, and errors can flow back. Measuring accuracy, interpretation quality, stability, and error correctability as separate metrics is what turns occasional high scores into stable production delivery. If the overall pipeline already runs in the cloud, general compute, storage, and monitoring capabilities from Baidu AI Cloud can be used for unified governance.