graphmemory

Embed GraphRAG-style retrieval workflows within an embedded DuckDB store.

155|16|Updated Jun 1, 2024
One-click install
npx skills add https://github.com/bradAGI/GraphMemory --skill graphmemory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphmemory
Source: https://github.com/bradAGI/GraphMemory/tree/main
Command: npx skills add https://github.com/bradAGI/GraphMemory --skill graphmemory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GraphMemory provides an embedded GraphRAG knowledge graph platform built on DuckDB that combines vector, full-text, and hybrid search to store, retrieve, and reason over entities and relationships.

Core Features & Use Cases

  • Vector search across node vectors using HNSW with cosine, L2, or inner product metrics.
  • Full-text search across node properties with BM25.
  • Hybrid search that blends text and vector similarity for more relevant results.
  • GraphRAG retrieval pipeline: hybrid search, graph expansion, context assembly, and LLM Q&A.
  • DSPy-based extraction to populate graphs from unstructured text.
  • Graph algorithms (PageRank, centrality, components) via NetworkX (optional).
  • Merge/upsert of nodes and edges with fuzzy deduplication and upsert semantics.
  • Import/export formats (JSON, CSV, GraphML) and a browser-based visualizer.
  • Transactional safety with retry for transient errors.

Quick Start

Install graphmemory and create a GraphMemory instance, add a few Node/Edge objects, and run a simple retrieve or search.

Frequently Asked Questions about graphmemory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a GraphRAG knowledge graph with vector search and multi-hop traversal?

Build a GraphRAG knowledge graph by embedding nodes and edges in an in-memory or disk-backed DuckDB store, then use hybrid search, graph expansion, and multi-hop traversal to retrieve context for LLM-guided Q&A.

What is the best way to extract entities and relationships from unstructured text for a knowledge graph?

Extract entities and relationships from unstructured text for a knowledge graph using optional DSPy-based extraction, then merge or upsert nodes and edges with fuzzy deduplication to maintain graph consistency.

Can I perform hybrid search combining BM25 full-text and HNSW vector similarity in a DuckDB graph?

Perform hybrid search in a DuckDB graph by blending BM25 full-text search across node properties with HNSW vector similarity using cosine, L2, or inner product metrics to return more relevant retrieved nodes.

Does GraphMemory support importing and exporting graph data formats like JSON and GraphML?

GraphMemory supports importing and exporting graph data in JSON, CSV, and GraphML formats, and includes a browser-based visualizer to inspect the embedded knowledge graph structures.

How do I handle duplicate nodes and edges when upserting data into a vector database knowledge graph?

Handle duplicate nodes and edges during upserts into a vector database knowledge graph using built-in fuzzy deduplication and upsert semantics, ensuring transactional safety with automatic retries for transient errors.

When should I use NetworkX graph algorithms like PageRank in an embedded GraphRAG pipeline?

Use NetworkX graph algorithms like PageRank and centrality in an embedded GraphRAG pipeline when you need to analyze component structures and compute node importance to refine vector and text search context.