LangChain OpenDMA
LangChain document loaders and retrievers for OpenDMA.
OpenDMA is a vendor-neutral abstraction layer for enterprise content management
systems. It provides a common API for repositories such as Alfresco, CMOD,
Documentum, FileNet P8, OnBase, SharePoint, and other ECM or document management
platforms. This package connects that API to LangChain by loading and retrieving
OpenDMA documents as langchain_core.documents.Document objects.
Use this package when you want to build LangChain applications, RAG pipelines, or content analysis workflows on top of documents stored in ECM systems.
Features
- Load documents from an OpenDMA REST service by document ID, folder ID, or query.
- Retrieve documents from OpenDMA search results through LangChain's retriever API.
- Use specialized retrievers for Alfresco, Documentum, FileNet P8, and OnBase.
- Preserve OpenDMA and repository metadata on every LangChain
Document. - Process plain text content out of the box.
- Process richer document formats with optional Unstructured or Docling handlers.
- Use LangChain's sync and async document loader APIs.
Installation
Install OpenDMA and this integration from PyPI:
pip install langchain-opendma
Install optional parser integrations when you need Office, PDF, HTML, images, or other rich formats:
pip install "langchain-opendma[unstructured]"
pip install "langchain-opendma[docling]"
pip install "langchain-opendma[all]"
Quickstart
from langchain_opendma import OpenDMALoader
loader = OpenDMALoader(
endpoint="http://localhost:8080/opendma",
username="admin",
password="admin",
repository_id="my-repository",
document_ids=["some-document-id"],
)
documents = loader.load()
for document in documents:
print(document.metadata["source"])
print(document.metadata.get("opendma:Title"))
print(document.page_content)
By default, OpenDMALoader handles text/plain content. For PDF, Office,
HTML, image, and other rich formats, configure an Unstructured or Docling content
handler. See the documentation for details.
Use OpenDMARetriever when you want LangChain to call an OpenDMA search as part
of a retrieval pipeline:
from langchain_opendma import OpenDMARetriever
retriever = OpenDMARetriever(
endpoint="http://localhost:8080/opendma",
username="admin",
password="admin",
repository_id="my-repository",
query_language="opendma:sfts",
)
documents = retriever.invoke("needle keyword")
Documentation
- Tutorials: guided LangChain application tutorials
- Documentation: usage, loader options, and content handlers
- Examples: runnable examples using the tutorial repository
Development
This project uses uv for dependency management.
uv sync --all-extras
uv run pytest
uv run ruff check src tests
uv run mypy src tests
Related Projects
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_opendma-0.2.0.tar.gz.
File metadata
- Download URL: langchain_opendma-0.2.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caf1f77599dd354def9c03ab22ab87d521cf9f43a52ad2c8f7c05ec0091bcc26
|
|
| MD5 |
b50db2b04428ed2cbdbb45607c6d6189
|
|
| BLAKE2b-256 |
0511be04e260ec8f77ebcc16a9fc96714ba74c534d9a0027177bac67433d9e80
|
File details
Details for the file langchain_opendma-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_opendma-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddbac8d3b72124d8dfa6897d0ea4eb7806374da979f36bf7a4c94c934eb2b984
|
|
| MD5 |
aa3a27149a1c15efd0d256ec884593db
|
|
| BLAKE2b-256 |
ac9542ccf9be299edac480b56b23f518b1fcde4a15504a72d245253abb504cba
|