Skip to content

Conversation

evan-onyx
Copy link
Contributor

@evan-onyx evan-onyx commented May 16, 2025

Description

Addresses https://linear.app/danswer/issue/DAN-1980/answer-and-searchpipeline-refactor
Refactor the answer class and search pipeline. Still a WIP.

How Has This Been Tested?

n/a

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 May 16, 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 May 19, 2025 10:06pm

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

This PR refactors the search pipeline and answer class to improve code organization and query handling. The changes primarily involve:

  • Replaced search_request.query with prompt_builder.raw_user_query across multiple files for more direct query access
  • Moved from search_request.persona to direct persona access in GraphInputs for better configuration granularity
  • Renamed main_graph_builder to agent_search_graph_builder and removed test_mode parameter
  • Simplified reranking settings access by moving from search_request.rerank_settings to direct rerank_settings field
  • Improved error handling and validation for search tools and persona configurations

31 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue May 20, 2025
Merged via the queue into main with commit cac03c0 May 21, 2025
11 checks passed
@Weves Weves deleted the refactor-search-pipeline branch May 21, 2025 00:37
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 27, 2025
* v1 answer refactor

* fix tests

* good catch, tests

* more cleanup
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request May 27, 2025
* v1 answer refactor

* fix tests

* good catch, tests

* more cleanup
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* v1 answer refactor

* fix tests

* good catch, tests

* more cleanup
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* v1 answer refactor

* fix tests

* good catch, tests

* more cleanup
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