Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

EnConvert loader for LangChain

langchain-enconvert turns web pages and whole sites into LangChain Documents through EnConvert. Every perceived page carries a render_quality score (0.0-1.0) in its metadata, so a blocked or empty page comes back flagged rather than trusted.

Install

pip install langchain-enconvert

Use

from langchain_enconvert import EnconvertLoader

# A few URLs into clean-markdown Documents:
docs = EnconvertLoader(urls=["https://example.com", "https://example.com/pricing"]).load()

# Or a whole site into RAG-ready chunk Documents:
docs = EnconvertLoader(ingest_url="https://docs.example.com", mode="sitemap", max_pages=100).load()
  • URLs are perceived into markdown; metadata carries source and render_quality.
  • ingest_url crawls the site (async; the loader polls to completion), then returns one Document per chunk, each carrying the chunk's own metadata (source, title, etc.).
  • .lazy_load() streams Documents one at a time.

Auth: a private key (sk_...) from your dashboard. Public pk_ keys are rejected. The key is read from api_key= or $ENCONVERT_API_KEY.

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages