Evaluating LLM Accuracy in Fortune-Telling: A Prompt Engineering Approach

    This article examines why large language models often appear accurate in fortune-telling tasks when they are actually generating post-hoc narratives rather than predictions. It outlines the capability boundaries between deterministic calculation and open-ended interpretation, then presents a reproducible evaluation workflow built on anchor injection, repeated sampling, and adversarial verification. Practical prompt templates and hallucination-suppression constraints are included, along with cross-validation and engineering recommendations. The focus is on prompt engineering, constraint design, and generation-quality assessment—not on predictive validity.

    1. The Problem: Why “Accuracy” Is Often an Illusion

    Since generative AI entered the mainstream, using general-purpose large language models for fortune-telling and destiny analysis has become a hot topic. Some users argue that these models offer broad coverage and complete expression, sometimes even outperforming manual chart casting. Others strongly disagree, pointing out that the output lacks constraints and the model can change its story at any time. These two views seem contradictory, but they point to the same technical fact: fluency is not factuality.

    A representative counterexample from the original comment section illustrates this well. First, tell the model that a major event happened in a specific year and month; it will produce a clear, logically consistent explanation. Then declare that the premise was fictional and provide a different major event; the model will immediately generate another self-consistent explanation. This is a classic case of “drawing the target after shooting the arrow”—the model does not verify whether the premise is true, but performs post-hoc narrative completion under the given premise. If you input an accomplished fact such as “I broke up with my girlfriend last year,” the model will inevitably “explain” the reasons for the breakup, but such an explanation has no predictive power.

    Therefore, when evaluating this kind of application, the core metric should not be whether the text is polished, but whether the model explicitly expresses uncertainty under conditions of incomplete information and potentially contaminated premises.

    2. Capability Boundaries: What Models Are Good at and What They Are Not

    The essence of a general-purpose large language model is conditional probability generation based on context. It excels at pattern transfer, structured organization, and multi-option enumeration; it is poor at precise calendar conversion, true solar time correction, geographic longitude adjustment, and strict rule-system deduction.

    Fortune-telling tasks actually involve two layers:

    • Deterministic calculation layer: arrangement of heavenly stems and earthly branches, solar term transitions, month and year pillar boundaries, starting age of major luck cycles, palace division, and so on—all verifiable deterministic logic;
    • Interpretation layer: mapping symbolic relationships to real-world events and advice, which is open-ended semantic generation.

    Mixing the two layers and handing them all to the model is the main source of error. The correct engineering approach is to separate the layers: assign the calculation layer to a deterministic program or rule engine, assign only the interpretation layer to the model, and inject the calculation layer’s output as strong constraint context.

    Illustrative layered invocation logic:

    1. # Pseudocode: separating deterministic calculation from generation
    2. chart = rule_engine.compute(birth_time, longitude) # calendar and timezone correction
    3. prompt = f"""
    4. Known constraints (not modifiable):
    5. - Four pillars: {chart.pillars}
    6. - Luck pillar sequence: {chart.luck_pillars}
    7. - Correction method: true solar time, longitude {chart.longitude}
    8. Task: perform structured analysis based only on the above constraints; do not add symbolic relationships not provided.
    9. """
    10. answer = llm.generate(prompt, temperature=0.2)

    3. Designing a Reproducible Evaluation Workflow

    To turn “accuracy” into a measurable engineering problem, you need three components: anchors, repeated sampling, and adversarial verification.

    1. Anchor injection. Select three or four life events with clear timing and publicly verifiable records (such as starting a job, moving, surgery, or buying a house) as timeline checkpoints. Anchors must be objective events, not emotional narratives; otherwise the model will fabricate causality along the emotional thread.
    2. Repeated sampling. Independently generate multiple answers to the same question (for example, five), and compare whether the conclusions converge. If the conclusions are consistent, proceed to the next step; if two mutually exclusive judgments appear, trigger adversarial verification.
    3. Adversarial verification. Feed the opposing view back as a “third-party opinion,” and require the model to explain which dimension it ignored, or to explicitly refute it with evidence. This step effectively reveals whether the model is reasoning or pandering.
    4. Single-question principle. Ask about only one thing at a time to avoid context entanglement from mixing multiple questions, making it easier to locate the source of bias.

    Example prompt template for adversarial verification:

    1. A third party disagrees with my conclusion. Their opinion is: {opposing_view}
    2. Choose one of the following:
    3. A. Acknowledge that the other side is correct, and point out the specific dimension I previously missed;
    4. B. Maintain the original conclusion, and provide chart-based evidence point by point.
    5. Compromise statements and psychological-comfort-style phrasing are prohibited.

    4. Hallucination Suppression: Turning “Explainable” into “Constrained”

    To suppress post-hoc narratives, the key is to remove the model’s room for free play and replace vague instructions with explicit constraints. Actionable constraints include: only allowing references to the provided symbols and time points; requiring an “insufficient information” output for missing information; prohibiting speculation about sensitive conclusions such as occupation, health, or marriage; and requiring all judgments to indicate whether the basis comes from the calculation layer or the interpretation layer.

    At the same time, external verification should be introduced on the application side: compare deterministic calculation results with model output for consistency, and intercept any mismatch; require verifiable time anchors for key conclusions; and set up premise-change detection for multi-turn dialogues—once the user rewrites a premise, immediately invalidate prior conclusions and require re-derivation. This step directly blocks the “changing one’s story” path.

    When implementing such an application on Baidu AI Cloud, you can use a combination of general capabilities: object storage to save desensitized evaluation samples, a message queue to decouple batch sampling tasks, a container platform to host the rule engine and inference service, and logging and monitoring/alerting services to track sampling convergence rate and interception rate, forming a closed loop.

    5. Cross-Validation and Engineering Recommendations

    A single model and a single system are not enough to support conclusions. Engineering practice should perform triple cross-validation: cross-validation between different rule systems (structural differences among systems such as Eastern astrology, Western astrology, and Indian astrology can expose the subjectivity of the interpretation layer); cross-validation between different models (run the same prompt and the same constraints across multiple models and compare variance); and human-machine cross-validation (have people with rule knowledge review the calculation layer output).

    It must be emphasized that fortune-telling has no predictive validity in a scientific sense. This article discusses prompt engineering, constraint design, and generation-quality assessment methods, and no conclusion constitutes medical, legal, marital, or investment advice. Treating this kind of application as an “assistive tool for structured narrative and self-reflection” is more consistent with technical reality than treating it as a prediction tool, and is also safer and more controllable.