GA AI Case Study – Separating document experience from governed retrieval
At a glance
Global Advisors re-architected document-grounded AI so the user-facing collaboration application could retain a stable experience while retrieval, embedding, ranking and model services operated as independently scalable platform capabilities.
The central design was a thin adapter behind the application's existing contract. It translated document events, user context and questions into external collection, ingestion and retrieval operations. This preserved the option to use the application's built-in path while creating a governed route to a more capable shared retrieval estate.
Maturity: active internal deployment with continuing hardening of richer permission semantics, backend portability and service-class management.
GA AI Case Study – Separating document experience from governed retrieval
The situation
An integrated contextual-chat feature gave users a natural place to ask questions about their documents, but its embedded retrieval stack coupled the user experience to one scaling model and release cycle. Global Advisors needed to support a larger document estate, independent embedding capacity, reusable retrieval across applications and clearer access boundaries.
A broad fork of the user application would have created long-term maintenance cost. Replacing the client would have harmed adoption. Leaving retrieval embedded would have constrained scale and reuse. The problem was therefore to change the architecture substantially while changing the application contract as little as possible.
GA AI Case Study – Separating document experience from governed retrieval
The architectural response
We kept the client-facing API stable and inserted a selectable backend boundary. The original behaviour remained available. When the external path was enabled, the adapter translated the same application calls into operations on a separate retrieval platform.
The responsibility model was explicit:
- the collaboration application remained the source-document and user-experience authority;
- the adapter remained the contract owner and translation layer;
- the retrieval platform owned collections, ingestion, search and contextual retrieval;
- the model gateway owned approved model access; and
- dedicated embedding and ranking workers handled high-volume specialist computation.
This made heavy AI infrastructure replaceable without rewriting the user surface and made the user application upgradeable without rebuilding the retrieval estate.
GA AI Case Study – Separating document experience from governed retrieval
What we implemented
The implementation included more than request translation:
- a backend interface with built-in and external operating modes;
- per-user or permission-scoped collection creation and lookup;
- document create, update, deletion and metadata translation;
- collection membership changes when access changed;
- scoped search and contextual-answer requests;
- central handling of retryable backend saturation;
- caller-side limits on concurrent ingestion work;
- persistent content-hash caching and configurable skip windows;
- exclusion rules for unsuitable file types or content;
- startup validation, diagnostic logging and end-to-end request tracing;
- deployment guidance for embedding and model dependencies; and
- an upstream-alignment discipline that kept backend-specific code out of the stable controller path.
GA AI Case Study – Separating document experience from governed retrieval
Permission-aware retrieval
The most important design issue was not relevance; it was entitlement. The client contract carried user identity, but not every rich group, tag or record-level policy that a downstream index might ideally receive.
We therefore refused to treat indexing as permission. Collections became an explicit translation of the authority available from the source application. Retrieval filters were applied within that scope. Where a richer policy concept was absent from the contract, it was recorded as extension work rather than inferred from weak signals.
This distinction matters because a retrieved fragment is a new disclosure event. Source access, ingestion permission and answer-time access must align, even when documents or memberships change after initial indexing.
GA AI Case Study – Separating document experience from governed retrieval
Difficult problems we had to solve
Backpressure under real scans
The dominant failure mode was operational saturation, not API syntax. Large scans could fan out enough embedding work to make the pipeline appear stalled. Returning a retryable busy response allowed the source scanner to continue safely rather than failing an entire batch. Global concurrency bounds and timeouts limited pressure before it reached specialist workers.
Duplicate work
Large estates repeatedly surface unchanged material through scans, metadata events and restarts. Hash-based deduplication, durable cache seeding and skip windows reduced waste while preserving a path to intentional re-indexing.
Interactive and bulk workloads competed
Embedding a newly scanned estate and answering a consultant's live question have different service objectives. We learned to separate their concurrency, queues and capacity profiles. Background work could use a wider overnight profile; interactive use retained protected capacity during the day.
Configuration and process state diverged
Changing a profile file did not change a live process that had already loaded it. Safe capacity transitions required draining or restarting an instance, or moving traffic to a pre-warmed alternative.
Thin forks require discipline
It was tempting to add application-specific behaviour in the stable controller. Keeping backend logic behind the adapter reduced merge cost and preserved the value of upstream improvements. Compatibility was an architectural objective, not housekeeping.
GA AI Case Study – Separating document experience from governed retrieval
Controls and assurance
- Built-in behaviour remained available as a known fallback and comparison path.
- External retrieval was selected explicitly through deployment configuration.
- Collection scope linked retrieval to available user authority.
- Concurrency, timeouts, retry timing and search limits were bounded.
- Hashes and durable cache state supported idempotent ingestion.
- Request identifiers and runnable diagnostics crossed service boundaries.
- Bulk and interactive work were treated as different service classes.
- Backend-specific changes were kept narrow to reduce upgrade drift.
GA AI Case Study – Separating document experience from governed retrieval
Results
The firm established a reusable pattern for governed retrieval behind an existing enterprise application. Retrieval, embeddings and models could evolve independently while the user experience and source authority stayed stable.
Operationally, ingestion became more recoverable under load, duplicate processing fell, and permissions became a visible architecture topic rather than an assumption. Strategically, retrieval changed from a feature owned by one application into a platform capability that could support several interfaces.
GA AI Case Study – Separating document experience from governed retrieval
What we learned
The quality of a retrieval-augmented answer depends on much more than a model and vector index. Permissions, ingestion state, metadata, deduplication, queue shape, source freshness, citations and user experience all form part of the system.
We also learned that architectural decoupling is valuable only when contracts remain precise. A generic “retrieval service” is not enough; its authority, failure semantics and evidence must be explicit.
GA AI Case Study – Separating document experience from governed retrieval
Why this matters for leaders
When evaluating enterprise retrieval or document-grounded AI, leaders should ask:
- Does the source system or the AI index own access decisions?
- How quickly do permission changes reach answer-time retrieval?
- Can the user experience, retrieval engine and models evolve independently?
- How are ingestion saturation and duplicate work controlled?
- What evidence links an answer to authorised source material?
- Is the organisation building one more application feature or a reusable knowledge capability?
The answers shape risk, cost and future partner choice far more than a retrieval benchmark alone.
GA AI Case Study – Separating document experience from governed retrieval
Note
Global Advisors does not perform technical AI implementation or systems integration for clients. However, we have worked on architecting and implementing AI at a deep level in our own business since the beginning of 2024. This allows us to provide grounded AI strategic and architectural advice based on a deep hands-on knowledge of AI. We work with clients to build strategies, business and operating models to win in an AI enabled world. We help them make architectural and partner choices for implementation and work with them to change their businesses in response.
