Skip to main content

LangChain integration for Opedd — licensed, rights-cleared content for AI: load your licensed corpus into RAG pipelines and give agents lookup/verify tools with a verifiable license key per article.

Project description

langchain-opedd

Licensed, rights-cleared content for your LangChain pipelines. Opedd is the licensing rail between expert publishers and AI products — every article comes with a verifiable license key, on-chain proof (Tempo), and EU AI Act Article 53 attestation support. This package is the licensed alternative to scraping for RAG, agents, and AI search.

pip install langchain-opedd

Load your licensed corpus into RAG (the 3-line on-ramp)

from langchain_opedd import OpeddFeedLoader

loader = OpeddFeedLoader(access_key="ent_...")   # your Opedd enterprise access key
docs = loader.load()                              # LangChain Documents, licensing provenance in metadata

Every Document.metadata carries id, title, source, publisher_id, published_at, author, content_hash, and licensed: True — so answers in your pipeline stay attributable to licensed sources. Supports since (delta feeds), max_documents, and lazy_load() for streaming.

# Straight into a vectorstore:
from langchain_openai import OpenAIEmbeddings
from langchain_community.vectorstores import FAISS

vectorstore = FAISS.from_documents(docs, OpenAIEmbeddings())

Agent tools

from langchain_opedd import (
    OpeddLookupTool,          # licensing status + price for any article URL (no auth)
    OpeddDirectoryTool,       # browse verified publishers (no auth)
    OpeddVerifyLicenseTool,   # verify a license key + on-chain proof (no auth)
    OpeddContentTool,         # retrieve licensed article text (buyer token)
)

tools = [
    OpeddLookupTool(),
    OpeddDirectoryTool(),
    OpeddVerifyLicenseTool(),
    OpeddContentTool(buyer_token="opedd_buyer_live_..."),
]
# use with create_react_agent / your agent framework of choice

Where keys come from

  • No key needed for discovery/verification tools.
  • Buyer token (opedd_buyer_live_*): self-serve signup at opedd.com — no approval step.
  • Enterprise access key (ent_*): issued with an enterprise license (bulk/metered catalog access).

Autonomous purchasing

Deliberately not a LangChain tool (payment confirmation belongs in a richer protocol). Agents that buy licenses mid-task should use the Opedd MCP server — hosted at https://mcp.opedd.com/mcp or local via npx opedd-mcp — which includes purchase_license with Stripe support.

Related

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_opedd-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

langchain_opedd-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_opedd-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_opedd-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for langchain_opedd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b6950720fbeb484af7b8d67427bc3d07a8e29acd877f6d2fc065cd76e12a662
MD5 33bd445952a8c53418b615a1d383c72e
BLAKE2b-256 33941d393fd121056c2ddf79c81d5f329e2588cab1a3a4a35fa337502f27612f

See more details on using hashes here.

File details

Details for the file langchain_opedd-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_opedd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22a01f067e3ebae71a4f4bc372feb5fc7804744b4aff5dd50df20cd804a24a98
MD5 34f450a5334db65639d12deb793adf14
BLAKE2b-256 a903741a43a72cd3455cdab2fb0562ffe1d313d95d884937de0705d40fafb34a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page