Most documentation assistants index the docs site. That inherits every problem the docs have: pages describing a deprecated parameter, an example that stopped working two releases ago, a guide written against the previous major version. The assistant then reproduces those errors confidently, and a developer wastes an hour before discovering the documentation was wrong rather than their code.
The alternative is to ground the system in machine-readable sources of truth: the API specification, the SDK source, the type definitions, the changelog, the migration guides. Those are generated from or checked against the running system, so they are correct by construction in a way prose is not.
Prose documentation still matters — it carries intent and idiom that a spec cannot. But it is a secondary source, and where the two disagree the spec wins and the system should say so. That single ordering removes most of the ways a developer assistant misleads people.