From 28c1fa17c8e96f03e4f7e9509413bf7189380ad7 Mon Sep 17 00:00:00 2001 From: Jojo Ortiz Date: Thu, 14 Sep 2023 13:35:56 -0700 Subject: [PATCH] create separate RAGFeedback component and FeedbackWrapper as a component factory --- .../src/lib/Dashboards/FeedbackWrapper.svelte | 14 ++ .../src/lib/Dashboards/RAGFeedback.svelte | 133 ++++++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 pykoi/frontend/src/lib/Dashboards/FeedbackWrapper.svelte create mode 100644 pykoi/frontend/src/lib/Dashboards/RAGFeedback.svelte diff --git a/pykoi/frontend/src/lib/Dashboards/FeedbackWrapper.svelte b/pykoi/frontend/src/lib/Dashboards/FeedbackWrapper.svelte new file mode 100644 index 0000000..ad4c687 --- /dev/null +++ b/pykoi/frontend/src/lib/Dashboards/FeedbackWrapper.svelte @@ -0,0 +1,14 @@ + + +{#if feedback === "vote"} + +{:else if feedback === "rag"} + +{:else} + +{/if} diff --git a/pykoi/frontend/src/lib/Dashboards/RAGFeedback.svelte b/pykoi/frontend/src/lib/Dashboards/RAGFeedback.svelte new file mode 100644 index 0000000..5745dc1 --- /dev/null +++ b/pykoi/frontend/src/lib/Dashboards/RAGFeedback.svelte @@ -0,0 +1,133 @@ + + +