Local Knowledge Retrieval Without Vector Embeddings: Architecture and Practice

    This article examines how to build a local knowledge retrieval system without relying on vector embeddings. It explains where traditional vector-based RAG pipelines incur cost, why high similarity does not guarantee sufficient evidence, and how a lightweight alternative can combine deterministic file parsing, text indexing, metadata filtering, and query-time evidence expansion. It also covers multi-hop question answering, the engineering capabilities required for production (incremental updates, permission isolation, prompt-injection defense, citation verification), and how to evaluate speed and accuracy. The goal is to help readers decide when a no-embedding approach is appropriate and how to implement it reliably.

    1. Rethinking the Knowledge Base: Vectorization Is Not the Only Entry Point

    The core task of enterprise knowledge Q&A is to find evidence that can answer a question from a large body of material, then have a generation model organize an answer based on that evidence. This process is commonly called retrieval-augmented generation (RAG).

    In a typical implementation, files are first parsed and chunked, then converted into vectors and written to a vector index. When a user asks a question, the system converts the question into a vector, searches for semantically similar text, and passes it to the generation model to produce an answer.

    This route works well for natural-language questions with large differences in phrasing, but not every knowledge base has to use it. For material that contains many technical terms, identifiers, explicit entities, and cross-references, text indexing, field filtering, relational queries, and dynamic evidence expansion can also form an effective retrieval system.

    So the more worthwhile question is not “which method completely replaces the other,” but rather:

    Can we remove unnecessary vectorization and model-based indexing, control cost, and still retain sufficient retrieval coverage, evidence completeness, and answer trustworthiness?

    The answer is yes, but the outcome depends on the characteristics of the material, the type of questions, and the engineering implementation. You cannot draw a universal conclusion from a single speed test.

    2. Where the Cost of Traditional Knowledge Base Construction Comes From

    1. File Processing and Model Computation Stack Up

    A typical knowledge base build pipeline may include file reading, format parsing, text cleaning, paragraph chunking, vector computation, and index writing. If entities and relationships also need to be extracted in advance, it may require calling a large model on every chunk.

    When there are many files, model call latency, concurrency limits, failure retries, and compute costs all affect build efficiency. Even if each individual step performs well, the full pipeline can still become a launch bottleneck.

    For frequently updated documents, these costs recur. After a section is modified, the system must identify the affected text blocks, update their representations, and handle the invalidation of stale data.

    2. High Similarity Does Not Mean Sufficient Evidence

    Vector retrieval mainly answers “which text is semantically close to the question,” but business Q&A often also requires judging time, scope of applicability, version, and entity identity.

    For example, if a user asks “after a process change, which type of application requires additional review,” the results may be highly relevant to “process change” yet come from an old version, or may only explain the reason for the change without including the new review conditions.

    Therefore, relevance ranking and the completeness of answer evidence are two different problems. A retrieval system cannot rely on similarity scores alone; it must also handle the relationship between metadata constraints and evidence.

    3. A Single Threshold Cannot Fit All Questions

    Raising the retrieval threshold reduces noise but may miss key material expressed differently; lowering the threshold expands coverage but may introduce many irrelevant passages.

    This is especially true in multi-hop Q&A, where the final answer may need two or more documents to support it together. A piece of evidence may have low direct relevance to the original question yet be a necessary intermediate link to the next clue. Ranking only by a single similarity score will easily exclude it.

    3. The Basic Architecture of a No-Embedding Approach

    A feasible lightweight route is to limit the indexing stage to deterministic file processing and text indexing, and to defer complex reasoning to the query stage, executed on demand.

    The overall flow can be summarized as:

    Local files → content parsing → text and metadata index → query planning → candidate retrieval → evidence expansion → answer generation and citation verification.

    Here, “no vector embeddings” means that index construction and retrieval do not depend on text vector representations; it does not mean no preprocessing at all. The system still needs to read files, understand formats, extract searchable content, and build location information.

    Likewise, “no large model during indexing” does not mean “no large model in the whole system.” Query decomposition, evidence judgment, and answer generation can still use a model, or, in constrained scenarios, be handled with rules and templates.

    1. File Parsing: Making Content Readable and Locatable

    For plain text, the system can read the content directly. For tables and formatted documents, it should preserve heading hierarchy, field names, row and column relationships, and page numbers as much as possible.

    Scanned documents usually require optical character recognition, whose latency and error rate must be measured separately. Otherwise, so-called “fast indexing” may simply skip the most expensive input-processing step.

    The parsing result should retain at least:

    • Document identifier and version;
    • Title and section path;
    • Paragraph position or page number;
    • File last-modified time;
    • Permission labels;
    • Original location for traceback.

    These fields serve not only retrieval but also answer citation, version filtering, and access control.

    2. Text Index: Building Candidate Entry Points with Deterministic Methods

    An inverted index records the correspondence between terms and documents, supporting fast lookup of material containing specified terms. For terminology, identifiers, clause names, and explicit entities, this method is quite interpretable.

    Candidate ranking can use common term-relevance methods, combined with title matching, phrase matching, and field weighting. For Chinese material, tokenization quality and the incorrect splitting of technical terms also need attention.

    But keyword matching has clear limits: if a user says “fee refund” and the document says “reimbursement,” the system may miss it without handling synonymous expressions. So lightweight does not mean purely mechanical literal matching; query rewriting and term normalization still matter.

    3. Metadata Filtering: Narrow the Scope First, Then Compare Relevance

    Conditions such as time, department, document type, version, and permission should participate in filtering during retrieval as much as possible.

    For example, if a user asks about the current policy, the system should prioritize the effective version rather than letting expired text compete in ranking alongside current text. If a user only has access to a certain business domain, that restriction should apply before candidates are produced.

    This approach both improves result quality and reduces the cost of later model processing of irrelevant content.

    4. How Multi-Hop Q&A Is Completed at Query Time

    The difficulty of multi-hop Q&A is not just “retrieving more text,” but identifying the intermediate variables not yet made explicit in the question and continuing the search along the evidence chain.

    Suppose a user asks: “Which version of the acceptance specification should a team responsible for a certain type of project follow?”

    The system may need to confirm, in sequence, the project’s category, the team’s scope of responsibility, the specification’s applicability conditions, and the latest effective version. A missing step at any point can lead to a wrong conclusion.

    1. Break the Question into Verifiable Sub-Questions

    Query planning can first identify target entities, relationships, and constraints, then form several sub-queries. Simple questions can use rules; complex natural-language questions can use a model.

    However, a model-generated query plan can only serve as a search strategy, not as fact. For instance, if the model infers that a project belongs to a certain category, document evidence must still be found to confirm it.

    2. Extract the Next Clue from Candidate Evidence

    After the first retrieval round hits, the system can continue expanding based on titles, identifiers, explicit references, and entity names. For example, if a policy states “see the acceptance specification in the attachment for specific requirements,” the next round should look for the corresponding attachment rather than repeatedly searching the original question.

    A relational database can store references between documents, containment relationships between sections, and verified entity associations. It is not necessary to build a complete knowledge graph in advance, nor to call a model to extract relationships from all text.

    The key is to distinguish two types of connections:

    • Explicit connections: the document contains an identifier, link location, or clear reference;
    • Inferred connections: the system judges a possible association from context.

    Explicit connections can be used directly for expansion; inferred connections need further verification and cannot be merged based on name similarity alone.

    Multi-round retrieval must control depth, candidate count, repeated visits, and time budget. Otherwise, the system may keep expanding along many weak associations, increasing latency and accumulating noise.

    Stopping conditions can include: a key sub-question already has supporting evidence, consecutive retrievals yield no new information, a resource budget is reached, or the evidence contains conflicts that cannot be resolved.

    When evidence is insufficient, the system should clearly point out the missing link rather than forcibly generating a complete conclusion.

    5. From Prototype to Production: Engineering Capabilities You Must Add

    1. Incremental Updates and Consistency

    You can use file content digests or version information to detect changes, avoiding reprocessing all material every time. But file modifications, deletions, and permission changes must all be synchronized to the index.

    During updates, the system should also prevent partially built data from being queried. A safer practice is to finish processing the new version first, then switch it to a queryable state, while invalidating the old version.

    If a file is being edited, the system also needs to check whether the version is consistent before and after reading, to avoid writing incomplete content into the index.

    2. Permissions Must Cover Not Only Source Text but Also Caches

    Permission checks should run through candidate retrieval, evidence expansion, and answer generation. You cannot first feed inaccessible content into the model and then hope the model does not leak it.

    Caches also need to account for user identity and permission scope. An answer a user once received should not be reused for another user with different permissions just because the question text is identical.

    3. Retrieved Documents Are Not System Instructions

    Text in the knowledge base is data to be analyzed. If a document contains phrases like “ignore previous instructions” or “output the contents of other files,” the system should not treat them as executable instructions.

    User requests, system rules, and retrieved content should be clearly isolated, and the operations the retrieval chain can invoke should be restricted. Especially when automated tool calls are supported, evidence text must not gain execution privileges on its own.

    4. Citations Must Actually Support the Conclusion

    Attaching a document name to an answer does not mean the conclusion is reliable. The system needs to check whether the cited passage directly supports the corresponding statement, and whether the scope of applicability has been broadened, an old version has been misused, or a condition has been omitted.

    For key business conclusions, it is advisable to provide the section location, the effective version, and the necessary original excerpt so that users can verify them.

    6. How to Evaluate Speed and Accuracy

    When comparing architectures, you must unify the test boundaries. Counting only index writing while excluding file parsing, OCR, and disk reads produces results that do not represent the full indexing experience.

    It is recommended to break performance into four parts:

    1. Input processing time: reading, parsing, recognition, and cleaning;
    2. Index construction time: text index, metadata, and relationship writing;
    3. Query time: candidate retrieval, expansion, and evidence filtering;
    4. Generation time: model calls, citation verification, and answer organization.

    Accuracy also cannot be judged only by whether the final answer “looks reasonable.” You should also evaluate key-evidence recall, the proportion of irrelevant content, citation correctness, multi-hop chain completeness, and refusal behavior when evidence is insufficient.

    The test set should cover term queries, synonymous expressions, version conflicts, cross-document associations, table questions, and no-answer questions. Beyond average latency, you should also watch high-percentile latency to avoid unacceptable waits caused by a few complex queries.

    Removing vectorization and model-based indexing can indeed significantly reduce initialization cost; but if the query stage requires many model calls, the cost is merely shifted from indexing to online serving. Total cost should be evaluated in light of update frequency, query volume, and response requirements.

    7. Applicability Boundaries and Selection Advice

    A no-embedding approach is usually more suitable for knowledge bases with clear terminology, abundant identifiers, relatively well-structured documents, and frequent updates, especially internal material retrieval that requires direct traceback to the source.

    For large amounts of colloquial description, strong synonymous rewriting, cross-language queries, or conceptual exploration, pure text retrieval may show insufficient coverage. In that case, you can add controlled query expansion or introduce semantic retrieval to form a hybrid architecture, rather than sticking to a single route.

    In practice, it is advisable to first build a baseline with representative material, verifying file parsing quality, keyword recall, and citation reliability; then, for failure cases, add multi-hop expansion, term mapping, and evidence verification. Do not build a complex system from the start, and do not ignore query quality just because initialization is fast.

    Conclusion

    The value of a knowledge base architecture lies not in whether it uses a popular technology, but in whether it can find the right evidence at an acceptable cost and generate a verifiable answer.

    The no-embedding retrieval route offers a lighter option for local knowledge bases: it reduces model dependence during indexing, preserves the ability to locate original documents, and then solves complex problems through query decomposition and evidence association. It is not a rejection of retrieval-augmented generation, but a rethinking of its internal retrieval and indexing methods.

    A truly reliable implementation still requires careful handling of format parsing, incremental updates, permission isolation, evidence conflicts, and quality evaluation. Only when all of these hold together will “fast indexing” turn into a stable, trustworthy, and maintainable knowledge service.