Loading video...

Video Failed to Load

Go Home

Introducing DocJev - a lightning-fast OSS library for document classification and splitting with jev ⚡️ Give a document alongside some natural language category rules. Jev will predict the document category (classify) or the boundaries between sub-documents (split). It is 6x faster than gpt-5.6-luna with equivalent accuracy. You can choose...

218,214 views • 1 month ago •via X (Twitter)

32 Comments

Jerry Liu's profile picture
Jerry Liu1 month ago

Latency benchmarks:

Jerry Liu's profile picture
Jerry Liu1 month ago

You can find the full interactive report here:

AI Mastery Guide's profile picture
AI Mastery Guide1 month ago

Splitting docs that fast is useful

Greg Mushen's profile picture
Greg Mushen1 month ago

Nice. Would be very cool to have model routing based on PDF contents, e.g. use Marker if there are tables, etc.

Imaan Sultan 🇵🇰🇸🇦's profile picture
Imaan Sultan 🇵🇰🇸🇦1 month ago

need to try this 👀

First Sauce Labs's profile picture
First Sauce Labs1 month ago

The "natural language category rules" is the part that will get interesting fast. Looking forward to trying it out.

Likhith Bhargav's profile picture
Likhith Bhargav1 month ago

Natural-language rules as the interface are the right abstraction - humans own the taxonomy, Jev owns the cheap decision.

kettybluce's profile picture
kettybluce1 month ago

Nice example of keeping the interface simple while exposing both classification and boundary detection. The split output should make it easier to audit where a document needs review, especially when the classifier is uncertain.

Jatin Garg's profile picture
Jatin Garg1 month ago

Natural language category rules removes the whole annotation/fine-tuning step for document classification.

Tanisha Pritha's profile picture
Tanisha Pritha1 month ago

Just wired LlamaParse into a procurement RAG ingest last week. Tables + scanned PDFs were the whole problem. Caching the parsed doc and then classifying/splitting fast is exactly the missing step. Trying DocJev on the next batch.

TensorQuay's profile picture
TensorQuay1 month ago

Could you benchmark the scanned PDFs in the synthetic set next? The report's ~6x figures exclude OCR. Timing the full pipeline would show how much of that speedup reaches someone uploading a scan.

Jay Zhou's profile picture
Jay Zhou1 month ago

a bad split never throws an error. it just quietly changes every answer downstream and the citation still looks fine.

Naveen 🚀's profile picture
Naveen 🚀1 month ago

This is great

anytan's profile picture
anytan1 month ago

DocJev 6x on doc split. that's the hit

Anurag's profile picture
Anurag1 month ago

The split is the decision that matters, the classification is just filing. I've watched document pipelines where a perfect classifier sat on top of bad splits and the RAG answers were still garbage, because one wrong boundary means two contracts live in the same chunk. Get the boundaries right and the labels almost don't matter.

Brick | AI Builder Signal's profile picture
Brick | AI Builder Signal1 month ago

Important qualifier: the repo's accuracy pilot is a 40-PDF, 8-packet convenience sample with shared source/template families and uncontrolled provider caching. The reproducible report does not establish general split accuracy. Keep boundary review before unattended use.

manish · building AgentWorks's profile picture
manish · building AgentWorks1 month ago

Document classification and splitting, nice launch

Christopher Dean's profile picture
Christopher Dean1 month ago

ocr tradeoffs are the whole game — latency vs accuracy is what makes doc pipelines ship or stall.

AI议会's profile picture
AI议会1 month ago

文档分类/切分做成开源原语,比再堆一个「全能 RAG」更落地。DocJev 这种薄库才容易嵌进现有流水线。

Clara Benson's profile picture
Clara Benson1 month ago

Will the LlamaParse preprocessing latency bottleneck break real-time API limits if downstream tasks never actually reuse those cached representations?

Jamik's profile picture
Jamik1 month ago

the subdocument boundary bit is super useful, thats usually where doc classifiers get weird

Kizuno18's profile picture
Kizuno181 month ago

fast splitting + classification is what unlocks unmonitored pipelines. tested an autonomous pipeline pulling macro data for brazil from outside: using fast models for schema boundaries instead of giant context windows cut latency 85% and completely eliminated 3am timeouts.

Klasta's profile picture
Klasta1 month ago

splitting docs from english category rules, no classifier zoo

Nines's profile picture
Nines1 month ago

The split between classification and boundary detection is a nice touch. OCR pipelines often get treated as one problem, but the backend choice matters once documents stop being clean scans.

Richard Tang's profile picture
Richard Tang1 month ago

huge!

Brjan | AI Builder's profile picture
Brjan | AI Builder1 month ago

how does DocJev handle edge cases where documents don't fit typical rules?

Stanislav Sorokin's profile picture
Stanislav Sorokin1 month ago

Similar picture on papers instead of documents: 1,000 arXiv abstracts, 24 categories, 57 ms each. With Opus 5 as judge Jev matched 85 of 100 at 153x lower cost per paper. Confidence under 0.90 flagged 14 of the 15 misses.

Josh R Barry's profile picture
Josh R Barry1 month ago

Turning the annotation step into a rules interface is a very good trade for this kind of workflow.

Elias Lumer's profile picture
Elias Lumer1 month ago

Is jev on your leaderboard? Curious on your benchmark accuracy vs latency for Jev vs others

Miano's profile picture
Miano1 month ago

This is a strong abstraction. Letting the user describe boundaries in natural language removes a lot of brittle preprocessing, especially when document formats keep changing.

Mitansh's profile picture
Mitansh1 month ago

docjev for classify + split with natural language rules is neat 6x faster is a serious flex on doc pipelines

Steven's profile picture
Steven1 month ago

I tested DocJEV with both a local model and the official JEV model — works equally great! 🔥

Related Videos

The latest RAG trend for the current agent harnesses (Codex, Cowork) is to do two passes of document processing to solve a knowledge work task over a data room of documents: 1️⃣ A fast and light pass, oftentimes using a free/OSS doc parsing tool. This can be cheaply run across 10-100-1k’s of files, and enables the agent to then do retrieval (e.g. grep, semantic) to find relevant subsets of context. 2️⃣ A “just-in-time” VLM-based pass. Once the agent finds the relevant pages of context, it will screenshot the documents can call its own VLM (or write code) to dissect the pages. The issue with only using VLM-based OCR tools over massive ad-hoc customer file dumps is that it’s slow and expensive. Doing JIT VLM OCR allows the agent to filter through the data cheaply, but still preserve accuracy for the context that’s needed for the task. The agent harnesses do two-pass document processing by default using off the shelf-tools: pdf2text as the first pass, and using itself (Opus 5) as the second pass. See the below video where Cowork runs over a bunch of PDFs to answer a question about a benchmark graph in the Kimi k3 paper. The main issues here with the “out of the box” doc processing these agents offer are: * Opus 5 is not the best VLM for OCR. It is also way too expensive at scale and lacks grounding * The OSS tools like pypdf, pdf2text, may not be versatile enough as the first pass. * The agent will write a lot of throwaway code to rewrite things an OCR tool would’ve provided out of the box, like chart processing, bounding boxes, confidence scores, leading to increased cost and speed. We have all the tools within LlamaIndex 🦙 to help any agent do two-pass document processing with higher accuracy and lower cost. 1️⃣ We have liteparse for the first pass - a free/OSS parser written in Rust that’s faster/more accurate than other OSS parsers, and supports 50+ document types 2️⃣ We have LlamaParse for the second pass - an agentic document engine that uses VLMs+harnesses to achieve SOTA in accuracy and cost across various doc parsing and extraction tasks. It can be called from any agent harness as an MCP or skill. It takes in page numbers as input, so that the agent can choose to run LlamaParse over a subset of the doc instead of the full doc as a “zoom-in” pass. Come check it out! LiteParse: LlamaParse: All the relevant docs, including MCP, are here:

Jerry Liu

23,239 views • 2 months ago