langchain-arqondb
LangChain integration for ArqonDB — VectorStore, ChatHistory, and GraphStore backed by a single self-hosted engine.
Install
pip install langchain-arqondb
For GraphStore support:
pip install langchain-arqondb[graph]
Prerequisites
ArqonDB must be running locally:
curl -sL https://github.com/AlbericByte/ArqonDB/releases/download/v0.1.1/install.sh | bash
Usage
VectorStore
from langchain_arqondb import ArqonDBVectorStore
from langchain_openai import OpenAIEmbeddings
vectorstore = ArqonDBVectorStore(
embedding=OpenAIEmbeddings(),
addr="localhost:9379",
index_name="my_docs",
)
# Add documents
vectorstore.add_texts(
["The cat sat on the mat", "The dog ran in the park"],
metadatas=[{"source": "a"}, {"source": "b"}],
)
# Search
docs = vectorstore.similarity_search("cat", k=2)
# Use as retriever in a RAG chain
retriever = vectorstore.as_retriever()
Chat Message History
from langchain_arqondb import ArqonDBChatMessageHistory
history = ArqonDBChatMessageHistory(session_id="user-123")
history.add_user_message("hello")
history.add_ai_message("hi there")
print(history.messages) # [HumanMessage(...), AIMessage(...)]
history.clear()
Graph Store
from langchain_arqondb import ArqonDBGraphStore
from langchain_community.graphs.graph_document import GraphDocument, Node, Relationship
from langchain_core.documents import Document
graph = ArqonDBGraphStore(addr="localhost:9379", graph_name="knowledge")
alice = Node(id="alice", type="Person", properties={"name": "Alice"})
bob = Node(id="bob", type="Person", properties={"name": "Bob"})
rel = Relationship(source=alice, target=bob, type="KNOWS")
graph.add_graph_documents([
GraphDocument(nodes=[alice, bob], relationships=[rel], source=Document(page_content=""))
])
results = graph.query("*")
schema = graph.get_structured_schema
Why ArqonDB?
ArqonDB is the only single backend that covers all three LangChain storage needs:
| Need | Pinecone | Neo4j | Redis | ArqonDB |
|---|---|---|---|---|
| VectorStore | Yes | No | Yes | Yes |
| GraphStore | No | Yes | No | Yes |
| ChatHistory | No | No | Yes | Yes |
| Self-hosted | No | Partial | Yes | Yes |
| Single engine | - | - | - | Yes |
Zero extra API keys. Apache-2.0. Self-hosted.
Metadata
Release files for langchain-arqondb 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_arqondb-0.2.1.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_arqondb-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / langchain_arqondb-0.2.1.tar.gz
| Download URL | langchain_arqondb-0.2.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f535feb9087783e3fa77365bcc9d06492aa8647099135e58535109e738e8158e
|
|
BLAKE2b-256 checksum How to use checksums |
b48e02cf336d8ed0d033d13272f0900ea1466be4830ef1d43d90af44b6157a35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logRelease files / langchain_arqondb-0.2.1-py3-none-any.whl
| Download URL | langchain_arqondb-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e61864b69127013fe34d5dd8b267fe8fc990d1bdf8b94e45286e8d4c1c19bebe
|
|
BLAKE2b-256 checksum How to use checksums |
31a919907589a6d738e4922e5691fc07aff4541090f51fa6c37ee3e1c28dfc95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency log