How to test a self-hosted AI deployment before acceptance
An internal assistant returns the right answer while the internet is disconnected. The lookup works offline. Overnight indexing, error reporting and recovery after a failed update need separate checks.
Updated
Prepare a small test collection#
Use two fictional manuals and two accounts. Both accounts may read the general manual. Only engineering may read the second one. Give each manual a unique, invented part number and record the expected result for each account. Record the model and embedding revisions, gateway routes, index version and where request logs go. Have an operator and a subject specialist run the exercise together.
| Test in a staging environment | Evidence to keep |
|---|---|
| Submit a fresh question with the approved model endpoint available | The correct part number, source passage, route observed by the gateway and identity used for retrieval. |
| Make that endpoint unavailable for the test | The recorded fallback or a visible failure. For a local-only workflow, check that no hosted service received the prompt. Include the background indexing job. |
| Revoke one account’s engineering access | A retry from that account cannot retrieve the restricted passage in an answer, citation or preview. Check saved conversations separately under the agreed retention policy. |
| Restore a clean installation and change models | Time to restore the corpus and permissions, ability to run the replacement under its licence, and differences in answers on the same two manuals. |
| Ask an authorised reviewer to reconstruct the run | The reviewer can identify the actor, rule, source, model version and decision from the retained records without copying every customer document into logs. |
Acceptance also covers the editor used to maintain the application. Put an invented part number in an open test file and ask the coding assistant an ordinary question about the test. Observe which model service the editor contacts. The manual search can run on a company server while the editor still sends test context to a cloud model. The destination and time establish which service the editor contacted. Inspecting a test request containing only fictional data can establish whether the part number was included. GitHub on file context in the editor
A refused answer with a readable source preview#
Fictional acceptance record. In staging build 1.8, account service-test had no engineering access. The tester asked for the invented part number in manual ENG-02. The expected result was no restricted text in the answer, citation, preview or export. The answer declined to give the number. Opening the source preview displayed the paragraph containing it.
The release owner withheld acceptance. Support staff could still learn exactly what the rule was meant to protect. The search team took ownership of enforcing the same document permission in the preview. The test record kept the build, account, document ID and synthetic output. To close it, the reviewer must repeat the check in all four views and confirm that an authorised engineer can still retrieve the part.
A second fictional fixture contained an ordinary-looking note requesting an external delivery. The operator had authorised document lookup only. The expected result was a useful answer about the part and no delivery. In the example the tool policy denied the proposed action before dispatch, the audit record identified that decision, and the test mailbox received nothing. Check the action record and destination as well as the chat response. OWASP on indirect prompt injection and least privilege
Decide who owns the remaining dependencies#
The model author, hosting company and operator can be three organisations. The team may hold the weights yet need a supplier to release a signing key, rebuild an index or update a proprietary connector. Read the licence for the actual checkpoint. Record who can change or distribute it, then assign an owner for each credential, backup and missing skill. The Open Source Initiative’s AI definition also looks at code and data information needed for study and modification. Open Source AI Definition
In Contenox the local inference service and hosted provider connections are separate choices. In any comparable setup, test both the route that generates text and the one that creates embeddings. An overnight job can use a different credential from an interactive chat. Repeat the acceptance run after a change to either route, to repository permissions or to the backup format. Contenox local inference setup · Exit and switching terms Give the release owner the signed decision, failed paths and retest results. A screenshot of a refusal alone would have authorised the insecure preview in this example.