mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-14 11:33:00 +00:00
**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) [](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> |
||
---|---|---|
.. | ||
cpal.ipynb | ||
elasticsearch_database.ipynb | ||
extraction.ipynb | ||
flare.ipynb | ||
graph_arangodb_qa.ipynb | ||
graph_cypher_qa.ipynb | ||
graph_hugegraph_qa.ipynb | ||
graph_kuzu_qa.ipynb | ||
graph_nebula_qa.ipynb | ||
graph_qa.ipynb | ||
graph_sparql_qa.ipynb | ||
hyde.ipynb | ||
llm_bash.ipynb | ||
llm_checker.ipynb | ||
llm_math.ipynb | ||
llm_requests.ipynb | ||
llm_summarization_checker.ipynb | ||
llm_symbolic_math.ipynb | ||
neptune_cypher_qa.ipynb | ||
openai_functions_retrieval_qa.ipynb | ||
openai_openapi.yaml | ||
openapi_openai.ipynb | ||
openapi.ipynb | ||
pal.ipynb | ||
qa_citations.ipynb | ||
tagging.ipynb | ||
vector_db_text_generation.ipynb |