Skip to content
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

Add 'Can you tell me about {search term}' as first search result #780

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

This PR adds a feature to the docs search so that the first result is always 'Can you tell me about {search term}', where clicking on it takes the user to inkeep Ask AI with the query pre-filled. This is similar to the example from resend.com/docs.

Changes

  • Modified the function in to add a custom 'Ask AI' item as the first result
  • Updated the rendering logic to handle this special item differently
  • When clicked, the custom item opens the inkeep Ask AI interface with the search term pre-filled

Testing

  • Verified that the 'Can you tell me about {search term}' item appears as the first result when searching
  • Confirmed that clicking on this item opens the inkeep Ask AI with the search term pre-filled

Link to Devin run: https://app.devin.ai/sessions/288bb62a629c4072a06fe3896bd4c40e

Co-Authored-By: sam@knock.app <sam@knock.app>
Copy link

vercel bot commented Feb 27, 2025

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:40pm

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: sam@knock.app <sam@knock.app>
Co-Authored-By: sam@knock.app <sam@knock.app>
Co-Authored-By: sam@knock.app <sam@knock.app>
Co-Authored-By: sam@knock.app <sam@knock.app>
Co-Authored-By: sam@knock.app <sam@knock.app>
devin-ai-integration bot and others added 2 commits February 27, 2025 22:00
Co-Authored-By: sam@knock.app <sam@knock.app>
Co-Authored-By: sam@knock.app <sam@knock.app>
…results

Co-Authored-By: sam@knock.app <sam@knock.app>
@samseely samseely force-pushed the devin/1740686568-add-ask-ai-to-search-results branch from 6b28107 to b85b038 Compare February 28, 2025 16:43
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.

1 participant