The app uses Xata AI to query ChatGPT with context from the up-to-date docs. This provides more recent information and reduces hallucinations. It uses this high-level algorithm:<p><pre><code> - Pass the question to ChatGPT and ask it to provide keywords
- Use the Xata search functionality to retrieve the most relevant docs
- Form a prompt using this context and the question and pass it to ChatGPT
- This blog post provides more details on the general approach
</code></pre>
All the code is open source: <a href="https://github.com/xataio/ask-your-stack">https://github.com/xataio/ask-your-stack</a><p>The web-crawler can be found here: <a href="https://github.com/tsg/xata-crawler">https://github.com/tsg/xata-crawler</a><p>I think this is similar to GitHub Copilot for Docs but I don't have access to it.