From 8788a34bfab911f88775ecbf07e24826d82edcc4 Mon Sep 17 00:00:00 2001 From: Leonid Ganeline Date: Fri, 23 Aug 2024 08:34:26 -0700 Subject: [PATCH] community: `NeptuneGraph` fix (#23281) Issue: the `service` optional parameter was mentioned but not used. Fix: added this parameter. --------- Co-authored-by: Chester Curme --- libs/community/langchain_community/graphs/neptune_graph.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/community/langchain_community/graphs/neptune_graph.py b/libs/community/langchain_community/graphs/neptune_graph.py index a6eb71ad69a..dd684cf4a64 100644 --- a/libs/community/langchain_community/graphs/neptune_graph.py +++ b/libs/community/langchain_community/graphs/neptune_graph.py @@ -22,7 +22,7 @@ class NeptuneQueryException(Exception): class BaseNeptuneGraph(ABC): - """Abstract base class for Neptune""" + """Abstract base class for Neptune.""" @property def get_schema(self) -> str: @@ -142,7 +142,7 @@ class BaseNeptuneGraph(ABC): class NeptuneAnalyticsGraph(BaseNeptuneGraph): """Neptune Analytics wrapper for graph operations. - Args: + Parameters: client: optional boto3 Neptune client credentials_profile_name: optional AWS profile name region_name: optional AWS region, e.g., us-west-2 @@ -272,14 +272,13 @@ class NeptuneAnalyticsGraph(BaseNeptuneGraph): class NeptuneGraph(BaseNeptuneGraph): """Neptune wrapper for graph operations. - Args: + Parameters: host: endpoint for the database instance port: port number for the database instance, default is 8182 use_https: whether to use secure connection, default is True client: optional boto3 Neptune client credentials_profile_name: optional AWS profile name region_name: optional AWS region, e.g., us-west-2 - service: optional service name, default is neptunedata sign: optional, whether to sign the request payload, default is True Example: