Skip to content
Agent use cases

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.

Reddit r/ClaudeCode/u/Shivam__kumar
Claude CLIMCP serverMarkdown

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


Steps

  1. 1Write structured Markdown files for each application module, business logic, workflow, inter-module relationship, condition, and exception.
  2. 2Create dedicated database documentation recording the business meaning, rationale, column usage, and business relationships between tables for each table.
  3. 3Ensure the Markdown files are well-organized, purpose-driven, and include correct references and links to related documents.
  4. 4Have Claude read these documentation files and generate diagrams showing how the content connects.
  5. 5Build a custom MCP server capable of executing read-only database queries to provide Claude with dynamic access to database records.
  6. 6Connect everything via Claude CLI and write custom rules and instructions to standardize how Claude handles user queries, understands business logic, queries databases, formats answers, and generates visualizations.
Copy-ready prompt
Please read the following Markdown documentation for [application system/business module] (including business logic, module relationships, and database table descriptions), understand their interconnections, and generate a knowledge graph based on the documents. When a user asks a question [e.g., a complex cross-module business rule question], answer it by combining the document structure and the read-only database query tool, and format the answer as required.
#AI Agent#RAG Optimization#Claude CLI#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 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.

Collaborate with AI agents using a Markdown infinite canvas

Developers built a Mac infinite canvas app called Toxvas where all cards are saved as local Markdown files. Users can freely place links, media, and audio recordings on the canvas, and use the built-in Agent CLI to let AI agents directly access and process your local folders.

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)