Why Agent Limits Stem from Team Knowledge and How to Build an AI Knowledge Base
The article details how the security team rebuilt its AI knowledge base to overcome retrieval accuracy and injection efficiency issues, outlining a six‑step process, governance mechanisms, and measurable outcomes that turned a static repository into a self‑sustaining, agent‑friendly supply system.
Why the AI era needs to rebuild the knowledge base
Our team previously stored knowledge in scattered demand documents, review records, code review comments, and personal experience. Newcomers spent days hunting for historical decisions, and the same pitfalls were repeatedly encountered because the lessons lived only in the minds of the original contributors.
Traditional knowledge management followed a "human writes → human finds → human reads" workflow. When agents moved to the front line, the bottleneck shifted from reading long texts (large‑model context windows handle 2k tokens easily) to two problems:
Retrieval precision : With thousands of documents, how does an agent accurately pull out the two or three relevant pieces?
Injection efficiency : Even if the right document is found, only a small excerpt may be relevant; feeding the whole document wastes tokens and adds noise.
Structured knowledge—cards that include applicability conditions, core conclusions, and do‑/don’t‑do guidance—solves both issues. The key principle is human‑agent co‑reading : a single knowledge base serves both people and agents.
Three paradigm shifts
From "human writes → human reads" to "process automatically produces, agents consume, humans correct".
From long, human‑only documents to "human‑agent co‑reading" with structured cards that are both machine‑searchable and human‑maintainable.
From static storage to a self‑enhancing flywheel where outdated content is automatically retired.
Define the scope (four questions)
What scenario does the knowledge serve? Focus on the concrete efficiency problem rather than a vague "build a knowledge base".
Who consumes it and how? Both humans and agents; the structure must satisfy human readability and agent‑level retrieval precision.
What should be stored? Four layers: L1 public basics, L2 business domain, L3 scenario strategy, L4 event increments.
How to measure success? Metrics such as injection hit rate, coverage, blind‑search reduction, rework reduction, and dialogue adoption rate.
Concrete example: AI end‑to‑end development platform
Using our platform we answered the four questions:
Scenario : End‑to‑end demand delivery—from review to design, coding, code review, and release.
Consumers : Twelve development agents (review, design, auto‑coding, etc.) plus developers as auditors and newcomers as learners.
Content : Technical design skeletons, historical pitfalls, demand templates, experience retrospectives, repository architecture—linked to code repositories.
Success metrics : Delivery time compressed from days to hours, code‑review cycles reduced from 2‑4 rounds to 1.1 rounds, and >99 % of knowledge automatically captured by workflow.
Six‑step construction of the AI knowledge base
Knowledge inventory : Catalog existing assets by the four layers. Example: L1 → 100+ code snippets (logging, storage, RPC); L2 → platform docs and integration guides; L3 → 200+ risk‑control rules and prompt templates; L4 → new rules from daily incidents (716 entries in June).
Selection : Choose appropriate storage types—document‑type for long background, structured storage (Markdown/YAML/JSON) for precise matching, and RAG vector stores for large‑scale semantic search.
Tool platform : Prefer a middle‑platform; build an adaptation layer (MCP – Model Context Protocol) that wraps database queries, log retrieval, model calls, etc., into separate MCP servers to avoid token overload and ensure isolation.
Knowledge production : Run four parallel modes:
Mode A: Bind knowledge capture to workflow nodes (99.7 % auto‑captured).
Mode B: Retrospective agents scan weekly conversations; missed answers generate Git MRs.
Mode C: Agents auto‑generate structured knowledge from operational inputs, reducing onboarding time to 30 minutes.
Mode D: Immediate capture during incident handling (as fast as 2 hours).
Governance : Implement double‑gate admission (must be deployed and linked to a repository), three‑tier quality grading (ready / pending / verification), 90‑day expiration with automatic re‑validation, and auto‑retirement/revival based on usage signals. In practice, 101 items were archived, 11 flagged for cleanup, and 90.2 % of expiration tasks completed automatically.
Distribution & consumption : Switch from agent‑self‑search to platform‑driven injection—knowledge packets are pre‑bundled and injected before agent tasks, guaranteeing 100 % delivery and traceable usage.
The knowledge flywheel
Production → Refinement → Injection → Consumption → Feedback → Freshness forms a self‑reinforcing loop. Example: the O3 Buddy QA bot’s retrospective agent scans weekly conversations; unanswered questions become Git MRs, leading to a monthly average of 1,097 dialogues with a 92 % adoption rate.
Key design tricks:
Use‑driven accumulation : Every conversation helps fill gaps.
Injection‑as‑accounting : Automatic logging of who used which knowledge and how often.
Selective capture : The system skips low‑value events, reducing noise.
Pitfalls and anti‑patterns
Forcing KPI‑driven contributions leads to low‑quality knowledge—use automation as the primary source, incentives as a supplement.
Allowing only intake causes knowledge bloat—apply expiration and auto‑retirement.
Hidden knowledge that cannot be made explicit—use dedicated retrospectives and expert extraction.
Misaligned contributor responsibilities—quantify contributions, link to performance reviews, and provide clear ownership.
What changed after the flywheel started
Four layers of value emerged:
Organizational memory : Critical knowledge no longer leaves with staff turnover.
New‑hire acceleration : Onboarding compressed from 30 days to 10 days.
Knowledge equity : All teams access the same knowledge, reducing information asymmetry.
Self‑enhancing cycle : More usage → richer knowledge → stronger agents → faster delivery.
Quantitative impact: demand delivery time reduced from days to hours, code‑review average down to 3.4 minutes, incident handling capacity rose from 400 to 1,200 per day, and monthly agent calls exceeded 2,000.
Continuous operation metrics show knowledge monthly growth (86 → 716 → 154 entries), 69 people (57.5 % of the department) actively using the platform, 99.7 % of knowledge auto‑captured, 90.2 % expiration governance completion, and over 2,000 agent invocations per month.
If a team wants to build a knowledge system, start with a concrete closed‑loop scenario, get the flywheel turning, and then expand horizontally.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Tencent Technical Engineering
Official account of Tencent Technology. A platform for publishing and analyzing Tencent's technological innovations and cutting-edge developments.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
