langchain.graphs.falkordb_graph.FalkorDBGraph¶
class langchain.graphs.falkordb_graph.FalkorDBGraph(database: str, host: str = 'localhost', port: int = 6379)[source]¶
FalkorDB wrapper for graph operations.
Create a new FalkorDB graph wrapper instance.
Attributes
get_schema
Returns the schema of the FalkorDB database
get_structured_schema
Returns the structured schema of the Graph
Methods
__init__(database[, host, port])
Create a new FalkorDB graph wrapper instance.
add_graph_documents(graph_documents[, ...])
Take GraphDocument as input as uses it to construct a graph.
query(query[, params])
Query FalkorDB database.
refresh_schema()
Refreshes the schema of the FalkorDB database
__init__(database: str, host: str = 'localhost', port: int = 6379) → None[source]¶
Create a new FalkorDB 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 FalkorDB database.
refresh_schema() → None[source]¶
Refreshes the schema of the FalkorDB database
Examples using FalkorDBGraph¶
FalkorDBQAChain