Skip to main content

2 posts tagged with "Retrieval Augmented Generation"

Key topics and practices on Retrieval Augmented Generation

View All Tags

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.

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.