langchain/docs/extras/modules/chains/additional
Anthony Mahanna 76102971c0
ArangoDB/AQL support for Graph QA Chain (#7880)
**Description**: Serves as an introduction to LangChain's support for
[ArangoDB](https://github.com/arangodb/arangodb), similar to
https://github.com/hwchase17/langchain/pull/7165 and
https://github.com/hwchase17/langchain/pull/4881

**Issue**: No issue has been created for this feature

**Dependencies**: `python-arango` has been added as an optional
dependency via the `CONTRIBUTING.md` guidelines
 
**Twitter handle**: [at]arangodb

- Integration test has been added
- Notebook has been added:
[graph_arangodb_qa.ipynb](https://github.com/amahanna/langchain/blob/master/docs/extras/modules/chains/additional/graph_arangodb_qa.ipynb)

[![Open In
Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/amahanna/langchain/blob/master/docs/extras/modules/chains/additional/graph_arangodb_qa.ipynb)

```
docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodb
```

```
pip install git+https://github.com/amahanna/langchain.git
```

```python
from arango import ArangoClient

from langchain.chat_models import ChatOpenAI
from langchain.graphs import ArangoGraph
from langchain.chains import ArangoGraphQAChain

db = ArangoClient(hosts="localhost:8529").db(name="_system", username="root", password="", verify=True)

graph = ArangoGraph(db)

chain = ArangoGraphQAChain.from_llm(ChatOpenAI(temperature=0), graph=graph)

chain.run("Is Ned Stark alive?")
```

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-07-24 15:16:52 -07:00
..
cpal.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
elasticsearch_database.ipynb Bagatur/docs nit (#7712) 2023-07-14 11:13:02 -04:00
extraction.ipynb fix (#7838) 2023-07-17 07:53:11 -07:00
flare.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
graph_arangodb_qa.ipynb ArangoDB/AQL support for Graph QA Chain (#7880) 2023-07-24 15:16:52 -07:00
graph_cypher_qa.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
graph_hugegraph_qa.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
graph_kuzu_qa.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
graph_nebula_qa.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
graph_qa.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
graph_sparql_qa.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
hyde.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_bash.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_checker.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_math.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_requests.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_summarization_checker.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
llm_symbolic_math.ipynb update docs (#7714) 2023-07-14 11:49:09 -04:00
neptune_cypher_qa.ipynb Neptune graph and openCypher QA Chain (#8035) 2023-07-20 18:56:47 -07:00
openai_functions_retrieval_qa.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
openai_openapi.yaml Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
openapi_openai.ipynb Fix make docs_build and related scripts (#7276) 2023-07-11 22:05:14 -04:00
openapi.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
pal.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
qa_citations.ipynb Harrison/refactor functions (#6408) 2023-06-18 23:13:42 -07:00
tagging.ipynb Harrison/refactor functions (#6408) 2023-06-18 23:13:42 -07:00
vector_db_text_generation.ipynb Doc refactor (#6300) 2023-06-16 11:52:56 -07:00