Knowledge Sources
Plain AI becomes significantly more powerful the more information it has about your product.
By default, Plain AI will use all information in your Help Centers, but you can also teach Plain about your product by adding knowledge sources in Plain AI → Knowledge Sources.
Indexing your documentation
To make sure Plain AI has access to your entire help site, you can index your documentation by providing either individual page URLs or a sitemap.
Your sitemap is usually found at a URL like https://your-docs.com/sitemap.xml.
You can add your own documentation under Plain AI → Knowledge sources.
Re-indexing
Knowledge sources are automatically re-indexed every week, so changes to your documentation will be picked up.
CLI automation example
If your documentation changes frequently, you can automate re-indexing with the Plain CLI. For setup instructions, see the Plain CLI documentation.
Gitbook Visitor Authentication Support
Plain will not automatically re-index URLs that use Gitbook Visitor Authentication. This can be done by using our API to create and delete the Knowledge Source when the token expires.
Plain supports ingesting Gitbook documentation that is behind Visitor Authentication (VA). Plain can ingest them by accepting a JWT on the sitemap URL.
Generate a JWT on your side and append it as a jwt_token query parameter on the sitemap URL you give us — for example, https://docs.yourcompany.com/sitemap-pages.xml?jwt_token=<jwt>.