Artificial intelligence

Enterprise knowledge search

Answers drawn from your own documents, with each one citing the passage it came from.

How we do it

Overview

On paper, retrieval-augmented generation is a short sequence of finding the relevant documents, passing them to a model and getting an answer back. In practice the model is usually the more reliable part of that sequence. When an assistant gives a wrong answer from company documents, the usual cause is that the right passage never reached it, because the search returned an outdated version, a near-duplicate or a fragment cut off halfway through a table, and the model then made what it could of the wrong material.

For that reason we approach the work as a search problem, and we build and measure the search before any model is placed on top of it. This involves deciding how each kind of document is parsed and split, which metadata stays attached to each piece, how keyword and vector results are combined and reranked, and how the results are filtered by the identity of the person asking. Each of these stages can be measured separately, using real questions paired with the passages that ought to answer them.

Enterprise content makes each stage more difficult. Documents are spread across several repositories with different permission models, and a policy may exist in many versions of which only one is current. Scanned files, slide decks and spreadsheets do not break neatly into paragraphs, while people search for part numbers and clause references that have to match exactly. A system that copes with all of this ends up resembling a well-run search engine much more than it resembles a chatbot.

Challenges we address

The failures we are usually called in to fix
  1. The right passage never reaches the model

    The answer is in the corpus, but the search either misses it or ranks it below the cutoff, so the model answers from weaker material. The team can then spend weeks adjusting prompts for a fault that actually sits in the retrieval stage before the model.

  2. Documents split in the wrong places

    Splitting documents into fixed-size pieces separates a table from its header, a clause from its exceptions and a step from its warning. Every fragment looks searchable, yet none of them carries enough context for a question to be answered from it.

  3. Vector search misses exact terms

    Embeddings are good at matching meaning and poor at matching identifiers. When someone searches for a part number, an error code or a contract reference, the results are passages about similar things, and the one document that contains that exact string is missing.

  4. Answers leak what the user cannot open

    Because the index was built with an account that can read everything, the assistant will summarize a board paper or a salary file for someone who could never have opened it. The leak usually comes to light only when the content is quoted back to its owner.

  5. Stale and duplicate content wins

    Three versions of a policy are stored in different folders, and the search has no way of telling which one is current. The answer therefore cites whichever version ranked first and presents it with complete confidence.

Our approach

How the work runs, in order
  1. Start from real questions

    We gather the questions people actually ask, drawing on search logs, help desk tickets and interviews, and pair each one with the passage that answers it. Every later decision is measured against this set, which also reveals early on which questions the corpus has no answer for.

  2. Parse and split by document type

    Policies, manuals, contracts, tickets and spreadsheets each get their own rules for parsing and splitting, so that the pieces follow the structure of the document, whether that means headings, clauses or table rows kept with their headers. Every piece carries metadata giving its source, section, version, date and access list.

  3. Build hybrid retrieval

    We index the content for keyword and vector search at the same time, merge the two lists of results and rerank the top candidates with a model that reads the query and each passage side by side. Metadata filters apply the user's permissions and favor current versions, and we score retrieval against the question set before any answer is generated.

  4. Generate with citations

    The model answers only from the passages it has been given and cites each one it uses, linking to the right section of the source. If those passages do not contain the answer, it says that it cannot answer. We score answer quality separately from retrieval, which makes it possible to tell which stage a failure belongs to.

  5. Keep the index current

    We build ingestion that follows changes at the source, covering new documents, edits, deletions and changes to permissions, so that deleted or restricted content is removed from the index promptly. Your team takes over the pipeline, the question set and the scores, which serve as the baseline for any change made later.

Technical capabilities

What we design, build and operate
  • Document parsing

    We extract text, tables and structure from PDFs, office files, scanned pages, wikis and ticket systems, and keep the layout wherever the meaning depends on it.

  • Chunking strategy

    Each document type gets splitting rules that follow its structure and keep tables and lists intact, and every piece carries the heading context that surrounds it.

  • Hybrid search

    BM25 keyword search runs next to dense vector search, and the two result lists are merged with a method such as reciprocal rank fusion that has been tuned on your questions.

  • Result reranking

    A second-stage model reads each candidate passage against the query and reorders the list, which means the answering model receives the passages that match best, where vector distance alone would only have supplied the nearest ones.

  • Permission-aware retrieval

    Access lists are carried over from the source systems into the index and applied as a filter when the query runs, so a user's results match what that user could open directly.

  • Cited answers

    Generated answers include inline references to the exact passages used and deep links into the source, and when nothing relevant was found the system says clearly that it has no answer.

  • Incremental indexing

    Connectors and change detection keep the index in step with the source repositories, and this includes removed content as well as changes to who has access.

  • Retrieval evaluation

    We measure recall and ranking on a fixed question set, track the results for each document type and run the measurements again whenever the splitter, the index or the model changes.

Where it applies

Business applications
  • Policy and procedure answers

    When staff ask how something is done, they receive the current rule with a link to the relevant clause, which saves them working through a page of search results.

  • Engineering and maintenance manuals

    Technicians can find the procedure for a particular model or fault code, because exact identifiers are matched and the correct revision is returned.

  • Customer support knowledge

    Support agents and customers receive answers drawn from product documentation and resolved tickets, and the source article is shown so that they can check it.

  • Contracts and legal documents

    Clauses on a given topic can be found across many agreements, with each result linked to its document, its party and its effective date.

  • Research and prior work

    Earlier proposals, reports and analyses on a subject can be located, with the results limited to material the person asking is cleared to read.

In practice

Two situations this service is built for, and what we would do in each.

Energy and utilities

Maintenance procedures for a utility's field crews

The situation
Field technicians at a utility look up maintenance procedures on tablets, in long PDFs that are organized by equipment family and stored on the shared drive in several revisions. An earlier assistant that relied on vector search alone often returned the procedure for a similar asset, and as a result the technicians no longer trust it.
What we would build
We would collect real lookups from technicians and pair each one with the correct section of a procedure. The documents would be split again by section, with the equipment model and revision recorded as metadata and superseded revisions left out, and hybrid search would add exact matching on model numbers and fault codes. Each answer would quote the step and link to the page, and retrieval would be scored on the question set before and after every change.
What it is designed to change
A technician who asks about a particular asset would receive the current procedure for that asset, or a clear statement that none was found. We would track retrieval recall on the question set, with a separate figure for queries that contain an exact identifier.
Professional services

Prior work search across confidential client matters

The situation
A professional services firm would like its staff to be able to find earlier advice and deliverables on a topic. The material is held in a document management system that restricts access matter by matter, and a general assistant was ruled out because indexing everything under a single account would break those confidentiality walls.
What we would build
We would build an index that carries each document's access list over from the document management system and filters every query by the user's current entitlements. Permission changes and closed matters would be synced on a schedule agreed with the risk team, and the test cases would include users who must get no result at all for a walled matter. Answers would always cite the document and section, so there would be no unsourced summaries.
What it is designed to change
Staff would find the relevant prior work they are entitled to see and would be shown nothing beyond it. Success would be judged on retrieval quality against a question set and on a standing permission test suite, in which any leaked result blocks the release.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Search engines and vector stores
Elasticsearch · OpenSearch · Azure AI Search · PostgreSQL with pgvector · Qdrant · Weaviate · Vespa
Embedding and reranking models
OpenAI embeddings · Cohere Embed and Rerank · Voyage AI · BGE open-weight models · cross-encoder rerankers
Parsing and ingestion
Unstructured · Docling · Apache Tika · Azure AI Document Intelligence · Amazon Textract · Airflow
Source repositories
SharePoint · Confluence · Google Drive · file shares · document management systems · ticketing systems
Retrieval evaluation
Ragas · Inspect · promptfoo · custom recall and ranking tests

Business outcomes

What changes for the organization
  • Answers people can verify

    Every answer shows the passage it is based on, so a reader can confirm it within seconds, and confidence in the system grows from evidence the reader has checked.

  • Access rules that hold

    Through search, a person sees exactly what they could open directly, and when a permission changes at the source the index reflects that change.

  • Faults placed in the right stage

    When an answer is wrong, the scores show whether the search failed to find the passage or the model misused it, which tells the team where the fix belongs.

  • Less time hunting for documents

    Staff receive the current version of the relevant passage from their first query, which spares them opening several files to work out which one applies.

What you hold at the end

  • A search index over the agreed repositories, with permissions applied
  • Parsing and splitting rules documented per document type
  • A question set paired with the passages that answer each
  • Retrieval and answer scores reported separately as a baseline
  • An ingestion pipeline handling updates, deletions and access changes
  • A search and answer interface or API with citations
  • A runbook for adding a new repository or document type

Questions buyers ask

You need vector search, which can be had without a separate vector database. Several established search engines and relational databases now support vector indexes next to keyword search, and if you already run one of them it is often the better option, since you operate one system and already understand its filtering and access control. A dedicated vector store is justified at very large volumes or when you need features the others lack. We decide on the basis of your corpus size, your query load and what your team is able to run.

For a small and stable set of documents that can work, and if it suits your case we will tell you. As the corpus grows it stops working, because every request pays for every token, responses get slower and models pay less reliable attention to details buried in very long inputs. It also gives you no way to apply permissions for each user. Retrieval is there to send the model the few passages that matter, selected for the person who is asking.

During ingestion we read the access lists from each source system and store them with every piece we index. When a query runs, the user's identity and group memberships are resolved and the search filters on them before ranking. The difficulty lies in nested groups, permissions inherited from folders and changes made after indexing, so permissions are synced on their own schedule and tested with users who should be refused. Filtering after the answer is generated is not acceptable, because by then the model has already seen the content.

We would clean up only what the question set shows you need, since a full content cleanup attempted before any build rarely gets finished. Running real questions against the corpus quickly shows which areas suffer from duplicates, missing owners or conflicting versions, and those areas are fixed or excluded first. Often the most effective step is to mark which repository is authoritative for each subject and to index only that one.

We measure it against the question set. For every question we check whether the passage that answers it appears among the top results, and we track this by document type and by query type. The answers are then scored on whether they follow from the passages they cite. Together we set the threshold before the build, based on what a missed or wrong answer would cost in that particular use, and the same tests keep running on every change after handover.

Discuss enterprise knowledge search with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy