Evaluation Methods and Risk Control Practices for Generative AI in Divination-Style Structured Generation

    This article explains how to evaluate and deploy generative AI systems that handle traditional Chinese divination tasks (Bazi, Ziwei, Meihua, and Liuyao) as high-risk structured generation problems. It covers a controlled-variable testing methodology, a five-dimension scoring rubric, task-specific evaluation points for each divination method, three abstract model archetypes, reusable prompt templates with output constraints, common pitfalls such as evaluation drift and overconfident claims, and a reference architecture combining a deterministic rule engine, an LLM interpretation layer, safety filtering, and human review. The core conclusion: success should be measured by reproducibility, internal consistency, and clear boundaries—not by claims of predictive accuracy.

    1. Define the Scope First: Treat “Divination” as a High-Risk Structured Generation Task

    Traditional Chinese divination systems—Bazi (Four Pillars), Ziwei (Purple Star), Meihua Yishu (Plum Blossom Numerology), and Liuyao (Six Lines)—are essentially rule-based folk reasoning frameworks with fixed symbolic systems and interpretive conventions. For large language models, they present three distinct challenges:

    1. Rule computation: calendar stem-branch conversions, solar term boundaries, palace placements, and hexagram construction.
    2. Long-chain consistency: the natal chart, luck cycles, annual influences, and timing predictions must not contradict one another.
    3. Natural language interpretation: symbolic relationships must be translated into understandable advice without exaggeration.

    Engineering teams should therefore never market such applications as “predicting the future.” They should be positioned as rule-based interpretive assistance and content generation. Compliance requires three bottom lines: no claims of scientific validation, no substitution for major decisions in medicine, finance, law, or relationships, and no deterministic language that manufactures anxiety. Appropriate product framing includes “cultural reference,” “rule-based calculation demo,” and “text interpretation aid,” with outputs that state assumptions, sources of error, and a path to human review.

    Within the scope of general-purpose cloud platform capabilities—such as those offered by Baidu AI Cloud—evaluation materials can be stored in object storage, model inputs and outputs recorded via log services, and failure rates and drift tracked through monitoring and alerting. Only generic product categories are referenced here; no third-party vendors or proprietary interfaces are involved.

    2. Controlled-Variable Testing: Fix the Inputs, Then Compare Capabilities

    The key to comparing LLM performance on divination tasks is controlling variables. Fix four groups of elements: the birth or casting information, the question domain, the prompt template, and the output structure. A unified prompt might be: “Following the specified divination rules, perform chart calculation, validation, interpretation, and risk disclosure for the given time information.” Each sample should be re-tested at least three times, measuring stability rather than one-off impressive outputs.

    A minimal sample card looks like this:

    1. {
    2. "case_id": "career_001",
    3. "method": "bazi|ziwei|meihua|liuyao",
    4. "birth_or_cast_time": "1990-05-15 10:00",
    5. "timezone": "UTC+8",
    6. "question": "Career trends and points of caution this year",
    7. "required_sections": ["raw_calc", "rule_check", "interpretation", "uncertainty", "advice_boundary"],
    8. "forbidden": ["deterministic_guarantee", "medical_financial_legal_decision"]
    9. }

    Five evaluation dimensions are recommended: calculation/casting correctness, rule consistency, practical usefulness of interpretation, uncertainty expression, and risk boundaries. Weights can vary by scenario, but rule correctness and risk boundaries together should account for no less than 60%. A percentage-based total score works well:

    S = 0.30 × calculation correctness + 0.25 × logical consistency + 0.20 × interpretation usability + 0.15 × uncertainty + 0.10 × compliance boundary

    3. Task-Specific Evaluation Points for the Four Methods

    3.1 Bazi: Time Conversion and Layered Reasoning

    Bazi is the most sensitive to time precision. Errors commonly occur at solar term transitions, true solar time adjustments, time zones, daylight saving time, and the day-pillar rollover point. Do not mistake “sounds plausible” for accuracy: verify the four pillars first, then examine strength assessment, the Ten Gods, chart structure, and luck-cycle continuity. Common defects include incorrect luck-cycle start ages, disconnects between annual influences and the natal chart, mislabeled Ten Gods, and conflating climate adjustment with strength analysis.

    Good outputs present verifiable intermediate values first—solar term basis, day pillar derivation, useful-god assumptions—before conclusions. If a model cannot explain why it produced a given chart, the more fluent its interpretation, the more dangerous it is.

    3.2 Ziwei: Palace Systems and Multi-Factor Coupling

    The core of Ziwei tasks is not single-star fortune judgments but the layered relationships among the Life Palace, Body Palace, the twelve palaces, the Four Transformations, and decadal/annual cycles. Common model problems include scrambled palace ordering, fabricated star brightness ratings, inconsistent transformation directions, and mechanical stacking of single-star interpretations. Evaluations should force the model to list the palace table, major star placements, and transformation sources before judging whether a reading holds together.

    3.3 Meihua: Casting Randomness and Host-Guest Relationships

    Meihua emphasizes coherent derivation from time-based casting: the moving line, host-guest (ti/yong) relations, and the mutual and changed hexagrams. The risks are models describing random events with excessive certainty, or reversing relationships such as host-overcomes-guest versus guest-generates-host mid-answer. Tests should fix the casting time and require explicit output of the original hexagram, mutual hexagram, changed hexagram, moving line, and host-guest determination—vague conclusions alone are not acceptable.

    3.4 Liuyao: Hexagram Assembly, Six Relations, Six Spirits, and Timing

    Liuyao most often exhibits “correct terminology, wrong assembly.” Evaluation focuses on whether the Najia assignments, Self/Other positions, Six Relations, Six Spirits, moving/changing lines, and month/day stem interactions are mutually consistent. Timing inferences must be labeled with strength conditions—statements like “may be triggered at clash or combination points” are empirical heuristics and must never be output as guaranteed dates.

    4. Three Abstract Model Archetypes

    Without targeting any specific brand, common LLMs can be grouped into three archetypes.

    Math-and-rules oriented: strong at rule memory and symbolic reasoning; well suited for chart calculation, validation, and formulaic explanation. Weakness: cross-session drift, where the Ten Gods, palaces, or moving lines in the same case get rewritten between rounds. Mitigation: force intermediate-step output and verify with a deterministic checker.

    General-purpose practical: friendly language and good scenario transfer, translating abstract symbols into workplace, interpersonal, and emotional-management advice. Weakness: basic calculations are often shortcut—luck-cycle boundaries, time zone conversion, and solar term edges need external tooling as a safety net.

    Scholarly/textual: comprehensive frameworks, good at citing classical sources, and able to present multiple schools of interpretation. Weakness: dogmatism—applying ancient verdicts directly to modern contexts while ignoring individual variation and probabilistic boundaries. Best used as a knowledge-base interpreter, not as the sole generator of final advice.

    5. Reusable Prompt Template and Output Constraints

    Adopt a “calculate first, evidence first, advice last” template:

    1. You are a rule-based calculation assistant. You do not make deterministic predictions about the future.
    2. Input: {time_info, timezone, method, question}
    3. Requirements:
    4. 1. List key intermediate results and mark items that can be manually verified;
    5. 2. Where schools of interpretation differ, list at least two readings with applicable conditions;
    6. 3. No final decision advice on medical, investment, marriage, or legal matters;
    7. 4. All trend judgments must include trigger conditions and uncertainty;
    8. 5. Output JSON with fields: calc_steps/checks/interpretation/risks/boundary.

    Server-side validation can run in two layers: a deterministic program recomputes the chart at the rule layer, and the model self-checks for conflicts at the generation layer. An illustrative flow:

    1. def evaluate(case):
    2. model_out = llm.generate(build_prompt(case))
    3. ref = deterministic_rules.compute(case) # local rule engine or manual table
    4. hard_fail = compare_core_fields(model_out.calc_steps, ref)
    5. consistency = check_internal_conflict(model_out)
    6. safety = scan_forbidden_claims(model_out)
    7. return score(hard_fail, consistency, safety, readability(model_out))

    When core fields disagree, do not ask the model to “polish” the answer—trigger recomputation, or degrade to outputting only general cultural background.

    6. Common Pitfalls and Mitigations

    Pitfall 1: Mistaking fluency for accuracy. Mitigation: structure key fields and verify the chart before reading the prose.

    Pitfall 2: Re-test drift, where the same input yields opposite conclusions days later. Fix randomness parameters, record version snapshots, and set cross-round consistency thresholds.

    Pitfall 3: Failed modernization of classical verdicts, forcing ancient contexts onto gig work or remote collaboration. Require mappings to observable behaviors rather than fatalistic labels.

    Pitfall 4: Deterministic promises such as “you will definitely be promoted” or “you will definitely lose money.” These must be rewritten as conditional statements and risk checklists.

    Pitfall 5: Privacy leakage. Birth time, location, and name combinations are highly sensitive; apply de-identification, minimize data collection, and provide deletion mechanisms.

    7. Selection and Deployment Recommendations

    For rule demonstration or teaching, prioritize solutions that stably output intermediate steps and support external verification. For mass-market content consumption, fluent expression is acceptable but must be backed by a rule engine. For a traditional-culture knowledge base, strengthen citations, school-of-thought differences, and attribution boundaries rather than chasing “uncanny accuracy.”

    The recommended engineering architecture is: deterministic rule-computation component + LLM interpretation layer + safety filtering + human review. Give calculation to verifiable modules, language to the generative model, risk to the policy layer, and disputes to humans.

    One point bears repeating: divination content belongs to cultural and experiential interpretive systems and does not constitute scientific prediction. The value of a well-built application lies not in manufacturing certainty, but in transparently showing the reasoning path, flagging uncertainty, and helping users organize their questions more rationally. Reframing “is it accurate?” as “is it reproducible, self-consistent, and bounded?” is the key to sustainably deploying this class of generative AI application.