Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKQA over structured dataSQLRetrieval-augmented generation (RAG)Interacting with APIsChatbotsExtractionSummarizationTaggingWeb scrapingSynthetic data generationGraph queryingDiffbot Graph TransformerArangoDB QA chainNeo4j DB QA chainFalkorDBQAChainHugeGraph QA ChainKuzuQAChainMemgraph QA chainNebulaGraphQAChainNetworkX Graph QAGraphSparqlQAChainNeptune Open Cypher QA ChainGraph queryingArangoDB QA chainOn this pageArangoDB QA chainThis notebook shows how to use LLMs to provide a natural language interface to an ArangoDB database.You can get a local ArangoDB instance running via the ArangoDB Docker image:  docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodbAn alternative is to use the ArangoDB Cloud Connector package to get a temporary cloud instance running:pip install python-arango # The ArangoDB Python Driverpip install adb-cloud-connector # The ArangoDB Cloud Instance provisionerpip install openaipip install langchain# Instantiate ArangoDB Databaseimport jsonfrom arango import ArangoClientfrom adb_cloud_connector import get_temp_credentialscon = get_temp_credentials()db = ArangoClient(hosts=con["url"]).db(    con["dbName"], con["username"], con["password"], verify=True)print(json.dumps(con, indent=2))    Log: requesting new credentials...    Succcess: new credentials acquired    {      "dbName": "TUT3sp29s3pjf1io0h4cfdsq",      "username": "TUTo6nkwgzkizej3kysgdyeo8",      "password": "TUT9vx0qjqt42i9bq8uik4v9",      "hostname": "tutorials.arangodb.cloud",      "port": 8529,      "url": "https://tutorials.arangodb.cloud:8529"    }# Instantiate the ArangoDB-LangChain Graphfrom langchain.graphs import ArangoGraphgraph = ArangoGraph(db)Populating the Database‚ÄãWe will rely on the Python Driver to import our GameOfThrones data into our database.if db.has_graph("GameOfThrones"):    db.delete_graph("GameOfThrones",
Open In Colab
Open In Colab ->: Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKQA over structured dataSQLRetrieval-augmented generation (RAG)Interacting with APIsChatbotsExtractionSummarizationTaggingWeb scrapingSynthetic data generationGraph queryingDiffbot Graph TransformerArangoDB QA chainNeo4j DB QA chainFalkorDBQAChainHugeGraph QA ChainKuzuQAChainMemgraph QA chainNebulaGraphQAChainNetworkX Graph QAGraphSparqlQAChainNeptune Open Cypher QA ChainGraph queryingArangoDB QA chainOn this pageArangoDB QA chainThis notebook shows how to use LLMs to provide a natural language interface to an ArangoDB database.You can get a local ArangoDB instance running via the ArangoDB Docker image:  docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodbAn alternative is to use the ArangoDB Cloud Connector package to get a temporary cloud instance running:pip install python-arango # The ArangoDB Python Driverpip install adb-cloud-connector # The ArangoDB Cloud Instance provisionerpip install openaipip install langchain# Instantiate ArangoDB Databaseimport jsonfrom arango import ArangoClientfrom adb_cloud_connector import get_temp_credentialscon = get_temp_credentials()db = ArangoClient(hosts=con["url"]).db(    con["dbName"], con["username"], con["password"], verify=True)print(json.dumps(con, indent=2))    Log: requesting new credentials...    Succcess: new credentials acquired    {      "dbName": "TUT3sp29s3pjf1io0h4cfdsq",      "username": "TUTo6nkwgzkizej3kysgdyeo8",      "password": "TUT9vx0qjqt42i9bq8uik4v9",      "hostname": "tutorials.arangodb.cloud",      "port": 8529,      "url": "https://tutorials.arangodb.cloud:8529"    }# Instantiate the ArangoDB-LangChain Graphfrom langchain.graphs import ArangoGraphgraph = ArangoGraph(db)Populating the Database‚ÄãWe will rely on the Python Driver to import our GameOfThrones data into our database.if db.has_graph("GameOfThrones"):    db.delete_graph("GameOfThrones",