langchain.graphs.neptune_graph.NeptuneGraph¶
class langchain.graphs.neptune_graph.NeptuneGraph(host: str, port: int = 8182, use_https: bool = True)[source]¶
Neptune wrapper for graph operations. This version
does not support Sigv4 signing of requests.
Example
graph = NeptuneGraph(host=’<my-cluster>’,
port=8182
)
Create a new Neptune graph wrapper instance.
Attributes
get_schema
Returns the schema of the Neptune database
Methods
__init__(host[, port, use_https])
Create a new Neptune graph wrapper instance.
query(query[, params])
Query Neptune database.
__init__(host: str, port: int = 8182, use_https: bool = True) → None[source]¶
Create a new Neptune graph wrapper instance.
query(query: str, params: dict = {}) → Dict[str, Any][source]¶
Query Neptune database.
Examples using NeptuneGraph¶
Neptune Open Cypher QA Chain