Engagement · Professional services

Permission-aware search with cited answers over project documents at an engineering consultancy

Staff at an engineering consultancy can find how the firm solved a problem before, within the projects each of them is allowed to see.

The situation

An engineering consultancy designs buildings, bridges and water infrastructure, and each project leaves behind reports, calculations, specifications, drawing registers, design basis memos and long email threads, stored in a document management system and on project file shares. Much of the firm's value lies in having met most problems before, whether that is a particular soil condition or a retrofit detail, or an argument with an approving authority that has come up on earlier projects. At present, finding that earlier work depends on knowing who was on the project and whether that person still works at the firm.

The current search matches file names and a handful of profile fields, many of which were filled in under deadline pressure. Client agreements also restrict who may see which material, so some projects are confidential to a named team and some clients forbid any processing of their material by external AI services. The firm wants answers that come with their sources, and it needs the permission model to hold all the way through to the text that is passed to a language model.

What was going wrong

  1. The answer exists but cannot be found

    A design basis memo from an earlier project may answer the question exactly, yet its file name is a document number followed by a revision letter. Keyword search over file names and profile fields will not surface it, which leaves the engineer asking colleagues or starting the work again.

  2. Superseded revisions look current

    A single report can exist as revisions A to F in addition to drafts and a marked-up copy. A search that confidently returns revision B is worse than returning nothing, because a superseded calculation can end up being reused in a live design.

  3. Permissions live in three places

    Access is controlled on document management workspaces, on file share folders and in project team lists, and these do not always agree. An index built under a single service account merges all three into one view and shows every user every document.

  4. Scans, drawings and tables defeat plain text extraction

    Older reports are scanned images, calculations sit as tables inside PDFs, and drawings carry their meaning in title blocks and notes. An index built from naive text extraction therefore misses the documents that contain the most reusable engineering knowledge.

Our approach

In order
  1. Collect real questions first

    We would ask each discipline for questions its engineers actually raised in recent months, along with the document that answers each one. The resulting set of a few hundred pairs serves as the test before any index is built, and it also shows which document types matter most and which can wait for a later phase.

  2. Settle the permission source

    Before anything is indexed, we work with the firm's information owners to establish one authoritative record of who may see each project, reconciling the differences between workspaces, folders and team lists. Client restrictions on AI processing are recorded as data against each project at the same stage.

  3. Build retrieval before generation

    The first release offers search only, combining keyword and vector retrieval with reranking, filters for discipline, project type and date, and results shown as passages with links. We tune it against the test questions until the right document appears near the top, and answer generation is added after that.

  4. Add cited answers with a refusal path

    The model answers only from the retrieved passages and attaches a citation to each statement it makes. When retrieval finds nothing relevant, the tool says so while showing the nearest documents. A second check confirms that each cited passage actually supports the sentence citing it.

  5. Pilot with one discipline

    A single group, structural engineering for example, uses the tool on live work for several weeks, during which its feedback and any failed searches are added to the test set. Other disciplines are brought in once their own questions pass the same bar.

The design

The parts and what each one does
  • Connectors and change feed

    Connectors read the document management system and the file shares, pick up new and changed files, and attach each document's project, revision, status and access list. Deletions and permission changes travel through the same feed.

  • Document processing

    PDFs go through layout-aware parsing, scans through OCR, calculations through table extraction and drawings through title block reading. Chunks follow the section headings and keep the document number and revision as metadata.

  • Hybrid index

    A keyword index handles exact terms such as standard clauses and product names, a vector index handles meaning, and a reranker orders the combined candidates. Superseded revisions stay in the index but are labeled and ranked below the current one.

  • Permission filter at query time

    Each query carries the user's identity, and results are filtered against the current access lists before ranking and again before any passage goes to a model, so a revoked permission applies immediately without waiting for a reindex.

  • Answer service

    The model call receives only passages the user is permitted to see and returns an answer with numbered citations. It is routed through a gateway that logs each request and controls which projects may be sent to which provider.

  • Evaluation suite

    The suite holds the question set with its expected documents, graders for retrieval rank and citation support, and a permission test that runs as users from different teams. It runs every night and on every change.

Safeguards

What keeps a bad day small
  • A barrier test that blocks release

    Test users without access to a confidential project run queries written specifically to reach it, and any result, passage or answer that reveals its content fails the build. The test checks caches and logs as well as the results page.

  • Client restrictions enforced as data

    Depending on the client's terms, projects flagged as excluded from external AI processing are either kept out of the index or served by a model hosted inside the firm's own environment. The gateway checks that flag, so the decision never rests with the user.

  • Read-only and advisory

    The tool finds and summarizes documents and changes none of them. A retrieved calculation is a reference that still has to be checked before it informs a design, and responsibility for the engineering remains with the engineer and the firm's checking procedure.

  • Revision status always shown

    Each result displays the revision and status of its source document, and an answer drawn from a superseded or draft document states that in its first line.

Timeline

  1. Weeks 1 to 2

    We gather test questions from each discipline and sample the document estate, and we work with the firm's information owners to reconcile the permission sources and record client restrictions.

  2. Weeks 3 to 6

    We build the connectors, document processing and the hybrid index for the pilot discipline's projects, then tune retrieval against the question set and set up the permission tests.

  3. Weeks 7 to 9

    Cited answers, the citation check and the gateway are added and nightly evaluation begins, while the pilot discipline starts using the tool on live work.

  4. Weeks 10 to 12

    Indexing extends to the further disciplines whose questions pass. Monitoring and cost reporting are then completed, and the runbook and evaluation suite are handed over to the firm's team.

What it changes

What the build is designed to change

An engineer facing a familiar problem can start from the firm's own earlier work, opening the memo, the calculation or the correspondence with the authority from a citation that also shows its revision status. Knowledge that used to depend on the memory of a long-serving colleague becomes available to someone who joined last month, although only within the limits of what that person is permitted to see.

For the firm's leadership and its clients, the more important change is that the confidentiality position can be demonstrated with evidence. A test attempts to cross each barrier every night, there is a record of which projects may be sent to which model, and a log shows what was asked. The measures below are how the firm would check whether the design works once it is running.

How success is measured

  • How often the expected document appears among the top results for the test questions
  • Share of answer sentences that their citation actually supports, measured on a graded sample
  • Barrier test results, where the target is zero restricted passages returned to unauthorized test users
  • Searches that end without any result being opened, tracked by discipline
  • Time between a permission change and its effect on search results

What generalizes

  1. Answer quality depends mostly on retrieval

    When an answer is wrong, the usual cause is that the right passage was never retrieved in the first place. Tuning parsing, chunking and ranking against real questions tends to do more for answer quality than changing the model, and its effect is cheaper to measure.

  2. Permissions have to be designed in from the start

    An index built without access lists has to be rebuilt before it can use them. Carrying identity and permissions from the connector through to the prompt is a decision for the first week, and it determines whether the firm can use the tool on client work at all.

  3. Document status is part of relevance

    In engineering, the passage most similar to a question may sit in a superseded revision. Revision and approval status therefore need to be captured as metadata and used in ranking, otherwise the tool will confidently return work that the firm has since corrected.

All engagements

If you have a similar problem, a two-week review is the usual place to start.

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