Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 7 Next »

image-20240320-150500.png

Overview

One of the key pieces AI can be leveraged for in a collaboration platform is search.

This spec outlines the first phase of work to improve our search experience to make way for AI-powered search. The remaining work on improving the search experience can be found in the UX Spec for Enhanced Search.

The core problems we’re aiming to solve with this work:

  • Incorporate AI-powered search as a new method to search by topics or questions across the workspace.

  • Take initial steps toward a unified search experience to find channels, messages, files, and people that is forgiving, more intuitive, and eliminates the need to know which search modal to use for what you’re looking for.

Quote from a customer regarding AI search - Productboard

They are thinking of AI summaries as "advanced search" that can find related conversation/context across channels + threads, then collate an answer to a question based on the intent

Querying LLMs based on private data. Our channel-based context made sense to them. An expansion is to form the query context based on all data (threads, etc.) a user has access to. The existing auditing and channel-based permission controls are a good fit.

Picture being able to ask, "What's happening at Cape Canaveral today?" and receiving a concise summary of the day's or week's major launch activities, schedule changes, and key personnel, all derived from the data within these public Mattermost channels and other data sources…this tool could greatly benefit…other units, and could scale to meet diverse needs…may face similar information overload challenges.

Quotes from NPS/Survey Feedback:

Add AI integrations for message search in a channel or a thread


A new global search modal that incorporates AI Copilot

Anatomy of the search modal

The new search modal is made up of the following pieces. To start it will just include tabs for Messages, Files and AI Copilot, but will later incorporate other tabs for the universal search UX.

image-20240324-180240.png

Keyboard shortcuts

Cmd/Ctrl-F - Message search (in active channel)

This shortcut will open the new search modal with the ‘Messages’ tab active and the filter for the currently active channel added to the input (like we currently do).

If the modal is already open to a different search mode, this shortcut will also switch to the message search.

TBD - Switch search mode/tab

This shortcut enables users to quickly switch to the next or previous search mode/tab. This shortcut should only work while the search modal is open.

Special characters typed in an empty input

  • Typing the ~ character can immediately switch to the ‘Channel’ mode (if not already there)

  • Typing the @ character can immediately switch to the ‘People’ mode (if not already there)

Message Search

Default state

When this tab is active, before the user starts typing we show a placeholder message in the search input and recent searches below (if applicable). Ideally, we show recent searches in the default state, but this spec aims to reduce the initial scope.

image-20240324-182134.png

Typing state

In the Messages search mode, results do not show as users are typing (due to performance concerns). As the user starts typing a ‘clear’ button displays and the tips change to show ‘ENTER to Search’

image-20240324-182859.png

Enter to execute search

Because we can’t show results for messages as you type, a hint Enter to search appears on the right side of the search input.

Modifiers added to search

When a modifier is used in search, the body of the search modal is replaced with the autocomplete results based on the filter.

image-20240324-182954.png

Once a filter is selected from the autocomplete results, a chip is added to the search input and users can either hit ENTER to search or add further keywords/filters.

image-20240324-183044.png

Tips

At the bottom of the modal, a tip to use search modifiers appears. Clicking on one of the modifiers adds it to the input where the cursor is placed at the time.

Adjust the height of the dialog depending on the results

Depending on the available autocomplete/suggested results, the height of the search dialog should be dynamic.

Message search results

Search results for messages should show just like they do now in the RHS. Consider adding a title 'Results for “{search term}” above the results.

image-20240320-151854.png

File Search

File search behaves similarly to the current file search, but uses the tab pattern instead of the chip filter we currently have.

Default state

Before the user starts typing we show a placeholder message in the search input and recent file searches and recently added files below. Show up to 5 recent file search terms and then show up to 20 recently added files (from channels you’re a member of).

image-20240324-180957.png

Typing state

Once users start typing, we will not initially be able to show results as you type (as we’re keeping scope here smaller). Once users start typing, a hint ‘Enter to search’ displays

image-20240324-183205.png

Tips

The modifier tips also shows for files and includes an additional modifier Ext: to filter by a specific extension.

File search results

Search results for files should show just like they do now in the RHS. Consider adding a title 'Results for “{search term}” above the results.

image-20240319-163547.png

AI Copilot Search

Default state

Before the user begins typing, the input shows placeholder text ‘Ask AI Copilot a question or search by topic’ and we show up to 5 recent searches then up to 20 suggestions below that.

image-20240324-183250.png

Typing state

As the user starts typing, AI provides suggested questions/searches based on what the user is typing.

image-20240324-183259.png

Adjust the height of the dialog depending on the number of results

Depending on the available autocomplete/suggested results, the height of the search dialog should be dynamic.

Tips

On the AI Copilot tab, we show a tip stating “AI Copilot searches all channels and messages you have access to”

Results

The AI Copilot search opens up the AI Copilot RHS to stream the search results. The results include the original question asked as the title and the answer displayed below. It also includes linked numbers in the response as well as a sources section and a related questions section.

image-20240319-161141.png

Sources

When sources are expanded, we can show permalink previews for each source

image-20240319-161157.png

Related questions

The related questions section expands to show AI-generated adjacent/related questions that might be relevant for further answers or exploration on a particular topic.

Clicking on any of these questions will open up a new search thread with AI Copilot.

image-20240319-161209.png


Resources

  • No labels