SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.21252 · 2026

EnSI-RAG: Entity-Structure-Indexed Retrieval-Augmented Generation for Long-Document Question Answering

Jiawei Han, Jiashuo Sun, Xuanyu Meng, Rajesh Parekh

arXiv · PDF · Open in the Atlas

Code that ran

20 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 20 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.21252.json · badge: /api/ran/2608.21252.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
RamonMeng/EnSI-RAG canonical (classifier label)
classifier basis: census
20 ran · 0 no recorded run
FunctionStatusWhere it lives
get_api_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/config.py
pointer only (licence: NONE) · get_code("78b1285843d93b6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

jsonable Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/document_preparation.py
pointer only (licence: NONE) · get_code("aa5b8ced6b97c1ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-loong-eval/ensi_loong/core/legal_passages.py
pointer only (licence: NONE) · get_code("70dc1e864dd30ccc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_company_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/passage_builder.py
pointer only (licence: NONE) · get_code("2e385f5f5c90302e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_company_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/record_builder.py
pointer only (licence: NONE) · get_code("fd547e9047bcc75b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/passage_builder.py
pointer only (licence: NONE) · get_code("9a8d149d70e54ea2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/qa_engine.py
pointer only (licence: NONE) · get_code("ac7180c15a4cb129")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/query_pipeline.py
pointer only (licence: NONE) · get_code("f22bc792262eb61e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/record_builder.py
pointer only (licence: NONE) · get_code("6158ac97be435254")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_space Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/passage_builder.py
pointer only (licence: NONE) · get_code("5dd1a77f6409253e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_space Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/qa_engine.py
pointer only (licence: NONE) · get_code("b09478a6a0d8e557")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_space Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/query_pipeline.py
pointer only (licence: NONE) · get_code("b4ec70f459d7a890")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_space Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/record_builder.py
pointer only (licence: NONE) · get_code("f50f83ae09df991f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

openai_api_key Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-loong-eval/ensi_loong/config.py
pointer only (licence: NONE) · get_code("6630fd1e7f7008e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_jsonl Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/qa_engine.py
pointer only (licence: NONE) · get_code("c24e644ee0c0b239")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resolve_path Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-loong-eval/ensi_loong/config.py
pointer only (licence: NONE) · get_code("eb0cbd52ed706ce9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sanitize_filename Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/document_preparation.py
pointer only (licence: NONE) · get_code("a87ffc279c389402")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

short_hash Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/document_preparation.py
pointer only (licence: NONE) · get_code("8b059ea024d8d27a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

stable_hash Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/query_pipeline.py
pointer only (licence: NONE) · get_code("8cf11ec6fb17e413")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

with_overrides Ran
ran; our contract draft was wrong, not the code
RamonMeng/EnSI-RAG/ensi-rag-financebench-eval/ensi_financebench/config.py
pointer only (licence: NONE) · get_code("fc2d6ce0aaac8fbf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, RamonMeng/EnSI-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_json 2 other papers
2 dated earlier
2512.00306 (2025-12)
VCWorld: A Biological World Model for Virtual Cell Simulation
2603.26332 (2026-03)
CALRK-Bench: Evaluating Context-Aware Legal Reasoning in Korean Law

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Question answering (QA) over long, connected documents remains challenging because relevant evidence may span multiple entities and their relationships. Existing retrievalaugmented generation (RAG) methods typically index documents as raw chunks and retrieve them through embedding similarity. Their performance degrades when chunk boundaries separate entities from supporting evidence or when a question requires multi-hop reasoning across the corpus. We propose EnSI-RAG (Entity-Structure-Indexed Retrieval-Augmented Generation), a framework that constructs a queryindependent, entity-centered index. Each record ⟨e, t, k, v⟩ represents an entity e, its type t, a semantic category k ∈ {property, relation, aspect}, and a value v, while retaining links to the original source passages. At query time, these records serve as retrieval handles, and an LLM synthesizes the retrieved passages into the final answer. This design separates evidence localization from answer synthesis while preserving traceable source evidence. Across Loong and Oolong, EnSI-RAG achieves an average accuracy of 78.24. Relative to the published baseline scores used as references, this is 6.62 points higher, suggesting its effectiveness across these settings. The code is available at https://github.com/RamonMeng/EnSI-RAG. Preprocessing (Query-independent corpus preprocessing) Online QA (after query arrives) Document Set DOCS 1 Passage Construction Convert raw document into a semantically contained passage. … 2 Information Extraction Create an entity-centered record from the passage.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.21252")
get_code_for_paper("2608.21252")
have("2608.21252")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.21252.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.21252.svg)](https://syntology.ai/paper/2608.21252)

Connect an agent — have() is free.