Skip to content
Agent use cases

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.

Reddit r/AI_Agents/u/Shivam__kumar
Claude CLIClaudeMCP server

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


Steps

  1. 1Write structured Markdown files for each module, business logic flow, condition, and exception in your application.
  2. 2Create dedicated database documentation detailing the business meaning, purpose, column usage, and inter-table business relationships for each table.
  3. 3Have Claude read these Markdown files and generate a graph showing how everything connects.
  4. 4Build a custom MCP server capable of executing read-only database queries to provide dynamic data access.
  5. 5Connect the knowledge base and MCP tools via the Claude CLI, and write custom rules and instructions to handle user questions, generate charts, and query the database.
Copy-ready prompt
Please read the structured Markdown documentation regarding [application module and database], and understand the business rules, table relationships, and workflows between them. When a user asks [enter user question], analyze the request, independently decide what knowledge to query or which read-only database tools to use, and provide an accurate answer or generate a visualization chart.
#AI Agent#RAG Optimization#Knowledge Graph#Claude
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.

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.

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)