Query (1):    WITH Characters    FOR character IN Characters    FILTER character.name == "Arya" && character.surname == "Stark"    RETURN character.age        AQL Result:    [11]        > Finished chain.    'Arya Stark is 11 years old.'chain.run("Are Arya Stark and Ned Stark related?")            > Entering new ArangoGraphQAChain chain...    AQL Query (1):    WITH Characters, ChildOf    FOR v, e, p IN 1..1 OUTBOUND 'Characters/AryaStark' ChildOf        FILTER p.vertices[-1]._key == 'NedStark'        RETURN p        AQL Result:    [{'vertices': [{'_key': 'AryaStark', '_id': 'Characters/AryaStark', '_rev': '_gVPKGPi--B', 'name': 'Arya', 'surname': 'Stark', 'alive': True, 'age': 11, 'gender': 'female'}, {'_key': 'NedStark', '_id': 'Characters/NedStark', '_rev': '_gVPKGPi---', 'name': 'Ned', 'surname': 'Stark', 'alive': True, 'age': 41, 'gender': 'male'}], 'edges': [{'_key': '266218884025', '_id': 'ChildOf/266218884025', '_from': 'Characters/AryaStark', '_to': 'Characters/NedStark', '_rev': '_gVPKGSq---'}], 'weights': [0, 1]}]        > Finished chain.    'Yes, Arya Stark and Ned Stark are related. According to the information retrieved from the database, there is a relationship between them. Arya Stark is the child of Ned Stark.'chain.run("Does Arya Stark have a dead parent?")            > Entering new ArangoGraphQAChain chain...    AQL Query (1):    WITH Characters, ChildOf    FOR v, e IN 1..1 OUTBOUND 'Characters/AryaStark' ChildOf    FILTER v.alive == false    RETURN e        AQL Result:    [{'_key': '266218884027', '_id': 'ChildOf/266218884027', '_from': 'Characters/AryaStark', '_to': 'Characters/CatelynStark', '_rev': '_gVPKGSu---'}]        > Finished chain.    'Yes, Arya Stark has a dead parent. The parent is Catelyn Stark.'Chain Modifiers‚ÄãYou can alter the values of the following ArangoDBGraphQAChain class variables to modify the behaviour of your chain results# Specify the maximum number of AQL Query Results to returnchain.top_k = 10# Specify whether or not
Open In Colab
Open In Colab ->: Query (1):    WITH Characters    FOR character IN Characters    FILTER character.name == "Arya" && character.surname == "Stark"    RETURN character.age        AQL Result:    [11]        > Finished chain.    'Arya Stark is 11 years old.'chain.run("Are Arya Stark and Ned Stark related?")            > Entering new ArangoGraphQAChain chain...    AQL Query (1):    WITH Characters, ChildOf    FOR v, e, p IN 1..1 OUTBOUND 'Characters/AryaStark' ChildOf        FILTER p.vertices[-1]._key == 'NedStark'        RETURN p        AQL Result:    [{'vertices': [{'_key': 'AryaStark', '_id': 'Characters/AryaStark', '_rev': '_gVPKGPi--B', 'name': 'Arya', 'surname': 'Stark', 'alive': True, 'age': 11, 'gender': 'female'}, {'_key': 'NedStark', '_id': 'Characters/NedStark', '_rev': '_gVPKGPi---', 'name': 'Ned', 'surname': 'Stark', 'alive': True, 'age': 41, 'gender': 'male'}], 'edges': [{'_key': '266218884025', '_id': 'ChildOf/266218884025', '_from': 'Characters/AryaStark', '_to': 'Characters/NedStark', '_rev': '_gVPKGSq---'}], 'weights': [0, 1]}]        > Finished chain.    'Yes, Arya Stark and Ned Stark are related. According to the information retrieved from the database, there is a relationship between them. Arya Stark is the child of Ned Stark.'chain.run("Does Arya Stark have a dead parent?")            > Entering new ArangoGraphQAChain chain...    AQL Query (1):    WITH Characters, ChildOf    FOR v, e IN 1..1 OUTBOUND 'Characters/AryaStark' ChildOf    FILTER v.alive == false    RETURN e        AQL Result:    [{'_key': '266218884027', '_id': 'ChildOf/266218884027', '_from': 'Characters/AryaStark', '_to': 'Characters/CatelynStark', '_rev': '_gVPKGSu---'}]        > Finished chain.    'Yes, Arya Stark has a dead parent. The parent is Catelyn Stark.'Chain Modifiers‚ÄãYou can alter the values of the following ArangoDBGraphQAChain class variables to modify the behaviour of your chain results# Specify the maximum number of AQL Query Results to returnchain.top_k = 10# Specify whether or not