feat: integrate docsearch v4 beta with ask ai#342
Merged
Conversation
Co-authored-by: Paul Razvan Berg <[email protected]>
Member
Author
|
@PaulRBerg lmk if it looks good now. If yes, can you plz approve? |
PaulRBerg
reviewed
Aug 8, 2025
PaulRBerg
reviewed
Aug 8, 2025
PaulRBerg
approved these changes
Aug 8, 2025
Member
PaulRBerg
left a comment
There was a problem hiding this comment.
LGTM now, let's rock-and-roll with this
This was referenced Aug 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates Docsearch V4 which comes with Ask AI. Ask AI is managed through Algolia dashboard and uses an OpenAI API key.
Currently, I am using the default prompt but can be adjusted to our needs here.
Since Docusaurus currently does not officially support V4 (there is an open PR for that), I had to create a custom search component which will be removed once that PR is merged in the Docusaurus repo.
This PR also removes Chef AI integration.
Merging this PR would address the following issues:
We must first test it properly to verify that its indeed better than both Chef AI and "Ask in ChatGPT" option.
"Ask in ChatGPT" is free whereas this will cost us since it uses our OpenAI API key. However, as Paul mentioned here that there is some value in having an iframed AI bot in the docs site.