{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "sixian-li-knowledge-base-kit--build-source-backed-kb-with-codex",
 "repo": "Sixian-Li/knowledge-base-kit",
 "repo_url": "https://github.com/Sixian-Li/knowledge-base-kit",
 "repo_slug": "sixian-li-knowledge-base-kit",
 "title": "Build a source-backed knowledge base from your documents",
 "page_title": "How to build a source-backed knowledge base from your documents with Knowledge Base Kit",
 "summary": "Set up a separate Markdown workspace and file documents with the Codex backend after review.",
 "who": "A researcher or analyst with a folder of PDFs, DOCX files, or notes who wants a searchable, source-backed knowledge base that an agent can read.",
 "problem": "Raw documents are hard to reuse. Summaries get lost, and agents cannot tell what came from which source.",
 "outcome": "A workspace with inbox/, catalog.md, categories, and per-document full.md, summary.md, and the original attachment, checked before filing.",
 "steps": [
  "git clone https://github.com/Sixian-Li/knowledge-base-kit.git && cd Knowledge Base Kit (inferred, check the README)",
  "`python3 -m venv .venv`",
  "`source .venv/bin/activate`",
  "`python -m pip install -r requirements.txt`",
  "`python scripts/init_workspace.py ../my-kb --backend codex --with-example`",
  "`cd ../my-kb` then `python kb.py check --backend codex`"
 ],
 "agent_prompt": "In the knowledge-base-kit repo, initialize a Codex workspace at <workspace-path>. Then open that workspace in Codex and use the local process_docs skill with the Codex backend on <document-path>, and show the proposed category and changed files before filing. Verify that the workspace passes `python kb.py check --backend codex`.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Validators cannot prove factual accuracy or perfect coverage, so you still need to review the full text and summary the agent writes.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+",
  "Node.js 20+",
  "Pandoc 3+",
  "An authenticated Claude Code or Codex CLI for model-assisted processing",
  "A downloaded or cloned copy of the knowledge-base-kit repository"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sixian-li-knowledge-base-kit/build-source-backed-kb-with-codex/",
 "md": "https://dedupedai.com/use-cases/sixian-li-knowledge-base-kit/build-source-backed-kb-with-codex/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sixian-li-knowledge-base-kit--build-source-backed-kb-with-codex.json",
 "api_version": "v1"
}
