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

AI enhanced search interface #205

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

AI enhanced search interface #205

wants to merge 8 commits into from

Conversation

jespino
Copy link
Member

@jespino jespino commented Jun 12, 2024

Description

This PR adds an AI-powered search interface to the Mattermost AI plugin, allowing users to perform natural language searches across their accessible channels and messages.

Key changes include:

  • Added a new search endpoint in the server API that creates AI-powered search conversations
  • Integrated with Mattermost's search UI by registering custom search components:
    • Custom search button with Copilot branding
    • Search suggestions showing recent searches and AI-powered suggestions
    • Search hints explaining the Copilot search capabilities
  • Enhanced the LLMBot post component to properly display search results with question/answer formatting
  • Added license checks to ensure the search feature is only available with appropriate licensing
  • Added i18n support for search-related strings

The search interface allows users to:

  • Ask natural language questions about content in their channels
  • See suggested AI-powered search queries
  • View results in a conversational format with clear question/answer separation
  • Access their recent search history

This feature requires an enterprise license to use.

Testing Notes

  1. Verify search interface appears with Copilot branding
  2. Test natural language searches work and return relevant results
  3. Verify suggested searches work when clicked
  4. Confirm search results show proper question/answer formatting
  5. Verify feature is properly gated behind enterprise license
  6. Test with non-English locales to verify i18n works correctly

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