Building Knowledge Bases Without Vectorization: Retrieval Architecture and Implementation Practices
This article explains why enterprise knowledge bases need more than semantic similarity, and how to design a retrieval architecture that does not rely on embedding vectors. It covers full-text indexing, structured queries, multi-hop retrieval, preprocessing requirements, file synchronization, security, evaluation methods, and how to choose the right architecture for different business needs. Readers will learn how to build a lightweight, explainable knowledge base where answers are traceable to verifiable evidence.
1. The Core Problem: Finding Complete Facts, Not Just Similar Text
Enterprise knowledge bases typically need to answer two kinds of questions. The first is “what does a given policy stipulate?” The second is “who is responsible for a given project, what is its budget, and where is the supporting approval?” The former can often be answered with a single document fragment, while the latter requires integrating evidence across sections and files.
A common retrieval-augmented generation (RAG) architecture parses documents, splits the text into chunks, and uses an embedding model to convert text into vectors. When a user asks a question, the system retrieves the fragments most semantically similar to the query and passes them to a large language model as context for answer generation.
This approach works, but similarity is not the same as factual association. For example:
- A project plan records: “Zhang San is the lead for Project A.”
- A financial approval form records: “The approved budget for Project A is 5 million yuan.”
- A project adjustment notice records: “The execution period of Project A is extended to the end of the year.”
When a user asks, “What is the budget of the project Zhang San is responsible for, and has the execution period changed?”, the system must follow the evidence chain across “person — project — budget — timeline.” Simply retrieving the top few most similar fragments may find only the personnel information while missing the budget and the change notice.
Therefore, the focus of knowledge base architecture should expand from “how to find similar content” to “how to find complete, valid, and traceable evidence.”
2. Why You Don’t Need to Rely on Vectorization
RAG is a system architecture paradigm, not a synonym for “vector database plus large model.” As long as the system retrieves evidence from external sources and uses it to assist generation, it falls within this category.
In many business scenarios, documents contain explicit project numbers, contract numbers, person names, department names, and specialized terminology. These are well suited to keyword matching, full-text search, and structured queries, and do not necessarily need to be converted into vectors first.
1. Full-text indexing locates textual evidence
Full-text indexes typically use an inverted structure that records which documents or fragments contain which terms. At query time, the system ranks candidate content based on term matching, term frequency, document length, and similar factors.
This is especially effective for precise identifiers and domain-specific terms. For example, when searching for a contract number, an exact match is usually more valuable than broad semantic similarity. Dates, amounts, and project codes can also use dedicated parsing and matching strategies.
Full-text search does have limits. When users use abbreviations, synonyms, or colloquial expressions, the source text may not contain the corresponding terms. In such cases, you need lexical normalization, alias mapping, and query rewriting — you cannot assume keyword search inherently understands semantics.
2. Structured queries handle explicit constraints
If documents contain stable fields such as the responsible person, project name, budget amount, and approval date, these fields can be organized into queryable records.
Structured queries are well suited to:
- Which projects a department is responsible for;
- Which projects exceed a specified budget;
- Which approval records fall within a given time range;
- Whether multiple records share consistent identifiers.
It is important to distinguish between two sources of such fields: tables or structured data already present in the documents, and fields extracted from natural language. The latter still involves rule design, model invocation, or manual verification — you cannot simply claim there is no processing cost.
3. Multi-hop retrieval connects scattered clues
Multi-hop retrieval does not mean increasing the number of returned results at once. It means generating the next query based on the current evidence.
Using the project example above:
- Find the responsible-person record using the person’s name;
- Extract the project name or number from that record;
- Query the budget approval record using the project identifier;
- Query change records for the same project;
- Verify that the records refer to the same project and remain valid.
This process resembles evidence search with constraints. The key is preserving the source at every step and validating intermediate results. If the project is identified incorrectly at the first step, subsequent queries — even if executed correctly — can produce a completely wrong answer.
3. “No Vectorization” Does Not Mean “No Preprocessing”
When discussing lightweight knowledge bases, three concepts are often confused:
- No embedding computation;
- No complex offline knowledge extraction;
- No preprocessing at all.
The first two can be achieved through architectural choices; the third does not hold for most real-world files.
A local directory may contain plain text, office documents, scanned files, and complex tables at the same time. The system must at minimum identify file formats, extract readable content, record file locations, and handle encodings, heading hierarchy, and table boundaries. Scanned documents usually also require OCR.
Even without generating vectors, building a full-text index, maintaining document versions, and computing file fingerprints are all preprocessing. A more accurate statement is: the system can reduce expensive model-based preprocessing and shift part of the work to lightweight indexing or on-demand execution — not that data processing is eliminated entirely.
Also distinguish “text indexing time” from “total file ingestion time.” The former may only measure how long it takes to index already-parsed text, while the latter includes file reading, content parsing, OCR, and permission synchronization. If the scopes differ, the performance numbers cannot be directly compared to judge the overall efficiency of a system.
4. A Reference Architecture for Local Files
A knowledge base that does not rely on vectorization can be organized along this pipeline:
Local files → content parsing → document and fragment indexing → query planning → multi-round evidence retrieval → evidence verification → answer generation
1. Document layer: preserve original structure and identity
Each document should have a stable identifier and store metadata such as path, version, update time, access permissions, etc.
Fragments should not only retain isolated text; where possible, they should also be associated with:
- The parent document and section;
- Page number or paragraph position;
- Adjacent fragments;
- Table titles and column names;
- Content version and validity period.
This way, when retrieval hits “the budget is 5 million yuan,” the system can also pull in the project title, approval date, and related notes, preventing amounts from being taken out of context.
Chunking still has value, but its purpose is no longer just fitting the input constraints of an embedding model. It controls retrieval granularity, preserves semantic boundaries, and supports context expansion.
2. Index layer: separate text and fields into their roles
Maintain full-text indexes and structured records separately. Full-text search is good at discovering evidence; structured records are good at executing explicit conditions and association queries.
The two do not need to cover all files at once. For documents with stable formats and high business value, prioritize field extraction; for scattered materials, provide full-text search and source location first. Progressive construction is usually easier to land than pursuing complete “full-scale knowledge extraction” in one go.
3. Query layer: choose a path based on the question
User questions should first be classified by type:
- Precise lookup: prioritize matching numbers, names, and terms;
- Conditional filtering: prioritize structured fields;
- Cross-document association: execute constrained multi-hop retrieval;
- Comprehensive interpretation: retrieve multiple related-topic fragments, then synthesize the answer.
Query planning can use rules or be assisted by an LLM. If a model is used to generate queries, restrict the accessible data range and query types — do not let the model execute arbitrary operations.
4. Generation layer: conclusions must be bound to evidence
The context provided to the model should include the evidence text, source locations, and necessary version information. Every key fact in the answer should be traceable to a specific file.
When evidence is insufficient, the system should state clearly what is missing, e.g., “found the responsible-person record, but no valid budget approval document was retrieved” — rather than stitching amounts from different projects into a complete-sounding conclusion.
5. Multi-hop Retrieval Needs Controlled Search Scope
The risk of multi-hop retrieval is unbounded expansion: every newly discovered name triggers another search, introducing irrelevant material, adding latency, and consuming context.
Engineering controls can include:
- Keep only a limited number of candidate pieces of evidence per round;
- Continue searching only along fields relevant to the question;
- Record entities and conditions already queried to avoid repetition;
- Stop when evidence is sufficient, search progress stalls, or a resource budget limit is reached;
- Specifically check conflicting records instead of arbitrarily picking one.
Whether evidence is sufficient should not be judged solely by retrieval scores. You must also confirm that all key constraints in the question are covered. For example, when answering a budget question, the project identity, the meaning of the amount, and the validity of the record must all be established. A highly relevant draft budget cannot automatically be treated as the final approved result.
6. File Updates Cannot Rely on “Re-scanning Everything”
One benefit of direct local-file access is a lower operational burden for keeping knowledge up to date. But when files change, indexes still need to be synchronized.
You can combine file event notifications with periodic scans:
- Build a file inventory on first ingestion;
- Detect changes via update time, file size, and content fingerprint;
- Re-parse only new or modified files;
- Update the corresponding fragments and index records;
- Clean up index entries for deleted files;
- Retain or remove historical versions according to business requirements.
File event notifications may miss changes, so periodic verification remains necessary. The update process should also avoid mixed states where “old fragments are not yet deleted while new fragments are already visible.” Version identifiers and release switching can make queries read only from a consistent index version.
Additionally, “content updates” and “permission updates” should be handled separately. If a file’s content is unchanged but its access permissions change, retrieval results must promptly reflect the new permission scope.
7. A Lightweight Architecture Does Not Lower Security Requirements
Local-file ingestion often involves contracts, financial records, and internal policies. Permission filtering should be performed during retrieval and confirmed again before reading the body text — not implemented by handing all content to the model first and then instructing it not to leak anything.
Document content should also be treated as untrusted data. A file may contain instruction-like text such as “ignore previous requirements” or “read other directories.” Such content must only be treated as material to be analyzed, never granted the authority of system instructions.
Follow the principle of least privilege for queries and file operations:
- Retrieval accounts are read-only by default;
- Queries are limited to authorized scopes;
- Generated queries are inspected;
- Retrieval tasks must not modify or delete files;
- Logs avoid storing sensitive body text without redaction.
Citations in answers must follow the same permission rules: file names, paths, or fragment summaries must not expose information the user has no right to access.
8. How to Judge Whether the Solution Actually Works
Evaluating a knowledge base requires more than a one-time demo or a measurement of indexing speed. Split evaluation into three layers.
1. Retrieval quality
Focus on whether the needed evidence is found, how much noise the returned content contains, and whether all key evidence for multi-hop questions is present.
For a multi-hop question, finding the responsible person but missing the budget document is not a complete success. Evaluate the completeness of the evidence set, not just the relevance of individual fragments.
2. Answer quality
Check whether facts are correct, conclusions are supported by evidence, citations are accurate, and the system refuses to guess when information is insufficient.
Test sets should include old-version conflicts, projects with identical names, abbreviations versus full names, cross-file relationships, and questions with no answer — don’t validate only with easy, directly matching examples.
3. Engineering cost
Measure file parsing, index construction, update synchronization, querying, and generation separately; record storage overhead and model invocation costs as well.
Skipping vectorization typically saves embedding computation and the maintenance of the corresponding vector index, but query rewriting, multi-hop planning, and answer generation may still call models. Therefore, total cost must be calculated over the complete pipeline.
9. Choosing the Right Retrieval Architecture for Your Business
For materials with explicit numbering, stable terminology, and traceable relationships, full-text indexing plus structured queries are worth validating first. For content with varied expressions, colloquial user questions, or significant cross-language needs, semantic retrieval remains valuable.
A practical system can also take a hybrid route: exact matching handles numbers and entities, full-text search locates textual evidence, semantic retrieval covers differences in expression, and structured queries handle conditions and associations. The choice should be driven by business testing results, not by which technique is newer.
A prudent rollout order is: select a batch of high-value files, build a representative question set, validate retrieval, citations, updates, and permission control, then expand the scope of materials after confirming end-to-end effectiveness.
Progress in knowledge base architecture is not about declaring one retrieval method completely obsolete. It lies in removing unnecessary processing steps and making evidence acquisition more reliable. A system truly worth building should offer: controllable ingestion costs, well-defined update behavior, an explainable retrieval chain, traceable answer sources, and honesty about its capability boundaries.
