Configuring jhDocs for AI Assist
In previous steps, we requested an AskJack agent and knowledge base and we set up our GitHub repo to keep our site content synced with AskJack.
After those 2 steps are performed, a GitHub workflow runs whenever you commit changes to the content in your site, updating your AskJack knowledge base, all behind the scenes.
We have one more configuration step, this time to turn on the AI Assist feature for your documentation site search.
In your site’s config.yaml file, you need to add the agent ID and knowledge base ID that you received from the AskJack team. Doing this lets jhDocs know that you already have an agent and knowledge base set up that it can query whenever the user enters search text.
- First open your site’s
config.yamlfile. - Under the
paramssection, add 2 new indented lines:aiAssistAgentIdspecifies your AskJack agent ID.aiAssistKbIdspecifies your AskJack knowledge base ID.
That’s all you need to add. After you have updated this and your site has been automatically rebuilt and deployed, your users will start seeing AskJack answers in their search results.