[ADD] discuss_ai_search: AI-based natural language search for Discuss#1351
Draft
pasaw-odoo wants to merge 1 commit into
Draft
[ADD] discuss_ai_search: AI-based natural language search for Discuss#1351pasaw-odoo wants to merge 1 commit into
pasaw-odoo wants to merge 1 commit into
Conversation
Discuss's built-in message search only matches literal keywords/substrings in message text. It misses relevant messages that use different wording than the search query, and gives no way to ask a question and get back the matching conversation in context. This adds an AI search panel to the Discuss sidebar that lets the user type a natural-language prompt and get back the relevant messages from the channel, even when they don't contain the exact words typed: - discuss_channel.action_ask_ai sends the prompt with the channel's message history to an LLM (Gemini), which returns a natural-language answer plus the ids of the messages that actually match the intent of the prompt, so results stay linked to the real conversation instead of just literal keyword hits. - discuss_channel.action_summarize_ai adds a one-click AI summary of the channel (short paragraph + key-points bullet list) for quickly catching up on long threads. - static/src/thread_action.js and static/src/ai_search_panel.js wire both actions into a new Discuss sidebar panel. This makes Discuss search understand intent rather than exact wording, surfacing relevant chats even when the search prompt doesn't share the same words as the original messages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Discuss's built-in message search only matches literal keywords/substrings in message text. It misses relevant messages that use different wording than the search query, and gives no way to ask a question and get back the matching conversation in context.
This adds an AI search panel to the Discuss sidebar that lets the user type a natural-language prompt and get back the relevant messages from the channel, even when they don't contain the exact words typed:
This makes Discuss search understand intent rather than exact wording, surfacing relevant chats even when the search prompt doesn't share the same words as the original messages.