Skip to content

Conversation

evan-onyx
Copy link
Contributor

@evan-onyx evan-onyx commented Jun 30, 2025

Description

My Documents deleted some code that was critically important for search performance, this adds it back

How Has This Been Tested?

tested in UI

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

Copy link

vercel bot commented Jun 30, 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 Jun 30, 2025 10:44pm

@evan-onyx evan-onyx marked this pull request as ready for review June 30, 2025 22:43
@evan-onyx evan-onyx requested a review from a team as a code owner June 30, 2025 22:43
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

Restores critical search optimization parameters in backend/onyx/tools/tool_implementations/search/search_tool.py that were accidentally removed, preventing redundant computations during search.

  • Re-added precomputed_is_keyword, precomputed_keywords, and precomputed_query_embedding parameters to preserve pre-computed values during search operations
  • These parameters prevent expensive re-computation of keyword analysis and embeddings that were previously calculated
  • Improvement aligns with codebase's emphasis on search performance optimization as seen in preprocessing.py

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@evan-onyx evan-onyx enabled auto-merge June 30, 2025 22:49
@evan-onyx evan-onyx added this pull request to the merge queue Jul 1, 2025
Merged via the queue into main with commit 6523a38 Jul 1, 2025
13 of 16 checks passed
@evan-onyx evan-onyx deleted the bugfix/search-speedup branch July 1, 2025 02:49
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
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