Skip to main content

7 posts tagged with "RAG"

Retrieval-Augmented Generation

View All Tags

Policies via RAG, Orders via Live APIs: Dividing Knowledge from Facts in Logistics Agents

· 5 min read
Jack Ning
Maintainer of Bytedesk

Asked "how much will my insured shipping pay out", the bot instantly replies "up to three times the freight"—unaware this order was never insured; asked "why hasn't my package arrived", the bot recites the delivery-time policy—while tracking shows the parcel was held at customs last night. Both failures share one root cause: mixing "rules" and "facts" into a single knowledge base, letting retrieval substitute for queries. Logistics support knowledge is far more tangled than e-commerce: service policies, delivery rules, historical tickets, and live order data swirl together—without a clear division of labor, answers will always be wrong.

This post is part of the "AI Customer Service Product and Engineering Practices" experience-sharing series, drawn from a practice review of an AI customer service product at a leading logistics company. In this post I want to share how to coordinate RAG retrieval and live APIs when the knowledge base contains service policies, logistics rules, historical tickets, and real-time order data at the same time — resolving knowledge conflicts, stale information, and answer accuracy. This is the foundation of logistics agent accuracy.

Designing Knowledge Base Structure, Retrieval, and Version Management

· 4 min read
Jack Ning
Maintainer of Bytedesk

The most common knowledge base failure is not "nothing retrieved" but "outdated answer retrieved": the US return window changed from 45 days to 30 days last week, both versions coexist in the knowledge base, and the bot cites either one at random. A user follows the old policy, gets rejected, and files a complaint. A knowledge base is not a static asset you build once—it is a living system that needs continuous operations.

This post is part of an experience-sharing series on "AI customer service product and engineering practice", drawn from hands-on practice at a global fast-fashion cross-border e-commerce platform. In this post I want to share how to design the knowledge base's data structure, chunking, retrieval strategy, and version management so that product inquiries, logistics exceptions, returns and refunds, and large volumes of business knowledge all match accurately across countries, languages, products, and order states.

Multi-Source Knowledge Governance: When Platform Rules, Merchant Promises, and Product Data Disagree, Whom Does the Bot Believe?

· 5 min read
Jack Ning
Maintainer of Bytedesk

When a customer service bot answers wrongly, the root cause is often the knowledge, not the model. E-commerce knowledge sources are inherently plural: platform rules say seven-day no-reason returns, the merchant's product page promises thirty days; the spec sheet disagrees with the order system; an after-sales policy got a temporary revision during a big sale while the knowledge base still holds the old version. The user asks "can I return this?", the bot quotes stale, low-priority knowledge, and a complaint follows.

This post is part of an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an intelligent service product manager at a large general e-commerce platform. In this post I want to share how to design knowledge governance, priority arbitration, and dynamic updates that keep bot output accurate and consistent when platform rules, merchant promises, product information, order status, and after-sales policies conflict, expire, or disagree on scope.

The ceiling of a RAG system is never the model — it is knowledge governance, and that is exactly the debt most teams carry.

Optimizing the RAG Pipeline: From Chunking and Recall to Reranking and Generation Accuracy

· 5 min read
Jack Ning
Maintainer of Bytedesk

The most common predicament after a RAG system launches: the knowledge base contains a perfectly correct answer, yet the bot still answers wrongly. Should you change chunking? Swap the embedding model? Tune the prompt? Blame the LLM? If you cannot say which link failed, optimization is just gambling.

This post is part of an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an intelligent service product manager at a large general e-commerce platform. In this post I want to share how to design the RAG system — optimizing chunking, recall, reranking, and answer generation — when the bot must simultaneously use the product knowledge base, platform rule base, and real-time order data, and how to solve the two classic failure modes of "retrieval is right but the answer is wrong" and "knowledge is right but business state is stale".

The value of this design is that it decomposes RAG from "we plugged in a vector database" into an attributable, stage-by-stage optimizable engineering pipeline.

Coordinating RAG Retrieval and Business Tool Calls: Static via Retrieval, Dynamic via API

· 4 min read
Jack Ning
Maintainer of Bytedesk

"Where is my rider?"—if the AI agent answers with a three-day-old delivery note from the knowledge base, the answer is guaranteed wrong. Order status, rider location, inventory counts—this information changes every second; refund policies, check-in rules, after-sales processes may change once every few months. Mixing these two kinds of information into one retrieval store is one of the most common architecture mistakes in smart customer service.

This is the seventh article in an experience-sharing series on "AI customer service product and engineering practice," drawn from hands-on practice as an AI Product Manager focused on IM intelligent customer service at a local-life services platform. In this post I want to share how to design the coordination between RAG retrieval augmentation and business tool calls when smart customer service must integrate merchant knowledge bases, platform rules, order data, and real-time fulfillment information simultaneously—solving knowledge-update lag, retrieval conflicts, and inaccurate model generation.

The design condenses to one sentence: static via retrieval, dynamic via API. But the boundary division, conflict resolution, and traceability mechanisms behind that sentence are where the real work lies.

Designing a RAG Retrieval Pipeline for Cross-Border E-Commerce AI Customer Service: From Chunking to Reranking

· 7 min read
Jack Ning
Maintainer of Bytedesk

A buyer asks "why can't this order be returned?" The AI agent either digs through the knowledge base and finds nothing, or answers with the return policy of site A to a buyer on site B — these are the two most common failure modes teams hit after launching an AI customer service bot for cross-border e-commerce. Many teams assume RAG just means "plug in a vector database," then watch accuracy stall with no idea which link in the chain is broken.

This post is the first in an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an AI product manager (customer service platform track) at a Southeast Asian cross-border e-commerce platform. In this post I want to share a complete RAG pipeline design — chunking, vector retrieval, keyword retrieval, hybrid recall, and reranking — for an AI agent that must answer platform policy questions, look up orders, and handle after-sales, together with how to prioritize optimization across these stages. This is essentially the first engineering problem every team building knowledge-driven AI customer service runs into.

Right Retrieval, Wrong Answer: Root-Causing and Guarding the RAG Generation Stage

· 4 min read
Jack Ning
Maintainer of Bytedesk

The most frustrating moment in a RAG system is not "nothing retrieved" but the correct answer was retrieved and the model still got it wrong. The logs show it plainly: the right policy chunk ranked first going into the context, yet the model's answer mixed everything up. Blaming "the model is weak" is the laziest conclusion — how context is organized, how the prompt is written, and how chunks are ordered can each be the real culprit.

This is the seventh post in an experience-sharing series for AI customer service product managers and developers, drawn from hands-on practice as an AI product manager at a Southeast Asian cross-border e-commerce platform. In this post I want to share how to localize the problem across retrieval relevance, context completeness, prompt design, and model generation when RAG has already retrieved the relevant knowledge but the model still generates a wrong answer — and how to design the citation verification, refusal, and human handoff mechanisms.