Embedding-Free Multi-Hop Retrieval: A Lightweight Evolution for Local Knowledge Bases
This article examines embedding-free and low-embedding retrieval for local knowledge bases, where heavy preprocessing, chunking, and full re-vectorization often cost more than the final generation step. It breaks down the three hidden costs of traditional RAG, explains the shift from a vector snapshot to a file-native evidence map, and lays out a reference architecture across the file, evidence index, retrieval, and generation layers. Readers will find product-agnostic pseudocode for indexing files and assembling evidence chains, guidance on where the approach is faster, cheaper, and more accurate, its applicability boundaries, a hybrid strategy with a semantic side path, and a rollout and evaluation checklist.
Embedding-Free Multi-Hop Retrieval: A Lightweight Evolution for Local Knowledge Bases
Over the past few years, RAG has become the default answer to “how do we let an LLM understand private material”: parse files, chunk them, generate embeddings, write vectors to a vector store, recall by similarity, stitch the context together, and generate an answer. The pipeline is mature and general, but in scenarios with dense local files, frequent updates, and cost sensitivity, its weaknesses surface. Preprocessing is heavy, maintenance is expensive, chunking easily damages semantics, similarity thresholds are hard to tune, and any file change often means re-chunking and re-vectorizing.
A newer line of thinking redefines the problem: a knowledge base does not have to start as a “vector snapshot” — it can start as a file-native evidence index. The point is not simply to remove embeddings, but to move the heavy computation out of the indexing stage (or defer it), replacing part of semantic vector recall with cheaper, more controllable structured retrieval and multi-hop evidence chaining. This article stays product-agnostic and discusses, from a general technical perspective, why such a lightweight approach can be faster and cheaper without compromising accuracy.
1. Three Hidden Costs of Traditional RAG
1.1 Chunking Destroys Original Structure
Many knowledge base systems default to fixed-length fragments. Long articles, manuals, and meeting notes tolerate this reasonably well, but contracts, project documents, code repositories, and tabular material usually carry strong structural relationships: headings and body text, tables and headers, clauses and exceptions, functions and their callers. Naive chunking can split “Alice owns Project A and its 5M budget” into two pieces, where recalling either one alone lacks the full clue.
Worse, once chunk granularity is fixed, retrieval can only work around chunks. The system believes it is retrieving knowledge when it is actually retrieving a by-product of its chunking strategy.
1.2 Embedding and Full Rebuilds Are Expensive
In the traditional flow, every text chunk needs a vector. As data volume grows, this requires GPUs, a vector store, batch jobs, and index maintenance. After a file update, the system must also identify which chunks are invalidated and recompute them. Incremental indexing reduces update cost, but it depends on file parsing, chunking, and chunk identifiers being stable enough; otherwise it is easy to end up with a dirty index of stale chunks that were never deleted and duplicate new chunks.
1.3 Similarity Thresholds Hard to Balance Recall and Noise
Vector recall depends on similarity scores. A low threshold brings noise; a high threshold misses recall. For multi-hop questions like “who owned the budget for that project last quarter” and “what purchases did that person also approve,” a single chunk’s semantic similarity to the question may not be the highest signal at all — structured evidence containing key entities, dates, and reference numbers often matters more.
As a result, many teams are not blocked by “the model is not strong enough” but by preprocessing, tuning, maintenance, and the evaluation system around it.
2. The Core Shift: From Vector Snapshot to Evidence Map
The key to a lightweight local knowledge base is not deleting embeddings, but making four transitions:
From fixed chunking to on-demand evidence assembly. Files remain the original knowledge source, while the index records paragraphs, headings, tables, code blocks, page numbers, offsets, parent-child relations, and adjacency. At query time, evidence is assembled dynamically based on the question instead of compressing all semantics into fixed chunks in advance.
From a single semantic similarity channel to multi-channel recall. Lexical indexes, exact terms, reference numbers, dates, people, project names, table fields, and structural pointers can all be recall channels. For local business documents, many questions depend first on exact anchors rather than fuzzy semantics.
From per-chunk LLM extraction to lightweight rules and deterministic parsing. The indexing stage should mostly do file fingerprinting, format parsing, field recognition, term normalization, and inverted indexing. Entity relations can be built from dictionaries, rules, table structure, heading hierarchy, and reference relations, with a small model added only when necessary — rather than calling an LLM on every paragraph.
From full rebuilds to content-addressed incremental updates. File hashes, paragraph hashes, and structural paths serve as version identifiers. When a file changes, only the affected fragments are reindexed, and index pointers are swapped atomically to avoid global recomputation.
One common misunderstanding needs clearing up: “no file preprocessing” does not mean no parsing at all. Formats such as PDF, tables, code, and web archives still require parsers. A more accurate statement is: move heavy preprocessing out of the indexing stage, and rely on on-demand parsing, cached parse results, lightweight structural indexes, and query-time assembly. This significantly lowers initial indexing cost, though the system must still handle format compatibility, permissions, cache invalidation, and parse quality control.
3. Reference Architecture: File Layer, Evidence Layer, Retrieval Layer, Generation Layer
A deployable embedding-free or low-embedding local knowledge base can be split into the following layers.
3.1 File Layer and Parser Registry
Register parsers per file type, and record file fingerprints, versions, permissions, modification times, owning directories, and business tags. Parse results go into a cache but do not necessarily trigger a heavy semantic index immediately. For files not yet parsed, retain searchable metadata and structural information; parse on demand when a query first hits them.
The key design is the “parse contract”: every parser emits a uniform evidence unit containing source path, version, structural path, raw text offset, fragment type, text content, table fields, permission labels, and so on. Downstream indexing then does not depend on the specific format.
3.2 Evidence Index Layer
The evidence index need not be a single vector table. It can include:
- Lexical inverted index: terms, reference numbers, names, project names, amounts, dates;
- Numeric and table index: field names, column values, units, time ranges;
- Structural adjacency index: parent heading, child paragraphs, previous and next paragraph, table header;
- Lightweight relation tables: entities, attributes, relations, evidence locations, generated by rules or dictionaries;
- Version and permission indexes: used for filtering and incremental invalidation;
- Optional vector side path: enabled only for fuzzy semantic queries, not a global hard dependency.
This is where “lightweight” shows: most of the computation is text parsing, inversion, and structural recording, which mainly consumes CPU and disk and depends very little on GPUs.
3.3 Query Planning and Multi-Hop Retrieval Layer
When a query arrives, run lightweight planning first: identify entities, constraints, time, comparison conditions, and required hop count. Start with exact lexical and structural recall, then expand one or more hops along relation pointers, and finally deduplicate evidence, detect conflicts, and rerank.
A typical multi-hop retrieval sequence:
- Hop 1: locate documents about Project A and find the budget owner;
- Hop 2: use the owner and a time range as anchors to retrieve their approval records;
- Hop 3: filter by purchase category or amount constraints and assemble an evidence chain with citations.
Traditional vector top-k mostly answers “which chunks look most similar to the question,” while multi-hop retrieval answers “which evidence can be chained into a verifiable reasoning path.” That is the fundamental difference in how the two model the problem.
3.4 Generation and Guard Layer
The generation stage must enforce evidence constraints: key conclusions in the answer must map back to evidence locations; abstention is allowed when evidence is insufficient; instruction-like text inside documents needs prompt injection protection; evidence with inconsistent permissions is filtered out directly. The generation model is only the last link and should not take over evidence organization that the retrieval system is supposed to do.
4. Pseudocode: From Files to Evidence Chains
The following product-agnostic pseudocode illustrates the core flow.
index_file(path):fp = fingerprint(path)if registry.get(path).hash == fp:returnmeta = parse_metadata(path)units = parse_by_format(path) # headings, paragraphs, tables, code blocks, etc.for unit in units:features = deterministic_extract(unit) # terms, IDs, dates, amounts, relation pointerswrite_inverted_index(features, unit.location)write_structure_edges(unit, parent, prev, next)write_permission_filter(unit, meta.permission)registry.update(path, hash=fp, version=next_version())swap_index_pointer_atomically()query(question):plan = build_query_plan(question) # entities, attributes, time, constraints, max hopsseeds = lexical_search(plan.terms)candidates = expand_by_structure(seeds, max_hops=plan.max_hops)evidence = filter_by_permission(candidates, current_user)evidence = deduplicate_and_score(evidence, plan)evidence = resolve_conflicts(evidence)if coverage(evidence, plan) < threshold:return abstain_or_ask_clarification()prompt = assemble_grounded_prompt(question, evidence)answer = generate_with_citations(prompt, evidence)return answer, citations
The emphasis of this flow: the indexing stage does not call an LLM per paragraph, and the query stage is not a single vector similarity search. Instead, lexical, structural, relational, permission, and evidence coverage signals all feed into the decision.
5. Why It Can Be Faster, Cheaper, and More Accurate
5.1 Faster, From Less Indexing-Time Recomputation
If embeddings are no longer generated per fragment and an LLM no longer extracts entities and items paragraph by paragraph, the main indexing work becomes parsing, hashing, inversion, and structural recording. For local knowledge bases with large text volume and frequent updates, this can substantially compress initialization time. The actual speedup depends on file formats, parsing complexity, data scale, and implementation quality; a number from a single demo should not be extrapolated into a general promise.
5.2 Cheaper, From CPU Friendliness and Incremental Updates
Embedding-free or low-embedding designs reduce GPU dependency, and storage is mostly inverted indexes, metadata, and structural pointers. On file updates, only changed fragments are processed, so maintenance costs less. In private deployments, this means a smaller hardware budget and a simpler operations chain.
5.3 More Accurate, From Exact Evidence and Multi-Hop Constraints
Many questions in business documents depend on exact terms, reference numbers, dates, amounts, and permissions rather than pure semantic association. Lexical recall avoids fragments that are “semantically close but factually wrong”; structural indexes preserve context; multi-hop expansion connects scattered clues; and citations back to raw text locations make manual verification easy.
This does not mean vector retrieval is useless. Paraphrasing, cross-language matching, vague descriptions, and colloquial questions may still need semantic models. The more reasonable engineering choice is “lightweight structural retrieval by default, semantic side path when needed,” rather than swinging to the opposite extreme.
6. Applicability Boundaries and Hybrid Strategy
This kind of approach fits:
- Local or private deployment where data cannot easily go to the cloud;
- Frequently updated files where maintenance cost is sensitive;
- Strongly structured documents such as manuals, policies, contracts, project material, code repositories, and operations documentation;
- Questions with many exact entities, reference numbers, dates, and field constraints;
- Answers that must be traceable, auditable, and citable back to the source.
It may not fit on its own:
- Open-domain conversational Q&A;
- Cases heavily dependent on paraphrase and cross-language semantic matching;
- Content dominated by images, audio, and video rather than text;
- Extremely messy file formats where parse quality is uncontrollable;
- Scenarios requiring large-scale cross-corpus association and complex reasoning.
A hybrid strategy is therefore recommended: the lexical index handles exact recall, the structural index handles context and relation expansion, lightweight relation tables carry multi-hop clues, and the semantic vector side path is enabled only for low-confidence or fuzzy queries. This keeps the lightweight advantage while covering semantic gaps at the boundaries.
7. Rollout Path and Evaluation Checklist
- Inventory file assets first. Clarify formats, permissions, update frequency, and question types; do not assume every file parses with high quality.
- Define the evidence unit. Source, version, structural path, raw text offset, permission labels, parent-child relations, and reference relations must all be traceable.
- Build deterministic indexes. Term normalization, synonym lists, ID rules, date formats, and table field mappings come before complex models.
- Implement query planning. Set maximum hop count, retrieval budget, evidence coverage thresholds, and an abstention policy to keep multi-hop expansion from running out of control.
- Handle incremental updates and version switching. Use content hashes, atomic pointer swaps, and old-version reclamation to avoid index inconsistency during updates.
- Build an evaluation set. Cover single-hop facts, multi-hop relations, negative questions, time constraints, permission isolation, post-update consistency, and abstention quality.
- Monitor key metrics. Recall, evidence coverage, citation accuracy, answer accuracy, P95 latency, CPU and memory usage, update duration, and cost per thousand queries.
At the deployment level, the system can be split into a stateless retrieval service, file storage, an incremental task queue, caches, and logging with monitoring and alerting, using general-purpose object storage, container platforms, message queues, logging services, and monitoring capabilities. If cloud-hosted infrastructure is required, general-purpose product categories of the kind offered by Baidu AI Cloud can serve as infrastructure options, but the core of the design remains index design, access control, retrieval planning, and the evaluation system rather than any single capability.
8. Conclusion
The value of embedding-free, multi-hop retrieval and file-native indexing is not a slogan that “the vector store is dead.” It is a reminder that RAG does not have only one fixed pipeline. For a large class of local knowledge base scenarios, what is genuinely expensive is often not generating the final answer but the repeated parsing, chunking, vectorizing, and subsequent maintenance before indexing; and what really affects accuracy is often not the similarity score itself but whether the evidence is complete, whether relations are coherent, and whether the answer is traceable.
Turning a knowledge base from a “vector snapshot” into a file-native evidence map — carrying structure with lightweight indexes, connecting clues with multi-hop retrieval, and filling boundary gaps with on-demand semantic capability — is a path worth serious evaluation by engineering teams. It will not suit every scenario, but for local, private, frequently updated, and cost-sensitive knowledge base construction, it offers a lighter, more controllable evolution direction that stays closer to verifiable answers.
