/memgraph:memgraph-graph-ragfrom memgraph
Language-agnostic blueprint for building GraphRAG systems with Memgraph. Covers architecture, schema design, ingestion, hybrid retrieval, tool contracts, and evaluation for multi-language agent platforms.
Ships in memgraph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build Graph Retrieval-Augmented Generation systems that combine vector similarity search with graph traversal, and expose retrieval as tools for agents across any programming language.
Use this skill when:
Do NOT use this skill for:
By following this skill, you will deliver:
Sources (files, URLs, APIs)
│
▼
┌──────────────────────┐
│ Ingestion Pipeline │ Parse → chunk → entity extract
└──────────────────────┘
│
▼
┌──────────────────────┐
│ Memgraph │ Graph + embeddings + indexes
└──────────────────────┘
│
▼
┌──────────────────────┐
│ Hybrid Retriever │ Vector search + graph expansion
└──────────────────────┘
│
▼
┌──────────────────────┐
│ Agent Tools │ run_query / retrieve_context
└──────────────────────┘
│
▼
┌──────────────────────┐
│ LLM Response │ Answer with citations
└──────────────────────┘
Document the following before implementation:
Pick one of these:
unstructured2graph + lightrag-memgraphstructured2graph for relational sourcesIngestion must always produce:
Use a stable schema so any client can query consistently:
Nodes
Document {id, title, source, created_at}Chunk {id, text, source, embedding}Entity {id, name, type, description}Concept {id, name}Relationships
(Document)-[:HAS_CHUNK]->(Chunk)(Entity)-[:MENTIONED_IN]->(Chunk)(Entity)-[:RELATES_TO]->(Entity)(Chunk)-[:NEXT]->(Chunk)Chunk.embeddingChunk(embedding)Keep embeddings consistent across ingestion and queries.
Default retrieval flow:
Recommended query pattern (pseudo-Cypher):
ChunkExpose retrieval and diagnostics as tools. Minimal contract:
Tool: run_query
{ cypher: string, params?: object }{ rows: array }Tool: retrieve_context
{ question: string, vector_k?: number, hop_limit?: number }{ chunks: [{text, source, entities[]}], graph_stats }Tool: ingest_sources
{ sources: string[], mode?: "append" | "replace" }{ documents, chunks, entities, duration_ms }Agents should:
get_schema once per sessionMemgraph supports the Bolt protocol. Use a Bolt-compatible driver in your language of choice.
Integration responsibilities in each language:
Minimum evaluation suite:
Log for each request:
Use the Memgraph AI Toolkit for faster setup:
memgraph-toolbox for core utilitiesunstructured2graph for parsing and ingestionlightrag-memgraph for entity extractionlangchain-memgraph for agent toolingTreat these as implementation options, not requirements.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
graphrag, memgraph, hybrid-retrieval, agent-tools, knowledge-graph
memgraph@memgraph is listed by memgraph/marketplace — review the source before installing
npx claudepluginhub memgraph/marketplace --plugin memgraph14 skills in this plugin
/memgraph-brand-uiGenerate apps, demos, dashboards, diagrams, landing pages, and any visual output that looks like it belongs in the Memgraph product family. Use whenever producing UI, visual artifacts (Mermaid, SVGs, charts), Lab-style admin tools, internal dashboards, feature splash pages, or embeddable widgets for Memgraph engineers./memgraph-cpp-query-modulesDevelop custom query modules in C++ for Memgraph graph database. Use when creating high-performance graph algorithms, procedures (ProcedureType::Read/Write), or functions using the mgp.hpp C++ API. Covers compilation, memory management, graph traversal, and module deployment./memgraph-cypher-syntaxWrite Cypher queries for Memgraph, including Memgraph-specific extensions like deep path traversals (BFS, DFS, WSP, ASP, KSP with filter/weight lambdas), text and vector search, parallel execution, and CALL subqueries. Use when the user asks to write, fix, or optimize a Cypher query for Memgraph, or asks about Cypher syntax differences between Memgraph and Neo4j./memgraph-database-configurationConfigure Memgraph triggers, transactions, storage modes, data durability, and memory settings. Use when the user asks about triggers, transaction isolation levels, storage modes (transactional vs analytical), snapshots, WAL, memory limits, data types, or database runtime configuration./memgraph-import-dataImport or migrate data into Memgraph from CSV, Parquet, JSON/JSONL, CYPHERL dumps, relational databases (PostgreSQL, MySQL, SQL Server, Oracle, DuckDB) or Neo4j: choosing between LOAD CSV, cross_database procedures and client-driven batches, preparing indexes and storage mode, ordering nodes before relationships, and verifying counts. Use when the user wants to load, bulk-insert, ingest or migrate data into Memgraph, or an import is slow or failing./memgraph-indexes-and-constraintsCreate and manage Memgraph indexes, constraints, and enums. Use when the user asks about indexing strategy, creating or dropping indexes, schema enforcement, uniqueness or existence constraints, data type constraints, enums, or ANALYZE GRAPH.Other plugins' skills for the same job