Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to not re-index #4157

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add option to not re-index #4157

wants to merge 7 commits into from

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Feb 28, 2025

Description

https://linear.app/danswer/issue/DAN-1492/add-options-to-address-vespa-memory-issues-at-scale

Allows for:

  1. Instant switch. Switches search settings without re-indexing in the background.
  2. Switching the vector floating point precision. Supports either bfloat16 or float (default).
  3. For OpenAI embedding models, allows for cutting the dimensionality.

This is hidden for multi-tenant for now, as we should probably just provide a default / not expose this.

Also includes some misc modal cleanup (standardizing button layout in the bottom right) + label standardization.

How Has This Been Tested?

Tested all locally (switching between all different options).

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 Mar 2, 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 Mar 3, 2025 2:40am

secondary_index_building=len(search_settings_list) > 1,
db_session=db_session,
):
continue

reindex = False
if search_settings_instance.id == search_settings_list[0].id:
if search_settings_instance.status == IndexModelStatus.PRESENT:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rkuo-danswer any specific reason we did it based on ordering rather than checking the status?

@Weves Weves marked this pull request as ready for review March 3, 2025 02:28
@Weves Weves requested a review from a team as a code owner March 3, 2025 02:28
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.

1 participant