langchain.graphs.neo4j_graph.Neo4jGraph¶
class langchain.graphs.neo4j_graph.Neo4jGraph(url: str, username: str, password: str, database: str = 'neo4j')[source]¶
Neo4j wrapper for graph operations.
Create a new Neo4j graph wrapper instance.
Methods
__init__(url, username, password[, database])
Create a new Neo4j graph wrapper instance.
add_graph_documents(graph_documents[, ...])
Take GraphDocument as input as uses it to construct a graph.
query(query[, params])
Query Neo4j database.
refresh_schema()
Refreshes the Neo4j graph schema information.
__init__(url: str, username: str, password: str, database: str = 'neo4j') → None[source]¶
Create a new Neo4j graph wrapper instance.
add_graph_documents(graph_documents: List[GraphDocument], include_source: bool = False) → None[source]¶
Take GraphDocument as input as uses it to construct a graph.
query(query: str, params: dict = {}) → List[Dict[str, Any]][source]¶
Query Neo4j database.
refresh_schema() → None[source]¶
Refreshes the Neo4j graph schema information.
Examples using Neo4jGraph¶
Neo4j
Diffbot Graph Transformer
Neo4j DB QA chain