Skip to content

Fix Biel.ai integration and disable AI button in search widget#360

Merged
satyaog merged 3 commits intomila-iqia:masterfrom
satyaog:hotfix/aiassist
Mar 25, 2026
Merged

Fix Biel.ai integration and disable AI button in search widget#360
satyaog merged 3 commits intomila-iqia:masterfrom
satyaog:hotfix/aiassist

Conversation

@satyaog
Copy link
Copy Markdown
Member

@satyaog satyaog commented Mar 25, 2026

Summary

Updates the Biel.ai project ID, disables the "Ask AI" button in the search widget, and removes the search partial on RTD preview builds to avoid using tokens in our tests.

Changes

  • Fix biel-button project ID in overrides/main.html.
  • Added hide-ask-ai-button="true" to biel-search-button in overrides/partials/search.html to suppress the AI chat button within the search widget.
  • Updated biel-search-button attributes for clarity (placeholder text, formatting).
  • Added a pre-build step in .readthedocs.yaml to remove overrides/partials/search.html on RTD preview builds, preventing the Biel.ai search button from appearing in previews.

@satyaog satyaog requested a review from obilaniu as a code owner March 25, 2026 14:00
@satyaog satyaog changed the title Disable AI Assist in ReadTheDocs previews Disable ask-AI button and fix Biel.ai search in RTD previews Mar 25, 2026
@satyaog
Copy link
Copy Markdown
Member Author

satyaog commented Mar 25, 2026

Since this will also disable Biel.ai search bar from the preview, to see the change you will have to test the changes locally:

Before:

image

After:

image

Please note that for security reasons, Biel.ai blocks connections not initiated from docs.mila.quebec, so it is normal for the search results to be empty.

@satyaog satyaog changed the title Disable ask-AI button and fix Biel.ai search in RTD previews Disable Ask AI Mar 25, 2026
@satyaog satyaog requested review from lebrice and soline-b March 25, 2026 20:40
@lebrice
Copy link
Copy Markdown
Collaborator

lebrice commented Mar 25, 2026

@satyaog Shouldn't the search bar revert to the default from before we added biel.ai?

If when testing these changes locally, the search bar will be empty, then I just have to trust that it will work fine in prod and approve anyway?

@satyaog
Copy link
Copy Markdown
Member Author

satyaog commented Mar 25, 2026

No, if you want to test the search feature you can test it directly on docs.mila.quebec, is the same everywhere except for domains restrictions. Just remember that what is being removed here is the Ask AI features from the website and the search bar. So the semantic search will still work. If you want to test locally, you can also disable temporarily the domain restrictions in the Biel.ai settings

@satyaog satyaog changed the title Disable Ask AI Fix Biel.ai integration and disable AI button in search widget Mar 25, 2026
@satyaog
Copy link
Copy Markdown
Member Author

satyaog commented Mar 25, 2026

Rescoped this to fix Biel.ai project id instead of disabling Biel.ai Ask AI

Copy link
Copy Markdown
Collaborator

@lebrice lebrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it makes sense to keep the biel.ai thing even just for the semantic search, if it is much better than the search plugin of mkdocs.

@lebrice
Copy link
Copy Markdown
Collaborator

lebrice commented Mar 25, 2026

It would have been nice to be able to use the search bar on preview builds though, but it's not a big deal. I guess I can just checkout the code locally to test the search.

@satyaog satyaog merged commit 702744f into mila-iqia:master Mar 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants