feat!: add content transformers (readability, mdream) and cleanup pipelines#3
Merged
Conversation
…ean-deterministic pipeline
- New ContentTransformer contract (supports/transform) with registry
and engine wiring, as a sixth built-in category
- Built-in mdream transformer using @mdream/js (pure-JS HTML -> markdown)
with minimal and clean knobs
- Generic transform pipeline step with target gate and diagnostics passthrough
- New firecrawl-html source provider (Firecrawl rawHtml, no onlyMainContent
or stripBase64Images -- those are no-ops with rawHtml)
- New clean-deterministic pipeline: load-source(firecrawl-html) ->
transform(mdream) -> truncate (no LLM)
- Naming overhaul: all providers and LLM registries use {type}-{variant}
convention (http-default, firecrawl-markdown, firecrawl-html,
docling-default, mdream-default, llm-default)
- Updated inspect-suspects.ps1 to fetch rawHtml from Firecrawl as the
universal comparison baseline
- Updated all docs for new naming and features
- .env.example and compose files: added MDREAM_MINIMAL/MDREAM_CLEAN
passthrough with true defaults; updated SOURCE_PROVIDER defaults
…e, truthful Firecrawl media types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a content-transformers extension family for deterministic, in-process body
conversion and the pipelines that use it. Transformers run with no upstream
call and can decline unsuitable input. Two deterministic pipelines ship:
clean-deterministic (no LLM) and clean-combined (deterministic + LLM summarize).
Content transformers
a transformer by name and applies it to the current body).
mdream-convert (post-readability conversion) and mdream-aggressive
(minimal-preset one-pass extraction).
Readability, gated by isProbablyReaderable (minContentLength, minScore,
maxElements).
Transform outcomes
transformers signal "not suitable" instead of forcing a transform.
Truthful Firecrawl media types
transformers skip it correctly.
FIRECRAWL_PARSE_PDF makes this configurable.
Pipelines and config
defaults to empty (use the active pipeline's fallback).
Breaking
Update SOURCE_PROVIDER or custom YAML that referenced docling-default.
Docs, env examples, and Compose files updated to match.