Skip to content

Conversation

Orbital-Web
Copy link
Contributor

Description

Added original_query field to SearchQuery model + improved prompting for a better slack search expansion

How Has This Been Tested?

Locally

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Orbital-Web Orbital-Web requested a review from a team as a code owner July 9, 2025 11:18
Copy link

vercel bot commented Jul 9, 2025

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

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 11:20am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Adds original_query field across search-related models to preserve raw user queries, with improved Slack search expansion prompting for better search relevance.

  • Added original_query field to SearchQuery, SearchRequest, and SearchToolOverrideKwargs models to preserve user's raw input throughout the search pipeline
  • Updated federated_search.py prompts to emphasize using original query terms while allowing intelligent expansion
  • Modified slack_search.py to use original_query instead of preprocessed query for building Slack-specific searches
  • Changes are minimal and maintain backward compatibility with optional fields defaulting to None

7 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

@Weves Weves merged commit bcf0ef0 into main Jul 9, 2025
12 of 14 checks passed
@Weves Weves deleted the slack-expansion-improvements branch July 9, 2025 16:23
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.

2 participants