scikitplot.corpus#
scikitplot.corpus#
Tools for turning files, URLs, media, and text sources into canonical
CorpusDocument evidence that can be transformed, embedded, stored,
searched, adapted, and exported.
See also
Choose the API that matches the job#
CorpusPipelineDirect stage control for one source or an explicit batch.
CorpusBuilderHigh-level build/search/adapt convenience for end-to-end corpus workflows.
FluentCorpusImmutable, reusable configuration. Chained setter order describes what is configured; it does not define execution order.
RuntimeCorpusThe operational form of a validated Fluent plan. Materialization constructs runtime components; source processing starts only with
run()oradd().RetrievalIndex/VectorIndexBackendLower-level retrieval and vector-backend extension APIs.
The common processing picture is:
Source
-> Read
-> Chunk / Normalize / Enrich
-> Embed
-> Store
-> Index
-> Retrieve
-> Adapt / Export
Examples
Direct pipeline control:
>>> from pathlib import Path
>>> from scikitplot.corpus import CorpusPipeline, ParagraphChunker
>>> pipeline = CorpusPipeline(chunker=ParagraphChunker())
>>> result = pipeline.run(Path("article.txt"))
>>> print(f"{result.n_documents} chunks from {result.source}")
The dependency-free default sentence backend is REGEX. Passing a spaCy
model name explicitly selects the spaCy shorthand instead:
>>> from scikitplot.corpus import SentenceChunker
>>> portable = SentenceChunker()
>>> spacy_chunker = SentenceChunker("en_core_web_sm")
High-level builder:
>>> from scikitplot.corpus import CorpusBuilder, BuilderConfig
>>> builder = CorpusBuilder(
... BuilderConfig(
... chunker="paragraph",
... normalize=True,
... enrich=True,
... build_index=True,
... )
... )
>>> result = builder.build("./data/")
>>> results = builder.search("quantum computing")
Reusable declarative configuration:
>>> from scikitplot.corpus import FluentCorpus
>>> fluent = FluentCorpus().chunker("paragraph").storage("memory")
>>> fluent.validate()
[]
Materialization is explicit and performs no source read by itself:
>>> from scikitplot.corpus import RuntimePolicy
>>> with fluent.materialize(policy=RuntimePolicy(allow_network=False)) as runtime:
... len(runtime.documents)
0
A configured source becomes operational only when run() is called:
>>> runtime_fluent = (
... FluentCorpus().source("article.txt").chunker("paragraph").storage("memory")
... )
>>> with runtime_fluent.materialize() as runtime:
... result = runtime.run()
Network and optional-capability examples:
Live URLs, OCR, ASR, spaCy, NLTK resource-backed NLP, model embeddings, and native vector backends depend on the corresponding environment capability. User-facing examples should not fabricate results when a capability is absent. Documentation/gallery examples should either use a portable executed path or report a clear skip while keeping the optional configuration visible.
URL ingestion:
>>> result = pipeline.run_url("https://en.wikipedia.org/wiki/Python")
YouTube transcript:
>>> result = pipeline.run(
... "https://www.youtube.com/watch?v=rwPISgZcYIk"
... )
Image OCR:
>>> from scikitplot.corpus import DocumentReader
>>> reader = DocumentReader.create(Path("scan.png"))
>>> docs = list(reader.get_documents())
With model embeddings:
>>> from scikitplot.corpus import EmbeddingEngine
>>> engine = EmbeddingEngine(backend="sentence_transformers")
Dependency-free local helpers:
>>> from scikitplot.corpus import HAMLET_TEXT, HashEmbedder, SimpleEnricherSpec
>>> HashEmbedder(dimension=32)([HAMLET_TEXT[:120]]).shape
(1, 32)
>>> FluentCorpus().enricher(SimpleEnricherSpec()).validate()
[]
HashEmbedder is a deterministic lexical hashing baseline, not a learned
semantic model. HAMLET_TEXT is bundled convenience sample data rather than
an authoritative scholarly edition.
See scikitplot/corpus/README.md for the user-oriented API map, runtime
policy boundary, retrieval modes, and optional-capability guidance.
User guide. See the Corpus User Guide section for further details.
Adapter layer#
Class inheritance

Convert |
|
Convert documents to a LangGraph-compatible state dict. |
|
Convert documents to MCP |
|
Format documents as an MCP |
|
Convert documents to a HuggingFace |
|
Convert documents to |
|
Yield documents as newline-delimited JSON strings. |
|
Convert documents to a dict of NumPy arrays suitable for batch ML. |
|
Convert documents to a |
|
Convert documents to a |
|
LangChain-compatible retriever backed by |
|
MCP server adapter for corpus search. |
Agentic Retrieval Session#
Ephemeral state for one investigation. |
|
Deterministic, decrementing limits on an investigation. |
|
The result of a bounded investigation. |
|
How an investigation finished. |
|
A deterministic decision about which evidence paths to use. |
|
Why the loop stopped. |
|
The seven deterministic signals, computed before any model judgement. |
|
Choose evidence paths by deterministic rule (autonomy level A1). |
|
Run the bounded retrieve/evaluate/refine loop (autonomy level A2). |
|
An ordered set of |
|
One shape: the words that reveal it and the evidence paths it needs. |
|
The built-in shapes of |
|
An ordered set of |
|
Return the words a routing rule matches against. |
Archive within Archive Handler#
Extract an archive to a destination directory. |
|
Check if a file path has a supported archive extension. |
Artifact Handler#
A persisted vector index together with its provenance. |
|
Raised when an artifact is missing, malformed or incompatible. |
Base Classes#
Class inheritance

Abstract base class for all text chunkers. |
|
Keep code that is not blank; filter everything else as prose. |
|
Standard noise filter ported and improved from remarx's |
|
Keep every document whose text holds a non-whitespace character. |
|
Abstract base class for all format-specific document readers. |
|
A no-op reader that validates source existence and accessibility. |
|
Abstract base class for corpus document filters. |
|
Wrap any document stream with resilience, deduplication, and checkpointing. |
|
What one read of a source covered: parts read, empty and skipped. |
Capability Status#
Why a capability is or is not usable. |
|
Return a read-only snapshot of the runtime corpus capabilities. |
|
Return the installed version of a distribution, or |
|
Classify one backend's availability. |
|
Explicit, side-effect-free registry for component readiness probes. |
|
Read-only readiness state for one optional component. |
|
Declarative probe specification for one optional component. |
|
Probe one registered component capability. |
|
Return JSON-compatible readiness records for components. |
|
Return the built-in component readiness registry. |
Component Spec#
An immutable snapshot of every registered component. |
|
Everything the catalog knows about one component. |
|
What happened when one source was asked for its components. |
|
Terminal outcome of asking one source what components it has. |
|
Build a snapshot of every registered component. |
Chunkers#
A |
|
Adapter that wraps a new-style chunker as a |
|
Bridge for |
|
Bridge for |
|
Bridge for any chunker satisfying |
|
Bridge for |
|
Bridge for |
|
Bridge for |
|
Wrap chunker in a bridge if it is a new-style chunker. |
|
Register a custom bridge for a user-defined chunker class. |
|
Remove a previously registered bridge for chunker_class. |
|
Structural protocol for word tokenizers. |
|
Structural protocol for sentence segmenters. |
|
Structural protocol for word stemmers. |
|
Structural protocol for word lemmatizers. |
|
Wrap any |
|
Wrap any |
|
Wrap any |
|
Wrap any |
|
Thread-safe module-level registry for named custom components. |
|
Register a named |
|
Retrieve a registered tokenizer by name. |
|
Register a named |
|
Retrieve a registered sentence splitter by name. |
|
Register a named |
|
Retrieve a registered stemmer by name. |
|
Register a named |
|
Retrieve a registered lemmatizer by name. |
|
Dominant Unicode script detected in a text sample. |
|
Detect the dominant Unicode script in text. |
|
Return |
|
Return |
|
Split text into individual CJK character tokens. |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
A contiguous span of text in a single Unicode script. |
|
Segment NFC-normalised text into contiguous Unicode script spans. |
|
Produce fixed-size sliding-window chunks over a document. |
|
Configuration for |
|
Unit of measurement for window size and step. |
|
frozenset() -> empty frozenset object frozenset(iterable) -> frozenset object |
|
Normalise any language specifier into a list of canonical NLTK names. |
|
Return a frozenset of stopwords for one or more languages. |
|
Resolve an ISO 639-1/639-3 code to a canonical NLTK language name. |
|
Resolve a canonical NLTK language name to its primary ISO 639-1 code. |
|
Multilang feature flags for any chunker. |
|
Shared multilang analysis mixin for all five chunkers. |
|
Split a document into paragraph-level |
|
Configuration for |
|
Large parents for context, small children for retrieval, linked. |
|
Configuration for |
|
Split text by a separator hierarchy until each piece fits a budget. |
|
Configuration for |
|
Semantic chunking backend selector. |
|
Embedding-aware, writing-system-aware semantic chunker (Layer 3). |
|
Configuration for |
|
Supported sentence-splitting backends. |
|
Split a document into sentence-level |
|
Configuration for |
|
Chunk Markdown or reStructuredText by its headings and code blocks. |
|
Configuration for |
|
Lemmatization backend. |
|
Stemming algorithm. |
|
Stopword list source. |
|
Word tokenisation backend. |
|
Process a document at word level, producing normalised token chunks. |
|
Configuration for |
|
Arabic and Hebrew morphological segmentation strategy. |
|
Character-level segmentation for Han (Chinese logograph) script. |
|
Egyptian Hieroglyph segmentation into determinative groups. |
|
Dictionary-based word boundary detection for no-space scripts. |
|
Ethiopic (Amharic, Tigrinya) segmentation strategy. |
|
Grapheme-cluster-level fallback strategy for any script. |
|
Grapheme-cluster segmentation for Indic scripts. |
|
Multi-tier Japanese segmentation strategy. |
|
Space-delimited word segmentation for Korean Hangul. |
|
Traditional Mongolian segmentation strategy. |
|
Protocol for per-script text segmentation strategies. |
|
Whitespace-and-punctuation segmentation for space-delimited scripts. |
|
Tibetan segmentation strategy. |
|
Dispatch per-script segmentation to the correct strategy. |
|
Configuration for |
Corpus Builder#
Class inheritance

Result of a corpus build operation. |
|
Configuration for |
|
Unified corpus builder — end-to-end pipeline orchestrator. |
Custom Hooks#
Component factory callables for |
|
Wrap any callable as a |
|
Custom backend callables for |
|
Wrap any callable as a |
|
|
|
Wrap any callable as a |
|
|
|
|
|
|
|
Lifecycle callbacks for |
Diagnostic Error Record#
Coarse classification of a diagnostic, for counting and filtering. |
|
One structured, serialisable diagnostic. |
Downloader#
Class inheritance

Auto-dispatching downloader with multi-URL and per-parameter list support. |
|
Abstract base class for all format-specific URL downloaders. |
|
Wraps a user-supplied callable as a |
|
Immutable result object returned by every |
|
GitHub URL downloader with automatic blob → raw normalisation. |
|
Google Drive share-link downloader. |
|
Generic HTTP/HTTPS file downloader. |
|
YouTube content downloader. |
|
Side-effect-free dispatch plan for one URL. |
|
Transport/resource policy shared by Corpus downloaders. |
|
Resolve an object, named preset or mapping without hidden global state. |
Embeddings#
How |
|
What one cached embedding call did. |
|
The result of |
|
Return the Hugging Face Hub commit a model id currently points to. |
|
Path subclass for non-Windows systems. |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Multi-backend sentence embedding engine with SHA-256 file caching. |
|
Embed text with deterministic signed feature hashing. |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Export a corpus with embeddings to LLM training formats. |
|
Unified embedding engine for any |
Embedding Manifest#
Identity of one embedding generation. |
|
Raised when vectors from incompatible generations would be combined. |
Enricher#
frozenset() -> empty frozenset object frozenset(iterable) -> frozenset object |
|
Configuration for |
|
Pipeline component that populates NLP enrichment fields on |
|
Declarative configuration for |
|
Populate tokens and deterministic frequency-ranked keywords. |
Evaluation: Retrieval and Answer Metrics, Scorers#
Class inheritance

Fraction of queries with at least one relevant identifier in the first |
|
Mean average precision (MAP), normalised by all relevant identifiers. |
|
Mean of |
|
Normalised discounted cumulative gain (nDCG@k) over graded judgments. |
|
Fraction of the first |
|
Precision at |
|
Compute several ranking metrics in one validated pass. |
|
Fraction of the relevant identifiers found in the first |
|
Mean negative log-likelihood of binary outcomes under the probabilities. |
|
Mean squared difference between probabilities and binary outcomes. |
|
Every calibration measure for one set of labelled probabilities. |
|
Count-weighted mean absolute gap between prediction and observation. |
|
Per-bin mean predicted probability against observed relevance frequency. |
|
Built-in immutable sequence. |
|
Average normalised Levenshtein similarity (ANLS). |
|
Return |
|
Mean normalised edit similarity between predictions and references. |
|
Fraction of predicted answers equal to a reference after normalisation. |
|
Normalise an answer string for comparison. |
|
Token-overlap F1 between predicted and reference answers (SQuAD style). |
|
Which base class the corpus scorers use in this process. |
|
Return a new scorer for a metric name. |
|
Return the names |
|
Make a scikit-learn compatible scorer from a corpus metric. |
|
Report which base class corpus scorers use in this process. |
|
Paired comparison of two evaluations of the same queries. |
|
One metric of an |
|
One query of a |
|
Result of |
|
Run |
|
A metric is undefined for some queries and was scored by |
|
Return the identifiers of retrieval results, in rank order. |
Evaluation: LLM Judges, Answer Harness, Agreement#
Class inheritance

The response cache failed (a configuration problem, not a model failure). |
|
One model response. |
|
A completion that did not end normally (cut off, filtered, refused). |
|
A language model behind one call shape; made by |
|
Make an |
|
A judge's response that is not a valid verdict. |
|
One judged score. |
|
Judge answers and contexts with a language model. |
|
Return the texts of retrieved contexts, in order. |
|
Parse a judge response strictly. |
|
Result of |
|
One item of an |
|
Result of |
|
Evaluate a system's answers with text metrics and LLM judges. |
|
Judge two systems' answers head to head, in both orders. |
|
Cohen's kappa between two raters of the same items. |
|
Fleiss' kappa for any number of raters with nominal labels. |
|
Krippendorff's alpha for any number of raters, with missing ratings. |
Export#
Export a list of documents to |
|
Load |
Filter (backend-neutral) Expressions#
All sub-expressions must match. |
|
|
|
The field is present and not |
|
Base class for filter expressions. |
|
A backend's declared answer for the operators in one expression. |
|
|
|
Negates a sub-expression. |
|
|
|
|
|
At least one sub-expression must match. |
|
|
|
A scope bound to an index and AND-ed with every query's own filter. |
|
Raised when a backend is asked to evaluate an operator it rejects. |
|
Rebuild a filter expression from its JSON form, refusing anything off contract. |
|
Return the JSON form of a filter expression. |
|
Return the document fields a filter may name. |
|
Return |
Generator Index#
Identity of one built index. |
|
Derive the generation identity for a set of documents. |
Document Identity#
How a corpus build names its documents. |
|
int([x]) -> integer int(x, base=10) -> integer |
|
Raised for data written by another generation of the document schema. |
|
Monotonic generator of RFC 9562 UUID version 7 identifiers. |
|
Return |
|
Return the scheme that produced |
|
Return a new RFC 9562 UUID version 7 from this process's generator. |
|
Return the Unix time in milliseconds that a UUID version 7 carries. |
Graph Node#
How an edge came to exist. |
|
One relationship, with the provenance every edge must carry. |
|
One node in the derived graph. |
|
A bounded traversal request. |
|
The outcome of a traversal, including why it stopped. |
|
What a graph node represents. |
|
The kind of relationship an edge asserts. |
|
Build the G0 view from document fields. |
Hierarchy Report#
Outcome of validating a document hierarchy. |
|
Return the chain from |
|
Return the direct children of |
|
Yield all descendants of |
|
Check referential integrity, cycles and depth of the hierarchy. |
Metadata#
Descriptor for a named corpus collection. |
|
Aggregate statistics over a |
|
Compute aggregate statistics over a document collection. |
|
Extract provenance metadata from a source filename using heuristics. |
Normalizers#
Remove exact duplicate lines while preserving first-occurrence order. |
|
Normalize text to NFC and compute grapheme cluster boundaries. |
|
Remove HTML and XML tags from the document text. |
|
Detect document language and set |
|
Convert the document text to lowercase. |
|
Apply a sequence of normalisers in order. |
|
Abstract base class for all text normalisers. |
|
Apply Unicode normalisation (NFC, NFD, NFKC, or NFKD). |
|
Collapse runs of whitespace and optionally strip leading/trailing space. |
|
Pipeline component that populates |
|
Configuration for |
|
Normalise text according to config. |
Pipeline#
Class inheritance

Orchestrates the full corpus ingestion pipeline. |
|
Immutable summary of a single pipeline run. |
|
Create and export a corpus from a single source file. |
Plan Fluent Facade#
Class inheritance

Built-in immutable sequence. |
|
Raised when one domain is configured twice without an explicit intent. |
|
An immutable, canonical description of a corpus configuration. |
|
Immutable fluent builder over a |
Readers#
Class inheritance

ALTO XML reader for scanned document archives. |
|
Text extraction from audio files via companion transcript/lyrics parsing, Whisper ASR, and optional audio classification. |
|
Read a Compiled HTML Help ( |
|
Read a source code or configuration file in blocks of whole lines. |
|
Fully user-customizable reader for any file extension and resource type. |
|
Coerce an extractor return value to a list of raw chunk dicts. |
|
OCR-based text extraction from raster image files. |
|
Read a Lean source file one command at a time, each chunk naming its declaration. |
|
Read a saved web page ( |
|
Read a Jupyter notebook ( |
|
Read office documents: Office Open XML and OpenDocument. |
|
PDF document reader with pdfminer.six → pypdf cascade. |
|
Read JSON ( |
|
Read TOML ( |
|
Read YAML ( |
|
Read a subtitle or caption file into timed chunks. |
|
Read a delimited text table into chunks of rows. |
|
Markdown document reader. |
|
reStructuredText document reader. |
|
Plain-text document reader. |
|
Text extraction from video files via subtitle parsing and/or automatic speech recognition. |
|
Read a local HTML file into one chunk per text element, offline. |
|
Fetch a web page and extract structured text via BeautifulSoup. |
|
Extract the transcript of a YouTube video using |
|
TEI/XML document reader with dramatic structure extraction. |
|
Generic XML document reader with configurable XPath. |
|
Raised when the members of an archive tree inflate past its extraction budget. |
|
Raised when archive nesting exceeds |
|
Generic ZIP archive reader — dispatches each member to its natural reader. |
|
Read a tar archive (plain, gzip, bzip2 or xz) or a single compressed file. |
Registry#
Central look-up table for corpus pipeline components. |
|
Central look-up table for corpus pipeline components. |
Retrieval Response#
Which evidence path a leg represents. |
|
How one evidence path fared. |
|
Outcome of one evidence path. |
|
Hits plus the story of how they were obtained. |
|
Outcome of a retrieval operation as a whole. |
Retriever#
Vector-similarity evidence path. |
|
One item of a fused ranking. |
|
One leg's share of a fused item's score. |
|
Weighted reciprocal rank fusion with one tie-break and returned contributions. |
|
Relationship-traversal evidence path. |
|
One leg's contribution to a fused hit. |
|
What one leg produced, and how it went. |
|
Keyword / BM25 evidence path. |
|
One leg's evidence for one fused item. |
|
One item of a probability-fused ranking. |
|
Pool calibrated legs as log-odds evidence into probabilities of relevance. |
|
A fused ranking and the diagnostics needed to trust it. |
|
Built-in immutable sequence. |
|
Exact, bounded cache in front of one retrieval index. |
|
A rule for how many ranked hits to keep. |
|
Where a list was cut, and why. |
|
Built-in immutable sequence. |
|
Opt-in probability fusion for hybrid search: a policy and a calibrator per leg. |
|
Base class for an independent evidence path. |
|
Combine leg results by weighted reciprocal rank fusion. |
Retrieval Execution Plan#
Keep each hit's text, best first, until a character budget is spent. |
|
The context a compressor kept from one hit. |
|
Ranked hits plus the account of every stage. |
|
One ranked hit of a plan, with the score of each stage that ranked it. |
|
Run retrieval through typed, bounded stages. |
|
Deterministic limits on the |
|
One stage of a plan, in execution order. |
|
How one stage fared. |
|
Outcome of one stage. |
Corrective Retrieval#
The returned hits, the verdict, and every round. |
|
One round: the query run, how it was graded, what came back. |
|
What the corrective retrieval came to. |
|
Grade, then accept, retry with a rewritten query, or abstain (CRAG). |
|
How a grader judged one round's hits. |
|
One grader's judgement of one round. |
|
Grade hits by the share of the query's words their text contains. |
Runtime Policy#
Materialized operational view of a validated |
|
Execution-boundary policy applied by |
|
Resolve a validated |
|
Resolve a runtime policy object, preset name, or mapping. |
|
Typed composition of the independent Corpus policy dimensions. |
|
Resolve a policy bundle object, named preset, or mapping. |
Optional Backend Policy#
One lazy backend attempt. |
|
Structured, serialisable outcome from |
|
Side-effect-free preflight of candidate ordering and policy eligibility. |
|
Policy for selecting and exhausting optional backend chains. |
|
Why a backend was not executed under the resolved policy. |
|
Outcome of one ordered backend operation. |
|
Resolve an object, named preset or mapping without hidden global state. |
|
Resolve backend order/readiness without executing a backend. |
|
Try candidates in order and return a structured outcome. |
|
User-defined ASR backend adapter. |
|
Stable immutable request passed to user-provided ASR backends. |
|
Built-in immutable sequence. |
|
Return user/backend metadata without allowing core-field shadowing. |
|
Plan the exact ASR chain without importing/loading/running a model. |
|
Transcribe media with a shared, policy-driven ASR backend chain. |
Samples for Corpus Usage#
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
Schema#
Semantic label for the role of a text chunk within its source document. |
|
Describes how a |
|
Supported serialisation targets for a completed corpus. |
|
Semantic label for the kind of source from which a document was read. |
|
Search mode for intertextual matching queries against a corpus index. |
|
Primary content modality of a |
|
Per-document error handling behaviour for |
|
Canonical representation of a single text chunk in a processed corpus. |
|
Convert a list of |
|
Convert a list of |
Similarity Backend#
Class inheritance

Built-in immutable sequence. |
|
ANN backend over a scikit-plots Annoy |
|
Exact cosine similarity via a normalised dot product. |
|
ANN backend over a FAISS |
|
A fallback was needed and |
|
Uniform contract for a dense vector index. |
|
ANN backend over a Voyager cosine-space index. |
|
Return the canonical names of currently importable backends. |
|
Construct an ANN backend by name. |
|
Configuration for similarity search. |
|
A single search result. |
|
Multi-mode similarity index over |
|
Ranker by normalised Levenshtein similarity, with backend provenance. |
|
Ranker built from a pairwise relevance function. |
|
Make a |
|
Make a |
Source#
Declarative descriptor for one or more document sources. |
|
A single resolved source entry yielded by |
|
Discriminant for the kind of source an entry represents. |
Storage#
Class inheritance

How a backend handled one requested filter. |
|
Thread-safe in-memory dict store. |
|
Append-friendly JSONL (newline-delimited JSON) flat-file store. |
|
Result container returned by |
|
SQLite-backed corpus store with FTS5 full-text search. |
|
Abstract base class for all corpus storage backends. |
|
Query parameters for |
Type Contracts#
|
|
|
|
|
|
Lifecycle state of a |
|
MIME-style content type for raw document payloads. |
|
Storage backend identifiers for the corpus store. |
|
Normalisation step identifiers for pipeline ordering. |
|
A single unit of text produced by a chunker. |
|
Container returned by every |
|
Abstract base configuration for all chunker implementations. |
|
Abstract base configuration for document source implementations. |
|
Abstract base configuration for text normaliser implementations. |
|
Abstract base configuration for storage backend implementations. |
|
Descriptor for a single step in a |
|
Full pipeline configuration composed of ordered steps. |
|
A |
|
A query submitted to the corpus retrieval layer. |
|
A single result returned from the corpus retrieval layer. |
|
A persisted record combining a |
|
Structural interface every chunker must satisfy. |
|
Structural interface every text normaliser must satisfy. |
|
Structural interface every document source must satisfy. |
|
Structural interface every storage backend must satisfy. |
|
An entry in the |
|
A single validation failure raised during corpus processing. |
|
Aggregate result of a validation pass. |
|
A single example in an LLM fine-tuning dataset. |
|
A named collection of |
|
Input payload for a Model Context Protocol tool call. |
|
Result returned from a Model Context Protocol tool call. |
|
Rich semantic unit descriptor attached to each multilang chunk. |
|
Record of a single preprocessing transformation applied to raw text. |
|
Ordered audit trail of all preprocessing transformations. |
|
Per-chunk multilang analysis bundle — stored in |
URL Handler#
Classification of a URL for routing to the correct handler. |
|
Classify a URL into one of the known |
|
Download a URL to a local file. |
|
Infer a file extension from HTTP response headers and URL path. |
|
Probe a URL with a HEAD request to classify by Content-Type. |
|
Resolve a provider-specific URL to a direct-download URL. |