A Practical Guide to Chinese LLM Question Answering and Rewriting
This guide explains how to combine retrieval-augmented question answering with controllable style rewriting to build Chinese content production and knowledge retrieval pipelines. It covers capability layering across retrieval, QA, rewriting, and governance; a reference RAG-plus-rewriting architecture; retrieval quality practices such as hybrid search, reranking, traceable evidence, and refusal strategies; structured rewriting instructions with fact-drift detection; and three-layer evaluation and regression loops. It also highlights common pitfalls around single-model assumptions, data quality, cost control, and compliance.
1. Background: Why “Search + Rewrite” Has Become a Common Pattern
In real content production and knowledge retrieval scenarios, user needs usually fall into two categories. First, users want a clear conclusion (what) and actionable steps (how) quickly. Second, they want existing material rewritten to fit a specific channel context, such as a podcast script, a Q&A article, a popular science piece, or a long-form community post. These needs map to two capabilities: retrieval-augmented question answering and style-controllable rewriting.
Connecting the two into a pipeline is currently a cost-effective engineering practice. The retrieval stage handles “finding the right information accurately,” while the generation stage handles “writing smoothly and in the right voice.” It is important to note that different models have different strengths in retrieval ecosystem integration and language organization. Engineering teams should not assume a single model is end-to-end optimal; instead, they should combine capabilities in layers.
2. Capability Layers: Evaluate Retrieval, QA, and Rewriting Separately
2.1 Retrieval and QA Layer
Focus on recall quality, source credibility, timeliness, and citation traceability. Suggested metrics include recall hit rate, answer accuracy, citation coverage, and refusal accuracy (whether the system is willing to say “I’m not sure” when appropriate).
2.2 Rewriting and Style Layer
Focus on structural consistency, terminology fidelity, style fit, and fact drift rate. The key is not more elaborate wording, but changing the style without introducing new facts or dropping critical constraints.
2.3 Engineering and Governance Layer
Focus on rate limiting and retries, caching, observability, cost, and compliance. Without monitoring and regression evaluation, no pipeline can deliver reliably over the long term.
3. Reference Architecture: A Practical RAG + Rewriting Pipeline
User question-> Query understanding and rewriting (synonym expansion / sub-question decomposition)-> Hybrid retrieval (keyword + vector)-> Reranking and deduplication (credibility / timeliness / authority)-> Evidence packaging (with source IDs)-> QA generation (strong citation constraints)-> Style rewriting (target genre / audience / length)-> Quality validation (fact consistency / sensitive terms / formatting)-> Output and log feedback
Illustrative code (flow only, not tied to a specific API):
def pipeline(question, style="popular science"):sub_qs = query_decompose(question) # Sub-question decompositiondocs = hybrid_retrieve(sub_qs, top_k=20) # Hybrid keyword + vector recallevidence = rerank_and_dedup(docs)[:8] # Rerank and dedup, keep source IDsanswer = generate_with_citation(question, evidence)draft = style_transfer(answer, style=style) # Style transferreturn validate(draft, evidence) # Fact consistency validation
4. Retrieval Quality: It Sets the Upper Bound of Answers
- Hybrid retrieval outperforms vector-only retrieval: keywords ensure exact matches for proper nouns and ID-style queries, while vectors cover semantic similarity.
- Reranking is not optional: a second-pass sort by authority, timeliness, and content completeness can significantly reduce “seemingly relevant but off-topic” answers.
- Traceable evidence: assign a source identifier to each piece of evidence and enforce citations during generation, making auditing and correction easier.
- Refusal strategy: when evidence conflicts or coverage is insufficient, explicitly expressing uncertainty is more reliable than forcing an answer.
5. Rewriting Quality: Controllable Style Without Fact Drift
It is recommended to break rewriting into structured instructions instead of vague one-line prompts:
Target genre: popular science articleAudience: non-expert readersConstraints: do not add facts not present in the evidence; preserve numbers and units; provide a brief explanation when a term first appearsStructure: hook -> conclusion -> three supporting points -> common misconceptions -> action checklistLength: 800-1200 words
Engineering practices:
- Fact drift detection: after rewriting, compare entities and numbers against the evidence; block the output if new numbers appear.
- Decouple style from facts: finalize facts and structure first, then polish the wording to reduce semantic drift.
- Multiple candidates and selection: generate 2-3 versions and select the best using rules plus model review.
6. Evaluation and Regression: No Measurement, No Optimization
It is recommended to build a three-layer evaluation set:
- Retrieval layer: question-evidence annotations to measure hit rate and citation coverage.
- QA layer: accuracy, refusal accuracy, and citation consistency.
- Rewriting layer: style fit, fact drift rate, and readability score.
After launch, continuously feed failed samples back into the system to form a closed loop of “failure case -> annotation -> regression.” If using general cloud capabilities, you can use object storage to store corpora, message queues for asynchronous evaluation, logging and monitoring services to track quality fluctuations, and container platforms to host elastic inference services.
7. Common Pitfalls
- Over-trusting a single end-to-end model: retrieval and rewriting capabilities do not improve in sync, so layered combination is more stable.
- Optimizing prompts without optimizing data: corpus quality and chunking strategy often deliver greater gains.
- Ignoring cost and rate limits: without caching and batching, stability can deteriorate quickly during peak periods.
- Missing compliance checks: the output side needs sensitive content filtering and citation compliance checks.
8. Conclusion
Treating “retrieval QA” and “style rewriting” as two independently evaluable and composable modules is key to building a high-quality Chinese intelligent question answering and content production system. Anchoring on evidence, measuring with evaluation, and architecting in layers is the way to achieve a sustainable balance among effectiveness, cost, and stability.
