Skip to content
Agent use cases

Replace vector search RAG with Markdown and knowledge graphs

Replace traditional vector search RAG with Claude CLI by structuring complex application modules, business logic, and database relationships into Markdown documents, combined with a knowledge graph and a custom MCP server. This approach significantly improves accuracy and reduces hallucinations for complex business queries.

Reddit r/ClaudeAI/u/Shivam__kumar
ClaudeClaude CLIMCP server

Added 2026-11-07 · originally published 2026-11-06


Steps

  1. 1Write Markdown files for each application module, business logic component, workflow, condition, and exception, ensuring clear purposes and cross-references.
  2. 2Create dedicated documentation for the database, recording table names, field definitions, rationale, and business-level table relationships.
  3. 3Have Claude read these Markdown documents and generate a graph showing the interconnections of the content.
  4. 4Build a custom MCP server that supports read-only database queries, allowing Claude to access actual database records when dynamic information is needed.
  5. 5Connect everything via Claude CLI and write custom rules and instructions to guide how Claude handles user questions, queries the database, and formats answers.
Copy-ready prompt
Please read the structured Markdown documentation for [application system / business module] below to understand the business logic, module relationships, and database rules. When a user asks [user's question], analyze it using this knowledge base, autonomously decide whether to fetch dynamic information via the read-only database query tool, and provide an accurate answer.
#AI Agent#RAG#Claude#Knowledge Graph
Replace traditional RAG with Markdown and knowledge graphs

For complex ERP applications, ditch traditional vector-search RAG in favor of a structured Markdown knowledge base and use Claude to generate a knowledge graph. Combined with a custom read-only database MCP server and the Claude CLI, this approach significantly improves accuracy when answering questions about complex business logic.

Replace traditional vector search RAG with Markdown and knowledge graphs

By writing complex application modules, business logic, and database relationships into structured Markdown files, combined with knowledge graphs and a custom MCP server, Claude CLI replaces traditional vector search RAG, achieving efficient comprehension of complex ERP applications and significantly reducing hallucinations.

Take over a 90s legacy inventory system with Claude and build a brand-new UI

The author used Claude's latest features and a connector on a Synology server to take over a legacy 90s inventory and POS system. By sending prompts, they automated price adjustments, invoice verification, and stock-ins, saving 2-3 hours daily and eliminating the need to open old software and Excel.

Found this useful? Get daily updates on Telegram or X.

Found this useful? Buy me a coffee ☕

nebu.life is free to use. If it helped you, a small tip keeps it going. Payments go straight to the author's personal account; this site never handles any funds.

Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.

nebu.lifeNebula AI Playbook · Daily AI use cases, prompts and prices

Content is collected daily from public sources and summarized with AI. Every entry links to the original, and copyright stays with the original authors. Spotted an error or a rights issue? Let us know via the contact page.

Last updated 2026-11-14 07:16 (Beijing time)