[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82994-en":3,"doc-seo-82994-105":29,"detail-sidebar-cat-0-en-105":95},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82994,7971461740886,"Theodore","https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2",8,"Research & Report","Inject or Navigate? Token-Efficient Retrieval for LLM Analysis of Transactional Legal Documents","Answering questions over transactional legal documents via repeated full-corpus injection into an LLM context maximizes recall but scales token usage with the corpus and suffers long-context degradation. The study replaces injection within a legal-document analysis system by evaluating structured retrieval against two modes over structure-aware chunking: embedding retrieval (navembed) and LLM navigation over a compact structured index (navindex). On a 20-question benchmark, semantic retrieval with reranking matches injection on 16/18 cases while using far fewer tokens and costs; navindex also reduces total token footprint, answering context size, and dollar cost. A caching crossover rule quantifies when cached injection remains cheaper and where uncertainty arises.","arXiv :2607 .05764v 1 [ cs .CL] 7 Jul 2026  \nInject or Navigate? Token-Efficient Retrieval for LLM Analysis of Transactional Legal Documents  \nMahmoud Hany* Mourad ElSheraey* Mahmoud Said* Peter Naoum  \n[hany@syntheia.app](hany@syntheia.app) [mourad@syntheia.io](mourad@syntheia.io) [mahmoud@syntheia.app](mahmoud@syntheia.app) [peter@syntheia.app](peter@syntheia.app)  \nSyntheia Pty Ltd  \nAbstract. Answering questions over a set of transactional legal documents is most simply done by injecting the whole corpus into the LLM’s context window on every query. That baseline maximises retrieval recall, but its token footprint scales with the corpus rather than the question, and long-context degradation scales with it. We report what it took to replace full-corpus injection in a legal-document analysis system, comparing it against two structured retrieval modes over our proprietary structure-aware chunking: embedding retrieval (navembed) and LLM navigation over a compact structured index (navindex) . On a 20-question benchmark with verified ground-truth answers, a position-bias-controlled, reference-anchored pairwise judge scored semantic retrieval with reranking tied with injection on 16 of 18 document-bound questions (injection preferred on 2) while attending to 17.3 × fewer input tokens (a general-text-embedding (GTE) configuration reaches 29.9 × at a lower tie rate); both modes were judged tied on the 2 out-of-scope controls. navindex was judged tied on all 18 at a 1.61 × smaller total token footprint, a ∼56 × smaller answering context, and 25% lower dollar cost. We derive a closed-form caching-crossover rule: cached injection is cheaper in dollars only while the corpus stays below roughly ten times the retrieval payload. Scope and uncertainty are quantified in Section 8 .  \n1 Introduction  \nLarge language models have made it practical to interrogate documents directly: a user poses a question in natural language and receives an answer grounded in the source text, with no hand-built query interface and no manual review. Few professions stand to benefit more from this than law, whose day-to-day work consists largely of locating, reconciling, and interpreting provisions spread across long, densely cross-referenced instruments. Syntheia provides the data layer for this workload: a structured document index over coordinated transaction sets (an original agreement plus its amendments, side letters, schedules, and disclosure documents) served through an API, and directly to LLMs such as Claude via the Model Context Protocol [1], for document tools to build on. This paper reports the evaluation that decided how retrieval over that index should work: what it took to replace full-corpus injection with structured retrieval without giving up answer quality, and what each alternative costs in tokens and dollars.  \nThe simplest method is to place the entire corpus in the model’s context window on every query. We call this approach inject, and we adopt it as our baseline deliberately, because it represents the upper bound on retrieval recall. Every clause, defined term, and crossreference is in context on every query, so there is nothing  \n∗ Equal contribution. Mahmoud Hany built and ran the evaluation program across all three phases and wrote the paper’s initial draft. Mourad ElSheraey revised the analysis, added the uncertainty quantification and threats-to-validity treatment, and prepared the final manuscript. Mahmoud Said implemented the crossencoder reranking pipeline and metadata fields, and contributed the cross-reference extraction. Peter Naoum implemented the initial codebase, and supervised the experimental work.  \nfor a retriever to miss and nothing to misconfigure. An alternative that a careful judge cannot distinguish from inject is therefore a stronger result than one that merely outperforms a lossy retriever; the corpus was deliberately sized to keep inject runnable (Section 3) .  \nTwo costs limit inject as the corpus grows. The t","cbCaiqmsfHkpMA3a","https://ap.wps.com/l/cbCaiqmsfHkpMA3a","pdf",649076,1,17,"English","en",105,"# Introduction\n## Baseline: full-corpus injection\n## Costs and retrieval challenges in legal domain\n## Structured retrieval setup and controlled chunking\n## Comparison 1: NavigateEmbeddings (navembed)\n## Comparison 2: Navigate-Index (navindex)","[{\"question\":\"为什么“注入整套语料（inject）”在法律文档问答中会产生高成本？\",\"answer\":\"inject会在每次查询都把整个语料放入上下文，token占用随语料规模增长，并且会受到长上下文信息衰减影响，同时法律文本的相关条款往往分散在多处。\"},{\"question\":\"文档研究评估了哪些结构化检索替代inject的方法？\",\"answer\":\"研究在相同的结构感知分块表示下比较两种结构化检索：navembed（基于嵌入相似度检索节点）以及navindex（在紧凑结构索引上进行LLM引导式导航）。\"},{\"question\":\"在基准评测中，结构化检索相对inject的质量与资源消耗如何？\",\"answer\":\"在20个问题的评测中，受控的语义检索与重排在16/18个“文档相关”问题上与inject打平，且输入token显著更少；navindex在所有18个问题上保持打平，同时进一步降低总token占用、回答上下文规模与成本。\"},{\"question\":\"研究如何判断何时缓存的inject在金钱上更划算？\",\"answer\":\"论文给出一个封闭形式的“缓存-交叉”规则：当语料规模低于大约为检索负载的十倍时，缓存注入在美元成本上更便宜，并且在相应部分量化了范围与不确定性。\"}]",1784184518,43,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":90,"head_meta":92,"extra_data":94,"updated_unix":27},"inject-or-navigate-token-efficient-retrieval-for-llm-analysis-of-transactional-legal-documents","",{"@graph":35,"@context":89},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/inject-or-navigate-token-efficient-retrieval-for-llm-analysis-of-transactional-legal-documents/82994/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81,85],{"name":72,"@type":73,"acceptedAnswer":74},"为什么“注入整套语料（inject）”在法律文档问答中会产生高成本？","Question",{"text":75,"@type":76},"inject会在每次查询都把整个语料放入上下文，token占用随语料规模增长，并且会受到长上下文信息衰减影响，同时法律文本的相关条款往往分散在多处。","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"文档研究评估了哪些结构化检索替代inject的方法？",{"text":80,"@type":76},"研究在相同的结构感知分块表示下比较两种结构化检索：navembed（基于嵌入相似度检索节点）以及navindex（在紧凑结构索引上进行LLM引导式导航）。",{"name":82,"@type":73,"acceptedAnswer":83},"在基准评测中，结构化检索相对inject的质量与资源消耗如何？",{"text":84,"@type":76},"在20个问题的评测中，受控的语义检索与重排在16/18个“文档相关”问题上与inject打平，且输入token显著更少；navindex在所有18个问题上保持打平，同时进一步降低总token占用、回答上下文规模与成本。",{"name":86,"@type":73,"acceptedAnswer":87},"研究如何判断何时缓存的inject在金钱上更划算？",{"text":88,"@type":76},"论文给出一个封闭形式的“缓存-交叉”规则：当语料规模低于大约为检索负载的十倍时，缓存注入在美元成本上更便宜，并且在相应部分量化了范围与不确定性。","https://schema.org",{"og:url":51,"og:type":91,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":93,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":96},[97,101,105,109,114,119,124,127,132,135,139],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":106,"show_sort_weight":107,"slug":108},"Exam",70,"exam",{"id":110,"doc_module":4,"doc_module_name":45,"category_name":111,"show_sort_weight":112,"slug":113},5,"Comic",60,"comic",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},6,"Technology",50,"technology",{"id":120,"doc_module":4,"doc_module_name":45,"category_name":121,"show_sort_weight":122,"slug":123},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":125,"slug":126},30,"research-report",{"id":128,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":130,"slug":131},9,"Religion & Spirituality",20,"religion-spirituality",{"id":130,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":130,"slug":134},"World Cup","world-cup",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":136,"slug":138},10,"Lifestyle","lifestyle",{"id":140,"doc_module":4,"doc_module_name":45,"category_name":141,"show_sort_weight":110,"slug":142},19,"General","general"]