Testing Large Language Models on Traditional Chinese Fortune-Telling: Benchmarks and Pitfalls to Avoid
This article evaluates how large language models handle traditional Chinese fortune-telling (BaZi), a task that demands both strict rule-based calculation and natural-language interpretation. It introduces a three-dimensional assessment framework covering calculation accuracy, readability of interpretations, and result stability, then shares hands-on observations of where models succeed and fail. The article closes with a practical pitfall-avoidance guide and a reusable architecture that separates deterministic computation from language generation, using structured output, prompt constraints, evaluation sets, and monitoring to keep results accurate and consistent.
1. Background: Why “Being Conversational” Is Not the Same as “Being Good at Calculations”
Large language models (LLMs) perform well on open-ended question answering, but traditional fortune-telling is a classic “strong rules + strong computation + low fault tolerance” task. On one hand, it requires precise calendar conversion, solar term transitions, and the arrangement of Heavenly Stems and Earthly Branches. On the other hand, it requires translating highly abstract terminology into everyday descriptions that ordinary people can understand. These two capabilities place completely different demands on a model. When they are mixed into a single conversation, it is easy to end up with a situation where “the interpretation flows smoothly, but the data is wrong.”
Therefore, evaluating this kind of capability cannot rely solely on whether the answer “sounds plausible.” It should be broken down into three dimensions:
- Calculation accuracy: whether the Four Pillars, solar terms, monthly command, Ten Gods, and the start of major luck cycles can be recomputed and verified.
- Interpretation readability: whether terminology is translated into scenario-based language that fits the user’s understanding.
- Result stability: whether repeated calls with the same input produce consistent conclusions, without internal contradictions.
2. Three-Dimensional Evaluation Framework and Hands-On Observations
1. Calculation Accuracy: Numerical Ability Is the Dividing Line
In testing, the differences between models were most obvious at the chart-casting stage. The better-performing group could correctly identify the strength or weakness of the Day Master, the Ten Gods structure, and the core traits of the monthly command. They gave self-consistent conclusions for key judgments such as “Proper Officer structure, Day Master in command and strong,” and could map “Proper Seal revealed in the heavenly stems” to suitable industries like education and paid knowledge products. This shows they had built a relatively stable connection between “rule reasoning + semantic grounding.”
Another group of models had weaknesses concentrated in calendar and luck-cycle calculation: the start of the luck cycle was off by one to two years, and there were even basic errors where the birth year did not match the luck-cycle table. This kind of problem is not a “writing style issue,” but a typical sign that the calculation chain lacks the support of deterministic tools.
2. Interpretation Readability: Plain Language Is the Core of the Experience
The value of plain-language interpretation lies in lowering the barrier to understanding. For example, expressing “Seven Killings attacking the self” as encountering a strong, domineering superior in the workplace, or expressing “Rob Wealth competing for money” as resource competition and internal friction among colleagues. Such expressions are close to daily experience, and users can gain a usable point of self-reference without memorizing terminology. However, readability must be evaluated separately from accuracy; otherwise, it is easy for fluent wording to mask data errors.
3. Result Stability: Dynamic Drift Needs Engineering Safeguards
Testing showed that some models had high single-call accuracy, but retesting after an interval could produce Ten Gods misjudgments (such as confusing Eating God with Hurting Officer). This is drift caused by the randomness of generative models. A workable approach is to allow immediate correction after manual review, and to fix randomness at the system level and cache key intermediate results, avoiding a situation where “every conclusion is different.”
3. Pitfall-Avoidance Guide: Locking Uncertainty Inside an Engineering Cage
1. Separate Calculation from Generation
Do not make the model handle both “calculating” and “explaining” at the same time. Leave calendar conversion, stem-and-branch arrangement, and luck-cycle calculation to deterministic code modules, and let the model only convert structured results into natural language.
# Example: deterministic calculation + model interpretationchart = compute_chart(birth_time) # Four Pillars, monthly command, Ten Gods, luck cyclesassert chart.validate() # self-consistency checkanswer = llm.render(chart, style="plain") # plain-language expression only
2. Structured Output and Self-Checking
Require the model to return intermediate conclusions in a fixed structure, making it easy for programs to assert and run regression tests. Build enumeration checks for key fields such as Ten Gods and structures; when an out-of-range value appears, trigger recomputation or manual review.
3. Prompt Constraints and Temperature Control
In the prompt, make it clear that the model should “only explain the given chart results and must not calculate the calendar on its own.” Lowering the sampling temperature and fixing the random seed can significantly reduce the probability of drift.
4. Evaluation Sets and Regression Mechanisms
Build an evaluation set covering difficult points such as solar term transitions, leap months, the Zi hour crossing midnight, and luck-cycle boundaries. Run it every time the prompt or model version changes, forming a traceable quality baseline.
5. Compliance and Expectation Management
This kind of content belongs to the category of traditional culture and entertainment. Product copy should clearly state that it is not a basis for decision-making, to avoid use in high-risk scenarios such as medical or investment decisions.
4. Architecture Recommendation: A Reusable Deployment Pattern
A layered architecture of “rules engine + large model + monitoring and alerting” is recommended: the rules layer ensures deterministic calculation; the model layer handles stylized interpretation; the engineering layer uses logging services and monitoring alerts to track misjudgment rate, drift rate, and user correction rate, and can place high-frequency tasks into caches or queues to smooth out peaks. If elastic concurrency is needed, stateless deployment and result archiving can be built on a container platform and object storage, making it easy to trace back and run secondary evaluations.
5. Conclusion
For large models, traditional fortune-telling is a combined test of “calculation determinism” and “language naturalness.” Only by handing the calculations to code, the interpretation to the model, and quality to evaluation and monitoring can you preserve the accuracy baseline while ensuring a good experience.
