An internal AI assistant that admits when it does not know

AI team
6 min read
AI
Share this post
The answer that sounds right

The quickest way to lose trust in an internal assistant is a confident, well written answer that is wrong. Someone follows an outdated policy or quotes a price that changed last year, and from then on nobody relies on the tool. A useful assistant has to be accurate when it answers and honest when it cannot.

Answer from your documents, not from memory

A language model on its own answers from what it learned in training, which knows nothing about your company. Retrieval fixes that. When a question arrives, the system searches your own documents for the most relevant passages and gives only those to the model, with the instruction to answer from them.

Search quality decides answer quality. We combine keyword search, which is good at exact terms like product codes, with semantic search, which is good at paraphrased questions. Documents are split into sections that keep their headings, so a retrieved passage still makes sense on its own.

Cite every answer

Each answer links to the passages it came from. Users can check a claim in one click, and reviewers can see immediately whether a bad answer came from a bad document or from the model misreading a good one. Those are different problems with different fixes.

Teach it to say no

When retrieval finds nothing relevant enough, the right response is a short refusal: I could not find this in the documents I can see, and here is who to ask. We set a relevance threshold, test it against questions we know are not covered, and treat a confident answer to one of those as a failure.

Respect who can see what

An assistant must never become a way around permissions. Every document carries the access rules of its source system, and search only returns passages the person asking is allowed to read. This is enforced in the search layer, not left to the model.

Measure it like any other system
  • A test set of real questions with known correct answers
  • Questions that should be refused, to check it does refuse
  • Citation accuracy: do the sources support the answer
  • Feedback buttons in the interface, reviewed every week

Where data must stay inside the company, the whole pipeline can run on models hosted in your own environment. Smaller local models answer well when retrieval is strong, which is one more reason to invest in search first.

Next article
Why your backtest looks better than your live results

Look-ahead bias, missing costs and overfitting quietly inflate a backtest. Here is how we test a strategy before it touches real capital.

Start a project

Let’s discuss your objectives.

A new product, a complex integration, or a trading platform. Share your goals, and we will define a clear path to delivery.