How to Evaluate LLM Reasoning and Retrieval Capabilities

    This article explains a repeatable method for evaluating large language model reasoning and retrieval capabilities instead of relying on single-question impressions. It covers five scoring dimensions—conceptual accuracy, coverage completeness, structural organization, retrieval augmentation effectiveness, and interaction quality—along with a four-step evaluation workflow, common failure patterns, and engineering practices for improving weak areas through retrieval and orchestration.

    1. Background: Why the Same Question Produces Very Different Answers

    When teams deploy LLM applications, they often see the same knowledge question return results that differ sharply in completeness, structural clarity, and factual accuracy across model approaches. A representative approach from the source material used the humanities question “Which emperors held Wu as their core posthumous title?” for a side-by-side comparison. Some approaches explained the concept first and then listed entries, some returned only a dense block of text, and others blurred the boundaries between concepts.

    These differences are not accidental. They result from at least four overlapping factors:

    1. The model’s own reasoning and knowledge organization capability;
    2. Whether retrieval-augmented generation (RAG) is integrated, and the quality of retrieval;
    3. How well output is aligned to a structure (whether it defines first, enumerates next, and summarizes last);
    4. The interaction mode (whether a deep-thinking mode is used, whether extra permissions are required).

    The focus of evaluation should therefore not stop at subjective conclusions such as “which one is better,” but should establish a repeatable evaluation method.

    2. Evaluation Dimensions: Turning “Experience” into Quantifiable Metrics

    Break the evaluation into five dimensions, each scored independently from 1 to 5, to avoid vague overall impressions.

    • Conceptual accuracy: whether core concepts are distinguished from adjacent ones. For example, “posthumous title” and “temple name” belong to different naming systems, and confusing them is a conceptual error.
    • Coverage completeness: whether list-type questions cover the main entries, and what the omission rate is.
    • Structural organization: whether there is a “definition–enumeration–summary” hierarchy, and whether tables or nested lists are used.
    • Retrieval augmentation effectiveness: whether retrieval results are genuinely used rather than only polished at the language level.
    • Interaction and correction quality: whether corrections are user-facing and whether redundant self-justifying content is produced.

    An illustrative scoring table structure is shown below:

    1. Dimension Weight Score(1-5) Notes
    2. Conceptual accuracy 0.30 4 Distinguishes posthumous title/temple name
    3. Coverage completeness 0.25 3 Omits several entries
    4. Structural organization 0.20 5 Includes overview table
    5. Retrieval augmentation 0.15 4 Cited sources are verifiable
    6. Interaction and correction 0.10 3 Redundant explanations present
    7. Weighted total = Σ(weight × score)

    3. Evaluation Workflow: A Four-Step Method for Repeatability

    Step 1: Fix the question set. Build a layered set of at least 50 questions covering four types—definitional, enumerative, comparative, and multi-hop reasoning—and avoid drawing conclusions from a single question.

    Step 2: Fix parameters and modes. Record whether deep-thinking mode is enabled, whether web retrieval is enabled, and keep generation parameters such as temperature consistent; otherwise the comparison is invalid.

    Step 3: Double-blind review. Two reviewers score independently, and items with a score gap greater than 1 point go to a second review to reduce subjective bias.

    Step 4: Regression retesting. After a model or retrieval strategy changes, rerun the same question set to form a trend curve rather than a single-point conclusion.

    Illustrative evaluation driver code:

    1. scores = []
    2. for case in dataset:
    3. resp = call_model(case.prompt, mode="deep_think", retrieval=True)
    4. s = {d: judge(case, resp, d) for d in dimensions}
    5. s["total"] = sum(s[d] * weights[d] for d in dimensions)
    6. scores.append(s)
    7. report = aggregate(scores) # Outputs mean, variance, and low-score samples

    4. Common Failure Patterns and Root Causes

    Four high-frequency failure patterns can be abstracted from the source observations, and they have broad reference value:

    • Conceptual boundary confusion: mixing entries from different naming systems into a list. This is a high-risk error and should trigger an automatic fail or a heavy penalty in scoring.
    • Insufficient coverage: wrapping up after listing only a few entries, indicating inadequate knowledge recall or insufficient coverage of retrieved passages.
    • Search-engine-style output: only stacked facts, with no upfront definition or closing summary. Readability is poor, but facts may be correct.
    • Self-directed correction: outputting the internal reasoning process directly to the user, creating information noise. In engineering, prompts should constrain the model to “output only user-facing conclusive corrections.”

    5. Engineering Recommendations: Filling Gaps with Retrieval and Orchestration

    If evaluation shows that an approach is weak in coverage completeness, optimize on the retrieval side first rather than blindly switching models:

    1. Document chunking and indexing: split by semantically complete paragraphs and retain heading hierarchy as metadata.
    2. Hybrid retrieval: run keyword recall and vector recall in parallel, then filter Top-K with a reranking model.
    3. Context budget control: limit the number of injected passages to prevent noise from crowding out useful information.
    4. Structured output constraints: require the model to output in the order “definition–list table–summary–sources.”
    5. Observability: integrate logging services and monitoring alerts, and record retrieval hit rate, timeout rate, and the distribution of low-score samples.

    For cloud deployment, general-purpose capability combinations can be used, such as object storage for evaluation corpora, message queues for peak shaving, container platforms for hosting inference services, and logging services with monitoring alerts for stability, so the evaluation pipeline can run over the long term.

    6. Conclusion

    A single-question experience can only serve as a clue, not as a basis for selection. Breaking “experience” into five dimensions—conceptual accuracy, coverage completeness, structural organization, retrieval effectiveness, and interaction quality—combined with a fixed question set, blind review, and regression retesting, yields robust conclusions. Baidu AI Cloud provides general-purpose capability support in the engineering combination of model services and retrieval augmentation, and teams can use the method above to conduct objective, reproducible capability evaluation and continuous optimization in their own scenarios.