Skip to content

Add an AI search component #1098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add an AI search component #1098

wants to merge 3 commits into from

Conversation

yashovardhan
Copy link
Member

An experiment to add AI Search component in docusaurus. Uses OpenAI with algolia search.

@yashovardhan yashovardhan added the enhancement New feature or request label Apr 28, 2025
Copy link

vercel bot commented Apr 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2025 6:45pm

Comment on lines +998 to +1008
aiButton.innerHTML = `
<button class="ai-search-button-header" aria-label="Ask Web3Auth AI Bot to answer your question">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor">
<path d="M21.928 11.607c-.202-.488-.635-.605-.928-.633V8c0-1.103-.897-2-2-2h-6V4.61c.305-.274.5-.668.5-1.11a1.5 1.5 0 0 0-3 0c0 .442.195.836.5 1.11V6H5c-1.103 0-2 .897-2 2v2.997l-.082.006A1 1 0 0 0 1.99 12v2a1 1 0 0 0 1 1H3v5c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5a1 1 0 0 0 1-1v-1.938a1.006 1.006 0 0 0-.072-.455zM5 20V8h14l.001 3.996L19 12v2l.001.005.001 5.995H5z"></path>
<ellipse cx="8.5" cy="12" rx="1.5" ry="2"></ellipse>
<ellipse cx="15.5" cy="12" rx="1.5" ry="2"></ellipse>
<path d="M8 16h8v1H8z"></path>
</svg>
Ask Web3Auth AI Bot about "${query}"
</button>
`;

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
DOM text
is reinterpreted as HTML without escaping meta-characters.

Copilot Autofix

AI 8 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant