Public case (sourced). Based on LinkedIn authors' published paper, "Retrieval-Augmented Generation with Knowledge Graphs for Customer Service Question Answering" (Xu et al., SIGIR '24, arXiv 2404.17723); every fact below is attributed to it.
This case belongs to Data and Retrieval Architecture for AI Systems. Where the paper is silent, this page says so and does not fill the gap. Component names in the diagrams are this course's labels.
Context
- Seven LinkedIn authors address customer-service technical support, where, in their words, "swiftly and accurately retrieving relevant past issues is critical for efficiently resolving customer inquiries".
- The knowledge source is a body of historical issue-tracking tickets. The authors name Jira as an example of such a system.
Problem statement
The authors state two limitations of conventional retrieval-augmented generation (RAG) over tickets:
- Compromised retrieval accuracy from ignoring structure. Issue tickets have inherent structure and links to each other ("issue A is related to/copied from/caused by issue B"). Compressing them into text chunks, the authors say, loses that information.
- Reduced answer quality from segmentation. Fixed-length segments can disconnect related content. Their example is a ticket that describes the issue at the start and the solution at the end, which may be split so that critical parts of the solution are missing.
The goal is a retrieval method that keeps intra-issue structure and inter-issue relations. Success is measured with retrieval metrics (MRR, Recall@K, NDCG@K), text-generation metrics (BLEU, ROUGE, METEOR) and per-issue resolution time in production.
Constraints
The paper states these constraints:
- Embedding models have context-length limits, which is why pipelines segment tickets.
- The system must serve online: a fallback to text-based retrieval "for robust online serving" covers a query that fails to execute.
The paper is silent on latency, cost, privacy, access control and ticket volume. Qdrant and Neo4j appear only as examples, not as LinkedIn's stack.
Why the traditional approach fell short
The baseline is conventional text-based embedding-based retrieval (EBR). Baseline and new method used the same LLM (GPT-4) and embedding model (E5).
| Baseline stage | What happens |
|---|---|
| Ingest | Tickets are treated as plain text, split into chunks that fit the embedding model, and each chunk becomes an embedding vector |
| Query | The most relevant chunks are retrieved and fed to an LLM as context |
The authors attribute its weaknesses to the two limitations above.
Options considered
The paper has no formal options analysis. The alternatives it evaluates:
| Option | What the paper says | Verdict in the paper |
|---|---|---|
| Manual methods, no tool (the non-AI option) | One of two randomly split groups in the deployment | The control group |
| Text-based EBR over ticket chunks (the simpler AI option) | The offline baseline | Outperformed on every reported metric |
| RAG over a knowledge graph built from tickets | The authors' method | Deployed |
Solution architecture
The authors describe two phases: constructing the knowledge graph from historical tickets, and retrieval and answering at query time.
Figure 1. Knowledge graph construction and the query path, as described in the paper
How to read this: the left side is built ahead of time from tickets, the right side runs per question, and the red dashed arrow is the fallback.
Figure 2. The runtime path in the paper's own order
How to read this: the loop is entity-by-entity matching, the note is the ticket ranking, and the alt block is the fallback.
How AI solved it, step by step
This follows the paper's Section 3 and Figure 1; the example is the paper's own. The first track is the query path of Figure 2; the second is the build done ahead of time.
Under the hood
The central step ranks tickets by section-specific embedding matches, not whole-chunk similarity. For each entity pair (a section key and a value), cosine similarity is computed between the value and all graph nodes of that section, and node scores are summed per ticket. The paper's stated premise is that "the occurrence of multiple query entities is indicative of pertinent links".
The second step is retrieval by graph query. For the paper's example, "how to reproduce 'ENT-22970'", the generated Cypher is:
MATCH (j:Ticket {ticket_ID: 'ENT-22970'})
-[:HAS_DESCRIPTION]-> (description:Description)
-[:HAS_STEPS_TO_REPRODUCE]-> (steps_to_reproduce: StepsToReproduce)
RETURN steps_to_reproduce.value
Because the answer is read from a named section of one ticket, a problem and its fix are not split by a chunk boundary; the authors say preserving the logical coherence of ticket sections is how their method overcomes the second limitation. Cosine similarity is explained in Under the hood: Embeddings and similarity metrics.
What went wrong / failure modes
| Source | What it says |
|---|---|
| What the paper reports | One failure path: if query execution encounters issues, a fallback reverts to baseline text-based retrieval. Future work: an automated mechanism for extracting graph templates, dynamic updates of the graph based on user queries, and applicability beyond customer service |
| What the paper does not say | How often the fallback fires, how often the generated graph query is wrong, how wrong answers were handled, the evaluation-set size, the number of tickets kept, the implicit-link threshold, how the graph is refreshed as tickets arrive, or how access is controlled |
| This page's reading, not claims from the paper | The design implies dependencies: an LLM-generated query that can fail or return the wrong section, a fixed section template that must match how tickets are written, and a graph only as current as its last build. Each deserves a test and a named fallback |
Results
Only numbers published in the paper are given. The offline evaluation used a curated "golden" dataset of typical queries, tickets and authoritative solutions; its size is not given.
Retrieval (the paper's Table 1)
| System | MRR | Recall@1 | Recall@3 | NDCG@1 | NDCG@3 |
|---|---|---|---|---|---|
| Baseline | 0.522 | 0.400 | 0.640 | 0.400 | 0.520 |
| Knowledge-graph method | 0.927 | 0.860 | 1.000 | 0.860 | 0.946 |
Answer quality (Table 2)
| System | BLEU | METEOR | ROUGE |
|---|---|---|---|
| Baseline | 0.057 | 0.279 | 0.183 |
| Knowledge-graph method | 0.377 | 0.613 | 0.546 |
The authors report that the method surpasses the baseline by 77.6% in MRR and by 0.32 in BLEU; the table gives (0.927 - 0.522) / 0.522 = 0.776 and 0.377 - 0.057 = 0.32.
Deployment (Table 3). The authors say the method was deployed in LinkedIn's customer service team for approximately six months across multiple product lines; the team was split randomly into a group using the system and a group using traditional manual methods.
| Group | Mean | P50 | P90 |
|---|---|---|---|
| Tool not used | 40 hours | 7 hours | 87 hours |
| Tool used | 15 hours | 5 hours | 47 hours |
The authors report a 28.6% reduction in median resolution time per issue; (7 - 5) / 7 = 0.286. The paper does not report group sizes, ticket counts or a significance test.
Tradeoffs and when NOT to use this approach
This page's reading (the paper has no limitations section):
- The method assumes documents with stable, named sections and explicit links. For free-form prose a plain hybrid retrieval pipeline is simpler.
- If tickets change constantly, plan graph rebuilds.
- The paper gives no cost or latency figures; compare on your own data.
Design rules extracted
Drawn from the paper's design, not stated by the authors as rules.
- Parse documents along the structure they already have before chunking, so a problem and its solution stay together.
- Keep explicit links between documents as graph edges, and add similarity links only with a threshold you tune.
- Match each part of the question to the field it describes, not to whole-document text.
- Keep a fallback to simpler retrieval for when a generated graph query fails.
- Measure retrieval and generation with separate metrics offline, then confirm the effect with a randomised comparison in production.
Sources
- Zhentao Xu, Mark Jerome Cruz, Matthew Guevara, Tie Wang, Manasi Deshpande, Xiaofeng Wang and Zheng Li, "Retrieval-Augmented Generation with Knowledge Graphs for Customer Service Question Answering", SIGIR '24, July 14-18, 2024, Washington, DC. Full text read in the arXiv v2 PDF (6 May 2024): https://arxiv.org/pdf/2404.17723
- Abstract page: https://arxiv.org/abs/2404.17723
- ACM record named in the paper: https://doi.org/10.1145/3626772.3661370
Last verified: 2026-10-22