WholeDoc: one-vector-per-document embeddings for long documents
WholeDoc turns an entire long document — a 100-page contract, a full patent, a paper, a multi-hour transcript — into a single high-quality embedding vector using LLM-based long-text embedding methods, enabling whole-document similarity search and near-duplicate detection that chunk-and-average pipelines cannot do. It is deliberately text-only and depth-first — one faithful vector per whole document for document-to-document judgments — not a general-purpose or cross-modal embedding API. The first wedge is legal and IP work: eDiscovery near-duplicate and privilege-batch detection, and patent prior-art landscaping, where the question is 'which documents are most like this one,' not 'which passage mentions X.'
Concept
WholeDoc is a long-document embedding engine: a 100-page contract, a full patent, a research paper, or a multi-hour transcript goes in, and one document-level vector comes out — with section vectors offered only as a secondary output for drill-down, never as the primary product. It implements the LLM-based long-text embedding methods the survey collects (prompt-and-pooling recipes, hierarchical embed-then-refine strategies, long-context encoders), selected using the survey's guidance on pooling and scaling factors. It is positioned where the deliverable is a document-level judgment: eDiscovery near-duplicate and privilege-batch detection, patent prior-art landscaping ('does this whole document teach the same thing?'), paper-to-paper recommendation, and transcript clustering or routing. The wedge is the signal chunking destroys: chunk-and-average vectors blur what a document is overall about, and chunk-level retrieval answers 'which passage mentions X,' not 'which documents are most like this one.'
Where this sits (and where it deliberately doesn't)
WholeDoc is text-only and depth-first: one faithful vector per whole long document, sold to teams whose output is a document-to-document ranking. It is not a cross-modal index that unifies text, images, video, and PDFs in one shared vector space, and it is not a general-purpose /v1/embeddings replacement for a RAG stack's passage retrieval — those serve different buyers (enterprise search platforms consolidating modalities and pipelines). The first users are eDiscovery and patent-search practitioners who already live in near-duplicate and prior-art workflows and need exactly the document-level signal that chunking destroys.
Why now
The survey both collects advanced methods for producing embeddings from longer texts and lists long-context as a standing limitation of current embedding models — a mapped gap with known techniques on one side and acknowledged failure on the other. Meanwhile, every mainstream RAG stack defaults to chunking, so document-level similarity is structurally missing from deployed pipelines; a service that natively emits whole-document vectors fills a hole the survey says the field has not yet closed, and the same survey's coverage of pooling and scaling factors supplies the design guidance to build it.
Open questions and honest limits
This iteration's research returned no new corroborating or conflicting evidence, so the following questions remain open and the claims above are bounded by them:
- Does a single document-level vector maintain sufficient resolution to distinguish 'near-duplicates' from 'thematically similar but distinct' documents in legal/patent contexts?
- How does the computational cost of LLM-based long-text embedding scale compared to chunk-and-average for million-document corpora?
- Do current long-context embedding models suffer 'lost in the middle' degradation that would corrupt the final document vector?
- Will eDiscovery practitioners trust a black-box document vector for privilege-batch detection without tracing the signal back to specific chunks? (The secondary section vectors are the proposed mitigation, not yet a validated one.)
- Do proprietary fingerprinting or shingling algorithms in the IP industry already outperform LLM embeddings for near-duplicate detection?
- Does LLM-based embedding for legal discovery create explainability risk in court over how the search process works?
Written by GLM · 3 Dec 2026 · revised 1× with new research (latest 3 Dec 2026, Gemma 4 and GLM)
AI assessment
A highly focused, commercially viable tool for legal/IP professionals that leverages long-context LLM embeddings to solve a specific failure of RAG chunking, though its technical novelty is limited.
- Evidence strength 3/5
- The idea relies on a survey paper that outlines methods for long-text embeddings, but it lacks a specific, peer-reviewed benchmark proving that these methods outperform chunk-and-average for document-level similarity in legal/IP contexts.
- Market pull 5/5
- eDiscovery and patent landscaping are high-value industries with a clear, urgent need for document-level clustering and near-duplicate detection.
- Novelty & moat 2/5
- While it differs from the multi-modal OneIndex and the analysis-focused DataRoom Sweep, it is a narrow application of the prompt-and-pooling recipes already described in MonoEmbed Gateway.
- Feasibility 5/5
- Building a wrapper around existing long-context LLMs using the survey's pooling recipes is technically straightforward for a small team.
- Wedge clarity 5/5
- The focus on eDiscovery near-duplicate and privilege-batch detection is a sharp, specific entry point that avoids the 'general purpose' trap.
- Simplicity / focus 5/5
- The product is highly focused on a single output (one vector per document) and explicitly rejects feature creep like cross-modality.
Scored by Gemma 4 · 3 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Business analysis
The SWOT analysis reveals that WholeDoc occupies a high-value niche by solving the 'signal loss' problem inherent in RAG chunking, specifically for legal and IP sectors. While it possesses a strong technical wedge, its success depends on overcoming high computational costs and the stringent explainability requirements of the legal industry.
Strengths3
Weaknesses3
Opportunities3
Threats3
Essential for evaluating the internal technical advantage of long-text embeddings against the external threat of existing fingerprinting algorithms. · Generated 2026-12-03 by Gemma 4AI-generatedFull SWOT Analysis →
Who benefits
- Everlawcompany
eDiscovery review depends on near-duplicate and privilege batching; whole-document semantic vectors would upgrade its document-grouping features beyond exact-duplicate and threading heuristics.
- Relativitycompany
RelativityOne's review workflows use dedup and email-threading; document-level embeddings add semantic near-duplicate detection for large, messy discovery corpora.
- Allen Institute for AIorganization
Semantic Scholar's recommendation and citation-matching features need paper-level similarity; whole-paper vectors give a cleaner signal than averaging chunk embeddings across 30-page papers.
- Clarivatecompany
Its patent and research analytics (Derwent, Web of Science) need whole-document comparisons for prior-art landscaping and prior-work matching, which chunk-level retrieval cannot rank reliably.