Files
wehub-resource-sync db620d33df
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:25 +08:00
..

Neo4j Context Providers

Neo4j offers two context providers for the Agent Framework, each serving a different purpose:

Neo4j Memory Neo4j GraphRAG
What it does Read-write memory — stores conversations, builds knowledge graphs, learns from interactions Read-only retrieval from a pre-existing knowledge base with optional graph traversal
Data source Agent interactions (grows over time) Pre-loaded documents and indexes
Python package neo4j-agent-memory agent-framework-neo4j
Database setup Empty — creates its own schema Requires pre-indexed documents with vector or fulltext indexes
Example use case "Remember my preferences", "What did we discuss last time?" "Search our documents", "What risks does Acme Corp face?"

Which should I use?

Use Neo4j Memory when your agent needs to remember things across sessions — user preferences, past conversations, extracted entities, and reasoning traces. The memory provider writes to the database on every interaction, building a knowledge graph that grows over time.

Use Neo4j GraphRAG when your agent needs to search an existing knowledge base — documents, articles, product catalogs — and optionally enrich results by traversing graph relationships. The GraphRAG provider is read-only and does not modify your data.

You can use both together: GraphRAG for domain knowledge retrieval, Memory for personalization and learning.