Paper deep dive
A Structured Knowledge Infrastructure for Domain-Specific Data Asset Discovery
Mengdi Chen, Yuanxin Huang, Yulin Jiang, Wei Sun
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 8/1/2026, 2:08:21 AM
Summary
The paper presents a structured knowledge infrastructure for domain-specific data asset discovery, addressing failures in generic RAG systems. It introduces a two-layer solution deployed at Xiaohongshu, comprising a Graph-Guided Retriever (GGR) and a Scene-Aware Ranker (SAR). GGR uses a 2,859-node knowledge graph for candidate gating and intent routing, while SAR applies entity recognition and scenario annotations for ranking. The system achieves a Hit@10 of 96.6% compared to 19.1% for legacy systems, with significant token reduction and low latency.
Entities (8)
Relation Signals (6)
Scene-Aware Ranker â applies â entity recognition
confidence 95% · The Scene-Aware Ranker (SAR) applies 19-class entity recognition
Xiaohongshu â deploys â Graph-Guided Retriever
confidence 95% · We present a two-layer solution deployed in the commercial advertising data warehouse at Xiaohongshu
Graph-Guided Retriever â uses â Knowledge Graph
confidence 95% · The Graph-Guided Retriever (GGR) uses a 2,859-node knowledge graph as a candidate gate
Scene-Aware Ranker â contributesto â Hit@10 gain
confidence 90% · negative knowledge alone contributes 25 percentage points of Hit@10 gain
Graph-Guided Retriever â improves â Hit@10
confidence 90% · On two 100-question benchmarks, Hit@10 rises from 19.1% to 96.6%
Graph-Guided Retriever â reduces â Token Consumption
confidence 90% · deliver 71.6x token reduction
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Enterprise data analytics agents face two structural failures: generic RAG retrieves the wrong asset (Hit@10=19.1%) and delivers no usage knowledge to prevent metric misinterpretation---stemming from four root causes (C1--C4) ranging from semantic gap and entity ambiguity to schema drift and asset-usage gap. We present a two-layer solution deployed in the commercial advertising data warehouse at Xiaohongshu (5,300+ Hive tables, 14 domains). A three-tier dual-purpose knowledge base (179 documents, eight-section annotation template) serves both retrieval and generation, with a closed-loop refresh pipeline maintaining day-level freshness (one yes/no approval, 30s hot-reload). The Graph-Guided Retriever (GGR) uses a 2,859-node knowledge graph as a candidate gate with intent routing to deliver 71.6x token reduction. The Scene-Aware Ranker (SAR) applies 19-class entity recognition and explicit scenario annotations; negative knowledge alone contributes 25 percentage points of Hit@10 gain. On two 100-question benchmarks, Hit@10 rises from 19.1% to 96.6% (+77.5pp) and knowledge coverage from 56% to 77%, at 4.84--5.33s end-to-end latency.
Tags
Links
- Source: https://arxiv.org/abs/2607.27748v1
- Canonical: https://arxiv.org/abs/2607.27748v1
Trouble viewing inline? Open PDF directly â
Full Text
18,106 characters extracted from source content.
Expand or collapse full text
A Structured Knowledge Infrastructure for Domain-Specific Data Asset Discovery Mengdi Chen XiaohongshuShanghaiChina chenmengdi@xiaohongshu.com , Yuanxin Huang XiaohongshuShanghaiChina huangyuanxin@xiaohongshu.com , Yulin Jiang XiaohongshuShanghaiChina jiangyulin@xiaohongshu.com and Wei Sun XiaohongshuShanghaiChina sunwei@xiaohongshu.com Abstract. Enterprise data analytics agents face two structural failures: generic RAG retrieves the wrong asset (Hit@10 = 19.1%) and delivers no usage knowledge to prevent metric misinterpretationâstemming from four root causes (C1âC4) ranging from semantic gap and entity ambiguity to schema drift and asset-usage gap. We present a two-layer solution deployed in the commercial advertising data warehouse at Xiaohongshu (5,300+ Hive tables, 14 domains). A three-tier dual-purpose knowledge base (179 documents, eight-section annotation template) serves both retrieval and generation, with a closed-loop refresh pipeline maintaining day-level freshness (one yes/no approval, 30 s hot-reload). The Graph-Guided Retriever (GGR) uses a 2,859-node knowledge graph as a candidate gate with intent routing to deliver 71.6Ă token reduction. The Scene-Aware Ranker (SAR) applies 19-class entity recognition and explicit scenario annotations; negative knowledge alone contributes 25 percentage points of Hit@10 gain. On two 100-question benchmarks, Hit@10 rises from 19.1% to 96.6% (+77.5 p) and knowledge coverage from 56% to 77%, at 4.84â5.33 s end-to-end latency. Agentic AI, Knowledge Management, Data Asset Retrieval, Knowledge Graph, Scenario Annotation, Enterprise RAG 1. Introduction Enterprise data analytics agents face two compounding failures: finding the right asset among thousands of overlapping candidates, and using it correctly despite heterogeneous schemas and polysemous metrics. Production analysis reveals four root causes: (C1) high-frequency terms are non-discriminative noise for embeddings; (C2) entity references require structured grounding; (C3) static annotations drift as schemas evolve; (C4) correct assets still produce wrong results without usage knowledge. Our approach. We build a dual-purpose knowledge infrastructure where GGR targets C1/C2 via graph-guided narrowing and intent routing, and SAR targets C2/C4 via entity-matched scoring and structured knowledge delivery. For C3, a closed-loop pipeline hot-reloads LLM-drafted patches into memory within 30 s after expert yes/no approval (median 18 s). Unlike GraphRAG (Edge et al., 2024) (global synthesis) or standard RAG (Lewis et al., 2020), we use graph community clustering as a precision gate and treat explicit domain knowledge as first-class retrieval signals. Downstream agents (SQL-writing agents, BI report assemblers) invoke GGR and SAR as tool-style structured APIsânot as a text-chunk retrieverâreceiving ranked asset IDs paired with intent-filtered knowledge slices, and may re-query with narrowed scope during multi-step reasoning. Contributions. GGR: a 2,859-node knowledge graph used as a candidate gate with 7-class intent routing and 459 synonym groups; GGR alone (asset level) reaches Hit@10 = 0.73, with 71.6Ă token reduction vs. naive full-corpus RAG. SAR: 19-class entity recognition and explicit scenario annotations; applicable annotations alone contribute 48 pts, not-applicable suppression 25 pts. The full pipeline (GGR+SAR) raises Hit@10 to 96.6% (+77.5 p over legacy). 2. Problem Definition We target the Xiaohongshu commercial advertising data warehouse (5,300+ Hive tables, 1,200+ BI datasets, 14 domains) with two tasks. Prior data-discovery systems focus on table linkage and join finding (Fernandez et al., 2018; Zhu et al., 2019), whereas our target is semantic asset routing for downstream agent execution. Task 1 (Asset discovery): given query q, rank assets so ground-truth aâa^* appears in top-K (metric: Hit@10; legacy baseline: 19.1%). Task 2 (Knowledge coverage): retrieve the required usage knowledge (table form, metric semantics, disambiguation rules) for aâa^*; we evaluate file-level recall, leaving downstream execution (e.g., text-to-SQL benchmarks (Yu et al., 2018)) to future work. Low candidate-set purity in the legacy system motivates our GGRâSAR pipeline. 3. Knowledge Infrastructure Our knowledge infrastructure is structured into three tiers (Fig. 1) to balance routing speed with semantic richness. Figure 1. System overview and three-tier dual-purpose knowledge base. Top: GGR (coarse recall) and SAR (fine ranking) invoke the knowledge base in series. Tier 1: Oâ(1)O(1) keyword routing + high-frequency asset hotlist. Tier 2: 179 structured documents with eight-section annotation. Tier 3: 2,859-node knowledge graph as candidate gate (474 communities). Tier 1 (routing table + hotlist): Oâ(1)O(1) keyword routing to the 50 most-queried assets or tool/SOP documents. Tier 2: 179 Markdown documents (Common / Domain / Production) each with an eight-section annotationâ§ 1â2 (aliases, entity labels) retrieval-oriented; § 3 (applicable/not-applicable scenarios) for retrieval and generation; § 4â8 (SQL, metrics, BI, schema, disambiguation) as 480-token intent-filtered slices (vs. 2,400-token full documents). Tier 3: knowledge graph (aivi-fyi, 2024) with 474 Louvain communities (Blondel et al., 2008), each mapping to 3â15 candidates per query. For C3, LLM-drafted patches hot-reload within 30 s (P95; median 18 s, ⌠45/month) after expert yes/no approval, mitigating annotation drift through continual maintenance (De Lange et al., 2021). 4. Graph-Guided Retriever (GGR) Figure 2. Overview of retrieval and ranking pipeline. Left (GGR): dual-path retrieval merging graph traversal (Path 1) and intent routing (Path 2). Right (SAR): five-stage ranking pipeline producing ranked assets and knowledge slices. GGR (Fig. 2, left) treats the knowledge graph as a candidate gate: graph traversal narrows the search space before any vector comparison, constraining retrieval to semantically relevant communities. The GGR index covers 211 documents (179 Tier-2 content documents plus 32 directory-style index documentsâcross-tier aggregate files that each link to multiple content documents). 4.1. Knowledge Graph Construction We build the graph via deterministic AST parsing (confidence 1.0) and LLM relation extraction (confidence 0.6â0.9); the confidence scoring helps mitigate LLM hallucination in graph edges (Ji et al., 2022). The graph has 2,859 nodes (1,874 concept, 526 code, 440 document, 19 rationale) and 3,325 edges across three relation types (Docâ 2,712; Conceptâ 562; Code/Rationale 51). 4.2. Dual-Path Architecture The two paths run in parallel and complement each other: Path 1 (Graph traversal) provides broad semantic coverage: it expands query tokens via 459 synonym groups, matches at three precision levels (exact/substring/path-segment), and propagates scores through a 6,202-term inverted index (built from graph node labels and synonym expansions) with IDF weighting and hub-node fanout decay. Caller-specified domains receive a path-prefix boost; high-frequency core datasets are pinned as fallbacks to prevent them from being ranked out by rare-term bias. Path 2 (Intent routing) provides high-precision directional recall: it classifies the query into 7 intent classes (discovery, definition, data_fetch_bi, write_sql, diagnose, attribute, interpret) and maps each intent directly to its specialist documents. The two paths merge with graph priority. On the same 100-question Task 1 benchmark at document level: graph-only Hit@10 = 0.79, intent-only = 0.63, combined = 0.85 (asset-level in Table 2). By first narrowing thousands of documents to 3â15 community candidates, GGR lets downstream RAG operate in a low-noise space without depending on a large LLM. GGR alone reaches asset-level Hit@10 = 0.73 (est.), lower than the document-level 0.85 due to the stricter one-to-many docâasset mapping; SAR then lifts asset-level to 0.966. Implementation. The intent classifier is a keyword-rule matcher over 183 domain-specific trigger terms (7 classes) with LLM fallback for unmatched queriesâavoiding fine-tuning cost while maintaining single-digit-ms latency. Entity recognition (19 classes, Section 5) uses rule-based matching against curated vocabularies (2â40 aliases per entity), tuned on production query logs. The 459 synonym groups were semi-automatically expanded from 120 seed terms via embedding-based clustering plus expert review; the 6,202-term inverted index is auto-rebuilt on every KB refresh. 5. Scene-Aware Ranker (SAR) SAR (Fig. 2, right) elevates ranking from keyword matching to semantic-scene alignmentâthe joint optimization of (i) entity-level alignment between query business terms and dataset entity tags, and (i) scenario-level alignment between query intent and dataset applicable/not-applicable descriptions. 5.1. Five-Stage Pipeline SAR processes candidates in five stages: (1) expand document hits to individual assets via a precomputed docâ mapping with high-frequency fallback indexes; (2) hard-recall entity-labeled assets to counter graph sparsity; (3) identify 19 entity classes via rule-based matching (zero LLM latency)âspanning advertiser-centric (advertiser, agency, brand, targeting), content (creative, note, note keyword, commercial note type, IP project), data (SPU, third-party platform, reputation pass, strategy) and query dimensions (search term, upstream/downstream term, back-search term, region, user, enterprise account)âaligning query business terms with dataset entity tags; (4) match applicable/not-applicable scenario phrases; (5) compute tiered scores. Stage 5 (Tiered scoring). A resource-type tier Tâ(a)â1000,600,500T(a)â\1000,600,500\ (BI dataset / dashboard / Hive table) enforces a hard hierarchy. Positive signals include IDF-weighted entity alignment (+8.0, dominant), asset-name match (+6.0+6.0), and applicable annotation match (+6.0+6.0, with an extra +4.0+4.0 for full-phrase matches); the single negative signal not-applicable (â8.0-8.0) suppresses false positives regardless of other signals. IDF weighting Ïâ(e)=maxâĄ(0.375, 1â0.8âCâ(e))Ï(e)= (0.375,\,1-0.8C(e)), where Câ(e)C(e) is the corpus-level document frequency of entity e across all 179 files, discounts ubiquitous terms (e.g., âadvertisingâ, C=86%â0.375C\!=\!86\%â 0.375) and preserves rare entities (brand, C=0.3%â1.0C\!=\!0.3\%â 1.0). Queries involving organizational hierarchy (sales / operations / industry / track) trigger a targeted boost on wide-table assetsâaddressing high-frequency structural queries that keyword matching alone struggles with. After ranking, SAR selects intent-driven slices from § 4â8 (write_sqlâ§ 4+§ 7; definitionâ§ 5; data_fetch_biâ§ 3+§ 6) and delivers them to the LLM as in-context knowledge (Shi et al., 2022). 6. Evaluation 6.1. Setup Benchmark. Two separate 100-question production benchmarks: Benchmark-A for Task 1 (asset discovery) and Benchmark-B for Task 2 (knowledge coverage), each sampled independently from production query logs, evaluated against the live system (v9) vs. the legacy production system. The legacy system performs BM25-style full-corpus retrieval over 179 documents without graph/entity signals, serving as the primary baseline; embedding-based comparisons require domain-specific fine-tuning in this 14-domain warehouse and are left for future work. Task 1 (Asset Discovery): ground truth is the canonical asset over 5,300+ Hive tables and 1,200+ BI datasets across 14 domains. Task 2 (Knowledge Coverage): each question is annotated with 1â2 must-read files; coverage = recall of ground-truth files (before slicing). 6.2. Main Results Table 1. Main results on two 100-question production benchmarks. Top: Task 1 asset discovery (Hit@K). Legacy Hit@5 = Hit@10 because the system returns exactly 10 candidates. Bottom: Task 2 knowledge coverage (file-level recall before slicing). Task 1: Asset Discovery (Hit@K) Method Hit@1 Hit@3 Hit@5 Hit@10 Latency Legacy system 0.124 0.169 0.191 0.191 2.97 s Ours (v9, online) 0.494 0.888 0.933 0.966 4.84 s Task 2: Knowledge Coverage Method Coverage Files/Query Latency Legacy system 56.0% 4.5 4.03 s Ours (v9, online) 77.0% 6.5 5.33 s As shown in Table 1, our system achieves Hit@10 = 96.6% vs. 19.1% (legacy), +77.5 p, Hit@1 from 12.4% to 49.4%, and knowledge coverage from 56% to 77% (+21 pts). On a standalone SAR benchmark (100 questions, independently constructed from asset-ranking logs, separate from Benchmark-A/B), SAR alone achieves Hit@5 = 98%, Recall = 100%, MRR = 0.803. Despite retrieving more files per query (6.5 vs. 4.5), token consumption is 71.6Ă lower vs. naive full-corpus RAG, because our system delivers 480-token intent-filtered slices rather than full 2,400-token documents ((179â docsĂ2,400)Ă·(12.5Ă480)(179 docsĂ 2,400) (12.5Ă 480), where 12.5 is the measured average number of GGR candidate documents per query). Latency overhead (+1.87 s Task 1, +1.30 s Task 2) stems from graph traversal and entity recognition; both remain within SLA and are negligible relative to analystsâ prior manual search of several minutes per query. 6.3. Ablation Study Table 2. Ablation (Hit@10). Each Î is marginal contribution of the removed component. Configuration Hit@10 Î @10 Ours (v9, online) 0.966 â w/o applicable annotation 0.486 â0.480-0.480 w/o graph path (intent only) 0.606 â0.360-0.360 w/o not-applicable annotation 0.716 â0.250-0.250 w/o entity recognition 0.786 â0.180-0.180 w/o IDF entity weighting 0.846 â0.120-0.120 Table 2 shows applicable annotations contribute the most (â48 p); graph path â36 p; not-applicable suppression â25 p (negative knowledge matters as much as positive); entity recognition â18 p and IDF weighting â12 p confirm the value of fine-grained entity modeling. All ablations (0.486â0.846) far exceed legacy (0.191); Î values are single-factor removals and not additive due to feature interactions. 7. Deployment Notes Two engineering decisions shaped the deployed system. First, C3 patches use expert yes/no approval (median 18 s) rather than fully automated LLM merges: in early pilots, unsupervised auto-merges surfaced schema-drift-induced regressions that were expensive to roll back; a lightweight human gate at 45 patches/month is affordable and eliminates this failure mode. Second, GGR and SAR are deliberately staged (coarseâfine) rather than fused in parallel: in our warehouse, parallel fusion left too much noise in the candidate set for the downstream ranker to filter effectively, whereas the staged pipeline lets SAR operate on an already high-precision candidate pool. 8. Conclusion We present a knowledge infrastructure that serves as the retrieval and knowledge layer of a production agentic analytics pipeline: agents invoke GGR and SAR to ground every query in structured domain knowledge before SQL generation or BI report assemblyâdirectly realising the âAgentic AI Goes Liveâ agenda. Deployed in the Xiaohongshu commercial advertising data warehouse, GGR and SAR achieve 96.6% Hit@10 (+77.5 p) and 77% knowledge coverage (up from 56%, +21 p), while reducing token footprint by 71.6Ă vs. naive full-corpus RAG, at 4.84â5.33 s end-to-end latency. Our results show that in specialized domains, explicit domain knowledgeâgraph structure, intent routing, and scenario annotationsâdominates generic embeddings. The eight-section template is domain-agnostic; adapting to a new domain requires document authoring (⌠2 h/doc) with automated graph construction. Future work: cross-domain transfer and closed-loop agentic execution. References aivi-fyi (2024) Graphify: compile any codebase or document folder into a queryable knowledge graph. Note: https://github.com/aivi-fyi/graphifyMIT License Cited by: §3. V. D. Blondel, J. Guillaume, R. Lambiotte, and E. Lefebvre (2008) Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment 2008 (10), p. P10008. Cited by: §3. M. De Lange, R. Aljundi, M. Masana, S. Parisot, X. Jia, A. Leonardis, G. Slabaugh, and T. Tuytelaars (2021) A continual learning survey: defying forgetting in classification tasks. IEEE Transactions on Pattern Analysis and Machine Intelligence 44 (7), p. 3366â3385. Cited by: §3. D. Edge, H. Trinh, N. Cheng, J. Bradley, A. Chao, A. Mody, S. Truitt, and J. Larson (2024) From local to global: a graph RAG approach to query-focused summarization. arXiv preprint arXiv:2404.16130. Cited by: §1. R. C. Fernandez, Z. Abedjan, F. Koko, G. Yuan, S. Madden, and M. Stonebraker (2018) Aurum: a data discovery system. In Proceedings of the IEEE International Conference on Data Engineering (ICDE), p. 1001â1012. Cited by: §2. S. Ji, S. Pan, E. Cambria, P. Marttinen, and P. S. Yu (2022) A survey of knowledge graph embedding approaches: problems, methods, and applications. IEEE Transactions on Knowledge and Data Engineering 34 (3), p. 1571â1590. Cited by: §4.1. P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. KĂŒttler, M. Lewis, W. Yih, T. RocktĂ€schel, et al. (2020) Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems 33, p. 9459â9474. Cited by: §1. F. Shi, X. Chen, K. Misra, N. Scales, D. Dohan, E. H. Chi, N. SchĂ€rf, and D. Zhou (2022) Rethinking the role of demonstrations: what makes in-context learning work?. arXiv preprint arXiv:2202.12837. Cited by: §5.1. T. Yu, R. Zhang, K. Yang, M. Yasunaga, D. Wang, Z. Li, J. Ma, I. Li, Q. Yao, S. Roman, et al. (2018) Spider: a large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-SQL task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, p. 3911â3921. Cited by: §2. E. Zhu, D. Deng, F. Nargesian, and R. J. Miller (2019) JOSIE: overlap set similarity search for finding joinable tables in data lakes. In Proceedings of the ACM SIGMOD International Conference on Management of Data, p. 847â864. Cited by: §2.