This page contains reference documentation for Neo4j. See the docs for conceptual guides, tutorials, and examples on using Neo4j modules.
Chat message history stored in a Neo4j database.
Chain for question-answering against a graph by generating Cypher statements.
Make sure that the database connection uses credentials that are narrowly-scoped to
Used to correct relationship direction in generated Cypher statements. This code is copied from the winner's submission to the Cypher competition: https://github.com/sakusaku-rich/cypher-direction-com
Synchronous Neo4j checkpoint saver for LangGraph.
This class implements the BaseCheckpointSaver interface using Neo4j as the persistence backend with a proper graph model. It supports storing checkpo
Asynchronous Neo4j checkpoint saver for LangGraph.
This class implements the BaseCheckpointSaver interface using Neo4j as the persistence backend with async support and a proper graph model. It suppo
Base class for Neo4j checkpoint savers with shared logic.
Enumerator of the Distance strategies for calculating distances between vectors.
Data ingestion is not supported with relationship vector index.
Neo4j vector index.
To use, you should have the neo4j python package installed.
Represents a node in a graph with associated properties.
Represents a directed relationship between two nodes in a graph.
Represents a graph document consisting of nodes and relationships.
Abstract class for graph operations.
Neo4j database wrapper for various graph operations.
Make sure that the database connection uses credentials that are narrowly-scoped to only include necessary pe
Transform documents into graph-based documents using a LLM.
It allows specifying constraints on the types of nodes and relationships to include in the output graph. The class supports extracting prop
Translate Neo4j internal query language elements to valid filters.
Filter the schema based on included or excluded types
Get a Neo4j driver from various connection types.
Supports:
Create a Neo4j driver with authentication.
Get a Neo4j session from a driver.
Get an async Neo4j driver from various connection types.
Supports:
Create an async Neo4j driver with authentication.
Get an async Neo4j session from a driver.
Check if the values are not None or empty string
Remove Lucene special characters
Convert a dictionary to a YAML-like string without using external libraries.
Parameters:
Returns:
Utility function to conditionally create a field with an enum constraint.
Create a simple graph model with optional constraints on node and relationship types.
Map the SimpleNode to the base Node.
Map the SimpleRelationship to the base Relationship.