Papers
Topics
Authors
Recent
Search
2000 character limit reached

Corpus Interaction Engine Overview

Updated 5 July 2026
  • Corpus Interaction Engine is a corpus-facing interaction layer that transforms raw text into an executable, inspectable, and persistent workspace.
  • It integrates diverse paradigms such as shell-native operations, structured querying, and graph-centered approaches to enhance corpus exploration.
  • Empirical evaluations demonstrate improved retrieval accuracy, controlled evidence resolution, and efficient scaling across large document sets.

A Corpus Interaction Engine (CIE) is a corpus-facing interaction layer in which the corpus is exposed as an executable, inspectable, and persistent substrate rather than only as a ranked-results backend. In the recent literature, this term covers shell-based direct corpus interaction, retriever-steered local workspaces, structured corpus-query interfaces such as CQL, graph- and ontology-organized corpus layers, OCR-centered annotation-and-search systems, and even multimodal engines that transform raw video corpora into metric interaction representations (Salemi et al., 28 May 2026, Lu et al., 12 Jun 2026, Zhuang et al., 5 Jun 2026, Hui et al., 31 Oct 2025).

1. Definition and conceptual boundaries

A core definition appears in work on GrepSeek: a CIE is “a retrieval substrate where the agent treats the corpus itself as the environment and executes explicit, composable search operations” such as shell pipelines over raw text files (Salemi et al., 28 May 2026). Later formulations refine that idea in two directions. RISE argues that retrieval for agentic search should construct an “interaction space,” namely a persistent bounded subset of the corpus that can be repeatedly explored with tools, rather than merely returning passages that fit into the context window (Zhuang et al., 5 Jun 2026). Interact-RAG describes the CIE as the layer that “dismantles the black-box nature of retrieval” by exposing parameterized actions over dense, sparse, and entity-anchored retrieval processes (Hui et al., 31 Oct 2025). In parallel, text-to-CQL work treats the engine as an executable interface over linguistically annotated corpora, where natural-language intents are translated into formal Corpus Query Language statements over token attributes, positional operators, and structural scopes (Lu et al., 2024).

These formulations delimit the concept against two narrower baselines. First, a conventional retriever-only system exposes only ranked lists, snippets, or bounded document views; this is scalable, but it restricts reorganization, cross-document verification, and span-level inspection (Lu et al., 12 Jun 2026). Second, unbounded direct shell access exposes high-resolution evidence, but broad scans over the full corpus become slow and unstable as corpus size grows (Li et al., 3 May 2026). A CIE, in the strongest recent sense, is therefore not simply a retriever and not simply a shell wrapper. It is an interaction architecture that decides what part of the corpus is visible, how that visible state is represented, and what executable operations are permitted over it.

This suggests that “Corpus Interaction Engine” designates a family of corpus-native interaction abstractions rather than a single canonical system.

2. Major interface paradigms

The literature now contains several distinct CIE paradigms.

Paradigm Interaction substrate Representative formulation
Shell-native direct corpus interaction Raw files plus rg/grep/find/read/bash pipelines DCI and GrepSeek (Li et al., 3 May 2026, Salemi et al., 28 May 2026)
Retriever-steered workspace interaction Persistent workspace WW materialized from a hidden corpus DR-DCI and RISE (Lu et al., 12 Jun 2026, Zhuang et al., 5 Jun 2026)
Retrieval-control primitives Action primitives over dense, sparse, fusion, and document filters Interact-RAG (Hui et al., 31 Oct 2025)
Structured corpus querying CQL over token attributes, regex, quantifiers, and within scopes Text-to-CQL (Lu et al., 2024)
Relation- and ontology-centered organization Context graphs and ontological corpus graphs CORG and CORTEX (Lee et al., 25 Apr 2025, Gan et al., 29 Jun 2026)
OCR- and multimodal corpus interaction Annotated OCR layers, search overlays, 4D HOI states Jochre 3 and EgoInfinity (Urieli et al., 14 Jan 2025, Wang et al., 16 Jun 2026)

Shell-native systems maximize interface resolution. They expose exact lexical constraints, conjunctions of weak clues, local context checks, and multi-step hypothesis refinement through executable commands over the raw corpus. This is the central claim of direct corpus interaction work, where the agent composes search primitives and bounded reads instead of issuing a single top-kk retrieval request (Li et al., 3 May 2026).

Workspace-based systems keep the resolution benefits of local corpus operations while reintroducing retrieval as a scaling mechanism. DR-DCI treats retrieval as an agent-callable action that materializes ranked candidates into an evolving workspace; RISE similarly insists that retrieval should define the workspace boundary and that the objects inside that boundary should be processed for interaction, for example by prepending line-numbered tables of contents and section anchors (Lu et al., 12 Jun 2026, Zhuang et al., 5 Jun 2026).

Other CIEs change the interaction substrate instead of the retrieval boundary. In text-to-CQL systems, the operative object is not a materialized file set but a linguistically annotated corpus queried through a formal language (Lu et al., 2024). In CORG and CORTEX, interaction is mediated by relation graphs and ontology layers that reorganize context before answer generation or cross-domain retrieval (Lee et al., 25 Apr 2025, Gan et al., 29 Jun 2026). In Jochre 3 and EgoInfinity, the engine is built around transformed corpus representations—Alto XML OCR layers aligned to page images, or metric 4D hand-object interaction states aligned to arbitrary RGB video—so that users or agents can search, verify, correct, and reuse evidence in situ (Urieli et al., 14 Jan 2025, Wang et al., 16 Jun 2026).

3. Recurrent architectural structure

Despite their diversity, CIEs recur around a small set of architectural layers. One layer performs corpus access or corpus transformation: BM25 or dense retrieval over a hidden corpus, shell execution over raw files, OCR over page images, graph construction over retrieved contexts, or 4D reconstruction over video. A second layer exposes interaction primitives to an agent or user. A third layer maintains persistent intermediate state: a workspace, a graph, an ontology, an OCR layer, or a time-aligned multimodal scene.

DR-DCI makes this layering explicit. Its modules are an Agent/Planner, Retrievers, a Dynamic Workspace Store, a DCI Operations Executor, a Ranked Preview Subsystem, Inter-Document Reasoning/Verification Tools, Context Reset with Workspace Preservation, and Logging/Metrics (Lu et al., 12 Jun 2026). GrepSeek adds a semantics-preserving sharded-parallel execution engine and a trajectory generation/verification pipeline built from an answer-aware Tutor, an answer-blind Planner, and a Trajectory Coherence Judge (Salemi et al., 28 May 2026). Interact-RAG separates a Controller/agent, a Corpus Interaction Engine, an index/storage layer with ChromaDB and SQLite FTS5, retrievers for semantic and exact search, weighted fusion, context-shaping filters, and a standardized function-calling interface (Hui et al., 31 Oct 2025).

Graph-centric CIEs instantiate the same pattern in a different form. CORG proceeds through retrieval or context selection, Graph Construction, Reranking/Grouping, and Aggregation; the graph constructor labels pairwise relations among contexts, the reranker forms consistent groups, and the aggregator merges groupwise answers with conflict flags when necessary (Lee et al., 25 Apr 2025). CORTEX centers the architecture on the Ontological Corpus Graph, a three-layer heterogeneous structure consisting of a quality-refined content layer, a hierarchical ontology layer, and a cross-domain alignment layer that binds documents, keywords, and concept chains (Gan et al., 29 Jun 2026).

Corpus-transformation engines exhibit analogous decomposition. Jochre 3 comprises the Jochre Alto Editor for corpus annotation, an OCR layer generation pipeline, and a customizable OCR search engine built on Apache Lucene and a Vue.js client (Urieli et al., 14 Jan 2025). EgoInfinity is organized into perception, segmentation, reconstruction, interaction-aware refinement, cross-module metric calibration, and robot retargeting modules, all operating over a web-scale video corpus (Wang et al., 16 Jun 2026).

A plausible implication is that the core architectural invariant of a CIE is not the specific retrieval algorithm but the existence of a persistent, operable corpus state that survives across interaction turns.

4. Operational mechanisms and formal models

The simplest CIE operations are shell-native. GrepSeek and DCI expose rg, grep, awk, sed, cut, sort, uniq, wc, head, tail, and bounded reads; typical patterns include exact matching, cascaded lexical narrowing, counting, and span verification (Salemi et al., 28 May 2026, Li et al., 3 May 2026). This interface is intentionally compositional: a pipeline can first isolate a rare entity, then constrain it by a bridge phrase, then cap the visible output with head -n.

Retriever-steered engines formalize corpus exposure as workspace growth. DR-DCI defines the update

Wt+1=WtR(rt,kt),ΔWt=R(rt,kt)Wt,W_{t+1} = W_t \cup R(r_t, k_t), \qquad \Delta W_t = R(r_t, k_t)\setminus W_t,

where retrieval over the hidden corpus supplies a deduplicated increment to the visible workspace and the agent then performs DCI operations only over WtW_t (Lu et al., 12 Jun 2026). RISE enforces the same principle procedurally: search(queries) is the only operator that can change the working set, while bash and read operate only inside that set (Zhuang et al., 5 Jun 2026).

Interact-RAG makes retrieval manipulation itself the action space. Its primitives are semantic_search(query_s), exact_search(keywords_e), weighted_fusion(w_s, w_e), entity_match(entity), include_docs(doc_ids), exclude_docs(doc_ids), and adjust_scale(n). Candidate rankings are combined by

s(d)=wss~semantic(d)+wes~exact(d),s(d)=w_s \cdot \tilde{s}_{\mathrm{semantic}}(d)+w_e \cdot \tilde{s}_{\mathrm{exact}}(d),

which turns dense recall and exact lexical anchoring into explicit controllable variables rather than hidden retriever internals (Hui et al., 31 Oct 2025).

Structured-query CIEs encode interaction in a different formal language. Text-to-CQL systems map natural-language descriptions into token constraints such as [lemma="teapot"], regex filters such as pos="N.*", quantifiers such as []{0,5}, named-token bindings, and structural scopes such as within <s/> (Lu et al., 2024). The problem is not document selection but executable token-sequence specification.

Graph- and ontology-based CIEs further extend the formal layer. CORG classifies inter-context relations as ambiguous, distracting, counterfactual, or duplicated, then uses those labels to deduplicate, separate conflicts, and pluralize questions when multiple answers are possible (Lee et al., 25 Apr 2025). CORTEX defines an Ontological Corpus Graph

G=LC,LO,LA,\mathcal{G}=\langle \mathcal{L}_C,\mathcal{L}_O,\mathcal{L}_A\rangle,

where the content layer, hierarchical ontology, and alignment layer are joined by document–concept, document–keyword, and keyword–concept edges with explicit scoring functions such as cosine-based document–concept association and TFS keyword–concept weights (Gan et al., 29 Jun 2026).

5. Empirical behavior and evaluation

The most mature empirical record concerns agentic search. DR-DCI reaches 71.2% accuracy on BrowseComp-Plus and 73.3% with workspace-preserving context reset; in corpus-scaling experiments it remains effective from 100K to 10M documents, and on a 20M-scale Wiki-18 QA setting it achieves an average score of 63.0 across six benchmarks (Lu et al., 12 Jun 2026). A related DCI study reports that, with a Claude Sonnet 4.6 backbone, replacing Qwen3-Embedding-8B retrieval with DCI raises BrowseComp-Plus accuracy from 69.0% to 80.0% and reduces cost from $1,440 to$1,016; the same work reports 83.0% average accuracy for DCI-Agent-CC on six knowledge-intensive QA benchmarks and 68.5 average NDCG@10 on BRIGHT and BEIR subsets (Li et al., 3 May 2026).

These gains do not remove the scaling problem. RISE shows why boundary construction matters: on BrowseComp-Plus with the 100K corpus and gpt-5.4-mini, RISE achieves 78% judged accuracy at $0.28 per query, matching pure-shell DCI’s 78% accuracy at roughly one quarter of the per-query cost; at 1M documents, RISE-BM25 reaches 81%, whereas DCI on gpt-5.4-nano degrades to 60% with 33 of 100 wall-clock failures [2606.06880]. GrepSeek supplies a complementary result: a trained shell-based search agent attains the strongest overall micro-average token-level$F_1at0.5691,anEMmicroaverageof0.4948,andacceleratesshellretrievalbyuptoat 0.5691, an EM micro-average of 0.4948, and accelerates shell retrieval by up to7.6\times$ while preserving byte-exact equivalence with sequential execution (Salemi et al., 28 May 2026).

Outside open-domain QA, the same pattern appears in other corpus modalities. In text-to-CQL, GPT-4 with 3-shot prompting reaches, on Chinese, EM 67.49, VA 90.28, EX 77.85, and CQLBLEU 91.83; on English it reaches EM 58.24, VA 89.74, EX 65.53, and CQLBLEU 89.93 (Lu et al., 2024). In OCR-centered corpus interaction, Jochre 3 attains a CER of 1.5% on its Yiddish test corpus, with BoW cosine similarity 0.978 and 6.3s/page analysis time, and it was used to analyze the full 660M word Yiddish Book Center (Urieli et al., 14 Jan 2025). In scientific-literature exploration, a sentence-level challenge-and-direction engine helped researchers find, on average, 4.46 challenges versus 2.24 with PubMed and 6.43 directions versus 2.03 with PubMed in a 3-minute-per-query user study (Lahav et al., 2021).

Taken together, these results indicate that CIE evaluation is multi-dimensional. Accuracy alone is insufficient; the literature repeatedly measures latency, tool usage, workspace size, coverage or retrieval recall into the visible workspace, localization or span resolution, OCR error, syntactic validity of generated formal queries, and human task utility.

6. Applications, trade-offs, and open issues

CIEs now span several application regimes. In agentic search and retrieval-augmented reasoning, they expose search, filtering, comparison, and verification as first-class actions rather than fixed pre-reasoning steps (Hui et al., 31 Oct 2025). In corpus organization, CORG groups interrelated contexts and CORTEX reorganizes a 24.14B-token refined corpus into an Ontological Corpus Graph that supports domain-aware and cross-domain search (Lee et al., 25 Apr 2025, Gan et al., 29 Jun 2026). In historical-text digitization, Jochre 3 couples annotation, OCR generation, and searchable page-image overlays, while OCR workflows for Tamil, Sinhala, and English legacy-font PDFs use fine-tuned Tesseract models to construct a trilingual document-aligned corpus of 185.4k, 168.9k, and 181.04k sentences respectively (Urieli et al., 14 Jan 2025, Vasantharajan et al., 2021). In multimodal interaction corpora, EgoInfinity turns arbitrary RGB web videos into metric 4D hand-object interaction states and retargetable robot trajectories (Wang et al., 16 Jun 2026). Earlier multimodal annotation work on receptionist encounters likewise frames a CIE as a system that ingests, synchronizes, and models time-aligned behavioral annotations for analysis and policy design (Makatchev et al., 2012).

Several misconceptions are addressed directly by this literature. A CIE is not necessarily shell-only: text-to-CQL, CORG, CORTEX, Jochre 3, and EgoInfinity are all corpus interaction engines under their respective interaction substrates (Lu et al., 2024, Lee et al., 25 Apr 2025, Gan et al., 29 Jun 2026, Urieli et al., 14 Jan 2025, Wang et al., 16 Jun 2026). Nor is a CIE necessarily anti-retrieval: DR-DCI, RISE, and Interact-RAG all reintroduce retrieval as a boundary constructor or controllable action rather than eliminating it (Lu et al., 12 Jun 2026, Zhuang et al., 5 Jun 2026, Hui et al., 31 Oct 2025). Conversely, higher retrieval recall alone does not solve evidence resolution; DR-DCI, CORG, and challenge-and-direction search all emphasize that reorganization, span verification, and context grouping remain necessary after candidate discovery (Lu et al., 12 Jun 2026, Lee et al., 25 Apr 2025, Lahav et al., 2021).

The main limitations are correspondingly structural. Raw DCI suffers from latency growth, tool-budget saturation, and unstable full-corpus scans as the corpus grows (Li et al., 3 May 2026). Retriever-steered workspaces depend on the quality of the boundary constructor and on the agent’s ability to interleave pull and local operations effectively (Lu et al., 12 Jun 2026). CIEs that rely on LLM relation judgments or ontology evolution can propagate misclassification or ontology drift (Lee et al., 25 Apr 2025, Gan et al., 29 Jun 2026). OCR-centered engines inherit annotation subjectivity and corpus-format constraints, while video-centered engines such as EgoInfinity currently target approximately static cameras and do not recover exact tactile contact or no-slip constraints (Urieli et al., 14 Jan 2025, Wang et al., 16 Jun 2026).

This suggests a general trend: the contemporary CIE is converging toward bounded yet high-resolution interaction spaces, explicit corpus transformations that preserve verifiability, and interfaces that let agents manipulate retrieval, structure, and evidence rather than merely consume ranked outputs.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Corpus Interaction Engine.