Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

langchain_opendma-0.2.0.dev1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_opendma-0.2.0.dev1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file langchain_opendma-0.2.0.dev1.tar.gz.

File metadata

  • Download URL: langchain_opendma-0.2.0.dev1.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

Hashes for langchain_opendma-0.2.0.dev1.tar.gz
Algorithm Hash digest
SHA256 991d28b254240ee5c7af231e116845d805dfb8923a0dc8778e53ca7eb1a86036
MD5 88bc410d0c7bebf8e938878eeee1e977
BLAKE2b-256 4488aa5ca672c5fcf194a358a827649a90f17b005148ecc81a293ec786d820a8

See more details on using hashes here.

File details

Details for the file langchain_opendma-0.2.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: langchain_opendma-0.2.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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

Hashes for langchain_opendma-0.2.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 18688e3bd9bf881e71d77a8390d34132c9e5ece56a3e63b525810ace36e19157
MD5 ebb4f6b767b1beda8eef73a7a01826d8
BLAKE2b-256 1445adb69b3e27274bdf91efc96b84342aaaffecd908c231efa63a221b034b3d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

This release

0.2.0.dev1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page