mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
community: NeptuneGraph
fix (#23281)
Issue: the `service` optional parameter was mentioned but not used. Fix: added this parameter. --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
parent
22f9ae489f
commit
8788a34bfa
@ -22,7 +22,7 @@ class NeptuneQueryException(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class BaseNeptuneGraph(ABC):
|
class BaseNeptuneGraph(ABC):
|
||||||
"""Abstract base class for Neptune"""
|
"""Abstract base class for Neptune."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def get_schema(self) -> str:
|
def get_schema(self) -> str:
|
||||||
@ -142,7 +142,7 @@ class BaseNeptuneGraph(ABC):
|
|||||||
class NeptuneAnalyticsGraph(BaseNeptuneGraph):
|
class NeptuneAnalyticsGraph(BaseNeptuneGraph):
|
||||||
"""Neptune Analytics wrapper for graph operations.
|
"""Neptune Analytics wrapper for graph operations.
|
||||||
|
|
||||||
Args:
|
Parameters:
|
||||||
client: optional boto3 Neptune client
|
client: optional boto3 Neptune client
|
||||||
credentials_profile_name: optional AWS profile name
|
credentials_profile_name: optional AWS profile name
|
||||||
region_name: optional AWS region, e.g., us-west-2
|
region_name: optional AWS region, e.g., us-west-2
|
||||||
@ -272,14 +272,13 @@ class NeptuneAnalyticsGraph(BaseNeptuneGraph):
|
|||||||
class NeptuneGraph(BaseNeptuneGraph):
|
class NeptuneGraph(BaseNeptuneGraph):
|
||||||
"""Neptune wrapper for graph operations.
|
"""Neptune wrapper for graph operations.
|
||||||
|
|
||||||
Args:
|
Parameters:
|
||||||
host: endpoint for the database instance
|
host: endpoint for the database instance
|
||||||
port: port number for the database instance, default is 8182
|
port: port number for the database instance, default is 8182
|
||||||
use_https: whether to use secure connection, default is True
|
use_https: whether to use secure connection, default is True
|
||||||
client: optional boto3 Neptune client
|
client: optional boto3 Neptune client
|
||||||
credentials_profile_name: optional AWS profile name
|
credentials_profile_name: optional AWS profile name
|
||||||
region_name: optional AWS region, e.g., us-west-2
|
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
|
sign: optional, whether to sign the request payload, default is True
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
Loading…
Reference in New Issue
Block a user