From 0a9b8546671d5c9448c4b60d95ebb466f204c127 Mon Sep 17 00:00:00 2001 From: Weves Date: Mon, 29 Jan 2024 18:10:26 -0800 Subject: [PATCH] Make final add conector modal slightly prettier --- web/src/app/admin/models/embedding/page.tsx | 144 +++++++++++--------- 1 file changed, 76 insertions(+), 68 deletions(-) diff --git a/web/src/app/admin/models/embedding/page.tsx b/web/src/app/admin/models/embedding/page.tsx index a3fb394af..5f4cd1c93 100644 --- a/web/src/app/admin/models/embedding/page.tsx +++ b/web/src/app/admin/models/embedding/page.tsx @@ -146,13 +146,20 @@ function Main() { )} {showAddConnectorPopup && ( - +
- Embeding model successfully selected 🙌 + Embeding model successfully selected{" "} + 🙌

- To complete the initial setup, let's add a connector. + To complete the initial setup, let's add a connector! +
+
+ Connectors are the way that Danswer gets data from your + organization's various data sources. Once setup, we'll + automatically sync data from your apps and docs into Danswer, so + you can search all through all of them in one place.
@@ -213,76 +220,77 @@ function Main() { ) )} - {!newModelSelection ? ( -
- {currentModel ? ( - <> - Switch your Embedding Model - - - If the current model is not working for you, you can update your - model choice below. Note that this will require a complete - re-indexing of all your documents across every connected source. - We will take care of this in the background, but depending on - the size of your corpus, this could take hours, day, or even - weeks. You can monitor the progress of the re-indexing on this - page. - - - ) : ( - <> - Choose your Embedding Model - - )} - - modelOption.model_name !== currentModelName - )} - setSelectedModel={onSelect} - /> -
- ) : ( - connectors && - connectors.length > 0 && ( + {!showAddConnectorPopup && + (!newModelSelection ? (
- Current Upgrade Status -
-
- Currently in the process of switching to: -
- + {currentModel ? ( + <> + Switch your Embedding Model - + + If the current model is not working for you, you can update + your model choice below. Note that this will require a + complete re-indexing of all your documents across every + connected source. We will take care of this in the background, + but depending on the size of your corpus, this could take + hours, day, or even weeks. You can monitor the progress of the + re-indexing on this page. + + + ) : ( + <> + Choose your Embedding Model + + )} - - The table below shows the re-indexing progress of all existing - connectors. Once all connectors have been re-indexed, the new - model will be used for all search queries. Until then, we will - use the old model so that no downtime is necessary during this - transition. - - - {isLoadingOngoingReIndexingStatus ? ( - - ) : ongoingReIndexingStatus ? ( - - ) : ( - + modelOption.model_name !== currentModelName )} -
+ setSelectedModel={onSelect} + />
- ) - )} + ) : ( + connectors && + connectors.length > 0 && ( +
+ Current Upgrade Status +
+
+ Currently in the process of switching to: +
+ + + + + + The table below shows the re-indexing progress of all existing + connectors. Once all connectors have been re-indexed, the new + model will be used for all search queries. Until then, we will + use the old model so that no downtime is necessary during this + transition. + + + {isLoadingOngoingReIndexingStatus ? ( + + ) : ongoingReIndexingStatus ? ( + + ) : ( + + )} +
+
+ ) + ))}
); }