RAG Text Chunker - Source Offsets and Verbatim Chunks
Pricing
from $0.48 / 1,000 input record processeds
RAG Text Chunker - Source Offsets and Verbatim Chunks
Split supplied text into overlapping verbatim chunks with source offsets, hashes and stable chunk IDs. Export JSONL for RAG pipelines.
Pricing
from $0.48 / 1,000 input record processeds
Rating
0.0
(0)
Developer
Dhan sites
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
21 hours ago
Last modified
Categories
Features
Share
Split supplied documents into overlapping, verbatim character windows for a retrieval pipeline. Preserve exact source-field offsets, content hashes and deterministic chunk IDs, and download a flat JSONL export.
Start with this workflow
Create traceable text chunks without rewriting the source.
After the run: Open the flat JSONL export and verify start/end spans against the original field. Character windows are not token counts or an embedding service.
What is billed: Processed input documents, not output chunks; per-record diagnostics count and invalid top-level input is free. Check the Pricing tab for the applicable subscription-tier rate. Result rows and billable input units can differ. A successful execution does not guarantee full coverage.
The example uses a small supplied fixture or the publisher-owned demonstration target. Replace it with input you are authorized to process; inspect coverage, diagnostics and limits before downstream use.
Quick start
- Open the Input tab or the public Example task and restore the example input.
- Run the small example below. Use non-sensitive supplied records first. Source URLs are metadata; this Actor does not fetch websites.
- Open the dataset for individual results, then read
REPORTfor coverage and diagnostics. A successful execution alone does not establish that all requested work was completed. - Download the relevant files from the Output tab, or retrieve the dataset through Apify's API for your next workflow step.
{"records": [{"url": "https://example.com/docs","text": "Price100\nrun --safe\nDocumentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. Documentation explains installation and recovery steps. "}],"chunkCharacters": 200,"overlapCharacters": 40}
Output example
The following is a real first result from the developer's example run; some large nested fields are omitted for readability. These are supplied sample records; source labels are not independently verified website evidence.
{"record_index": 0,"valid": true,"error": "","chunk_count": 6,"character_count": 860,"boundary_mode": "characters"}
The default dataset contains result rows. Files declared for this Actor are listed below; availability depends on the input mode and validation result. Input errors and diagnostics are reported in REPORT.
REPORTCHUNKS.jsonl
Input reference
| Field | Type | Required | Description |
|---|---|---|---|
maxRecords | integer | No | Total record processing cap. Capped output is explicitly truncated. |
records | array | Yes | JSON array of input records. Up to10000 supplied; at most1000 processed per run. |
textField | string | No | Dot-separated object field path. |
chunkCharacters | integer | No | Unicode code points per window, not tokens. |
overlapCharacters | integer | No | Overlap0 to half the chunk size. |
boundaryMode | string | No | Paragraph mode prefers a blank LF line in the final40% of a window. Otherwise uses the character limit. Text and exact offsets are preserved. |
Advanced workflow
Optional paragraph boundaries and flat JSONL export
boundaryMode defaults to characters, preserving existing window positions and chunk IDs. Set paragraphs to prefer an LF blank-line boundary in the final40% of the character window, provided overlap still permits forward progress; otherwise it falls back to the character limit. Text is never stripped or normalized. Each chunk includes boundary_reason and overlap_with_previous. CHUNKS.jsonl flattens chunks with record_index for pipeline use. Exact half-open Unicode code-point spans and content hashes remain authoritative. This is not semantic, sentence-aware or token-aware chunking. Billing remains per inspected input document, not per chunk.
Pricing
$0.6 per 1,000 processed input documents ($0.0006 each) at the entry tier. Per-record diagnostics count as processed records; invalid top-level input has no record event fee. Billing is per input document, not per emitted chunk. No run-start event or automatic output-row event. The Pricing tab shows the applicable subscription-tier price. The spending limit can reduce the number of processed items.
For example, 100 billable items cost $0.06 in Actor event fees at the entry tier. Zero findings is different from zero processed items. Inspect the report's processed/checked counts and the run's charge events to reconcile a run.
Limits and interpretation
Default 200, maximum 1,000 input documents per run; at most 10,000 supplied records and 2 million serialized JSON characters. Each document is limited to 100,000 characters and the run to 5,000 exported chunks. Offsets are zero-based, half-open Unicode code-point positions, not bytes, tokens or grapheme clusters. No embeddings, semantic splitting, sentence analysis or citation-fact verification. Source URLs are supplied labels and are never fetched.
Results cover only the inspected input. Truncation and unchecked records require review; do not treat them as a complete-source guarantee. Input is not overwritten. The Actor uses limited permissions.
Troubleshooting and support
- Run succeeded but output is diagnostic: inspect
REPORT, correct the named fields, and rerun. Handled invalid input can finish withSUCCEEDEDand no billable items. - Fewer results than requested: check coverage, truncation, spending limits and the limits above. Check the input field names, per-record diagnostics and coverage. This tool does not fetch websites.
- Repeat a workflow: save a task with your input and use Apify scheduling or its API. Review each run's coverage before passing results downstream.
- Report a problem: open this Actor's Issues tab with the run ID, expected behavior and a minimal non-sensitive input. Never post tokens, credentials or private source data.
Related tools
Who is this for?
RAG and retrieval developers who need traceable text chunks. Supply documents and inspect the source offsets before passing chunks to an embedding service.
Frequently asked questions
Is this a token-based chunker or embedding API?
No. It creates bounded character windows that preserve source text and offsets. It does not count model tokens, rewrite text or generate embeddings.
How do I try it before using my full input?
Open the Input tab, review the prefilled example, and run a small batch with a spending limit. Inspect the dataset and report before increasing the batch. Examples can incur the documented inspection or analysis fee; an execution marked successful can still contain rejected records or incomplete coverage.
Can I use the Actor through an API or on a schedule?
Yes. Use Apify's Actor API or schedules. Keep credentials private and use the documented input fields. The pricing and limits below apply to API runs too.