Quick revision
The short answer
The largest risk is showing information to people who should not see it, so permission-aware retrieval is a prerequisite, not a later feature; the next is answer quality, which depends on data quality and staleness more than on the model. I would start with one high-value, well-governed source and a defined user group, measure usefulness, plan the full-scale costs of ingestion, storage, embedding updates and model calls, set governance for sensitive sources such as contracts and personnel data with legal and security, and then expand source by source with evaluation at each step.
What to remember
In this answer, we ranked the risks of a company-wide knowledge assistant, with information exposure first, and made permission-aware retrieval a prerequisite that may require fixing over-shared sources. We saw that data quality and staleness drive answer quality more than the model, started with one well-governed source for a defined group with agreed metrics, modelled full-scale costs to find the levers, put sensitive sources under explicit governance with legal and security, and expanded source by source with evaluation at every step.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The largest risk is showing information to people who should not see it, so permission-aware retrieval is a prerequisite, not a later feature; the next is answer quality, which depends on data quality and staleness more than on the model. I would start with one high-value, well-governed source and a defined user group, measure usefulness, plan the full-scale costs of ingestion, storage, embedding updates and model calls, set governance for sensitive sources such as contracts and personnel data with legal and security, and then expand source by source with evaluation at each step.
Why this question is asked
Ask everything about the company sounds like a single feature, and executives often expect it in one quarter. In practice it touches every system of record, every permission model and every sensitive document the company has, and its failures are public inside the company within an hour. Interviewers ask senior leaders this question to see whether they rank the risks correctly and sequence the work so that value arrives early without betting the company's confidentiality on a first release. In this answer, we will rank the risks, explain why permissions come first, look at data quality, choose the first slice, plan costs, set governance, and lay out the expansion.
1Ranking the Risks
Several things can go wrong, and they are not equally bad. A wrong answer is embarrassing and erodes trust. A slow or expensive assistant wastes money. But an assistant that shows an engineer a draft redundancy list, a customer contract's pricing or a security incident report causes real harm, may break contracts or law, and cannot be undone. So the ranking I would present is: first, information exposure; second, wrong or outdated answers that people act on; third, cost growing faster than value; fourth, adoption, because a tool nobody trusts is the most expensive failure of all.
2Permission-Aware Retrieval Comes First
Most internal systems have their own permission models: wiki spaces, ticket projects, repository access, document libraries, contract management roles. Pulling all of this into one search index flattens those boundaries unless every chunk carries the access rules of its source and every search filters by the asking user's identity. That is permission-aware retrieval, and it cannot be added later, because the day the index exists without it, any user can retrieve anything.
There is a catch that makes this harder than it sounds. Many sources are over-shared: wiki pages open to all staff that should not be, or shared drive folders with company-wide links. Today they are protected by obscurity, because nobody finds them. A good search assistant removes that obscurity. So before ingesting a source, we review its permissions with the source owner, and we may need to fix them first. This is often the slowest part of the programme and should be planned as such.
3Data Quality Decides Answer Quality
With a good retrieval design, the model's answer can only be as good as the passages it is given. Internal knowledge is full of duplicates, three versions of the same process page, abandoned drafts, and tickets that record a workaround that was later replaced. An assistant that retrieves the 2021 version of the expense policy will answer confidently and wrongly, and people will act on it.
So each source needs an owner who can say which content is authoritative, and the ingestion must prefer current, approved content: skip archived spaces, include last-updated dates, and show them with citations so readers can judge. Switching to a better model will not fix stale data, and that message matters for the executives who expect the model choice to be the key decision.
4Starting With One Source and One Group
I would start with one source that is valuable, reasonably clean and well governed, for example the engineering wiki and runbooks, for one defined user group such as the 400 engineers in the platform organisation. That slice has clear owners, mostly uniform permissions, and users who will give precise feedback. We define success in advance: for example, 60 percent of weekly active engineers use it, answers with citations are rated helpful in 70 percent of rated cases, and time to resolve common internal questions drops.
After 6 to 8 weeks we have real usage data, a labelled question set built from real questions, known failure patterns, and cost per question. That evidence is what justifies the next step, or tells us to stop.
- Permission-aware retrieval built and testedprerequisite for any source
- Pilot: engineering wiki for 400 engineerssuccess metrics agreed in advance
- Metrics met and no exposure incidents?YesAdd next sourceNoFix data or retrieval first
- Tickets, then code, with evaluation each timesource owners review permissions
- Contracts and personnel data lastonly with legal, security, strict scopes
5 steps in order. Play them, or step through them one at a time.
5Planning the Costs at Full Scale
Costs look trivial in a pilot and large at full scale, so we model them early. Ingestion and embedding: suppose all sources together are 5 million documents producing 50 million chunks; embedding them once is a one-time cost, and daily changes of 1 percent mean 500,000 chunks to re-embed each day. Storage: 50 million vectors at 4 KB each is about 200 GB before indexes and replicas. Model calls: if 10,000 employees ask 5 questions a day with 4,000 input tokens of context and 400 output tokens, that is 200 million input tokens and 20 million output tokens a day, whose cost depends on the model's price per million tokens. Changing the embedding model later means re-embedding everything again.
The point of this arithmetic is not precision. It shows which levers matter: the context size per question, the share of questions that can use a smaller model, and how much content really needs to be indexed.
| Cost item | Driver | Example size |
|---|---|---|
| Initial embedding | chunks x price per token | 50 million chunks once |
| Daily re-embedding | change rate | 500,000 chunks a day |
| Vector storage | chunks x vector size | about 200 GB plus indexes |
| Model calls | questions x tokens per question | 200M input, 20M output tokens a day |
| Model change | full re-embedding | repeat of the initial cost |
6Governance for Sensitive Sources
Contracts, personnel files, legal matters, security incidents and board materials need explicit decisions with legal, security and the data owners. For each, we decide whether it is in scope at all, who may query it, whether answers may quote it or only point to it, how long prompts and answers containing it are retained, and whether the model provider's contract permits it. Some sources will stay out entirely, and that is a legitimate outcome. These sources come last, after the permission design has been proven on lower-risk content, and each gets a named business owner who signs off.
7Follow-up questions
How do you answer an executive who wants everything indexed by next quarter?
I would show that indexing without permission review risks exposing confidential data on day one, and offer a fast first slice with real value instead, one source for one group in 6 to 8 weeks, with a clear roadmap of which sources follow and what each depends on. Early, measured value usually earns more support than a big launch.
How do you detect a permission leak if one happens?
We log every retrieval with the user, the chunks returned and their source permissions, run automated tests that ask questions as users without access and expect nothing back, and give users an easy way to report content they should not have seen. A leak is treated as a security incident with a review.
Should the assistant answer from personnel or contract data at all?
Only for the narrow groups who already have access in the source systems, such as HR for personnel files or the legal team for contracts, and only after legal approves the use. For everyone else the right behaviour is that this content simply does not exist in their search.
8Conclusion
In this answer, we ranked the risks of a company-wide knowledge assistant, with information exposure first, and made permission-aware retrieval a prerequisite that may require fixing over-shared sources. We saw that data quality and staleness drive answer quality more than the model, started with one well-governed source for a defined group with agreed metrics, modelled full-scale costs to find the levers, put sensitive sources under explicit governance with legal and security, and expanded source by source with evaluation at every step.
Open with
I would say the biggest risk is not a wrong answer but showing someone information they should not see, so permission-aware retrieval is a prerequisite. Every chunk keeps its source's access rules and every search filters by the asking user, and before ingesting a source we review its permissions with the owner, because many wiki pages and drives are over-shared and an assistant removes the obscurity that protected them today.
Then, if they want more
The second risk is quality, and that depends far more on data quality and staleness than on the model, so each source needs an owner who marks authoritative content and we cite sources with dates.
For sequencing, I would start with one valuable, well-governed source, for example the engineering wiki, for one group of a few hundred engineers, with success metrics agreed beforehand, and run it for six to eight weeks.
In parallel I would model full-scale costs, ingestion, re-embedding on change, storage and model calls per question, to see which levers matter, mainly context size and model choice. Contracts and personnel data need explicit governance with legal and security, with decisions on scope, access, retention and provider terms, and some may stay out entirely.
Then we expand source by source, each with its own evaluation set and permission review, and only move on when the metrics hold.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring AI reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "The company wants an assistant over all internal knowledge (wikis, tickets, code...": https://scrivio-interview-library.netlify.app/spring-boot/spring-ai/3000ff40ae/