mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
1bbb64d956
**Description**: This PR adds a chain for Amazon Neptune graph database RDF format. It complements the existing Neptune Cypher chain. The PR also includes a Neptune RDF graph class to connect to, introspect, and query a Neptune RDF graph database from the chain. A sample notebook is provided under docs that demonstrates the overall effect: invoking the chain to make natural language queries against Neptune using an LLM. **Issue**: This is a new feature **Dependencies**: The RDF graph class depends on the AWS boto3 library if using IAM authentication to connect to the Neptune database. --------- Co-authored-by: Piyush Jain <piyushjain@duck.com> Co-authored-by: Bagatur <baskaryan@gmail.com>
22 lines
410 B
Python
22 lines
410 B
Python
from langchain_community.graphs import __all__
|
|
|
|
EXPECTED_ALL = [
|
|
"MemgraphGraph",
|
|
"NetworkxEntityGraph",
|
|
"Neo4jGraph",
|
|
"NebulaGraph",
|
|
"NeptuneGraph",
|
|
"NeptuneRdfGraph",
|
|
"KuzuGraph",
|
|
"HugeGraph",
|
|
"RdfGraph",
|
|
"ArangoGraph",
|
|
"FalkorDBGraph",
|
|
"TigerGraph",
|
|
"OntotextGraphDBGraph",
|
|
]
|
|
|
|
|
|
def test_all_imports() -> None:
|
|
assert set(__all__) == set(EXPECTED_ALL)
|