@burdenoff/microfe-botmanor 2026.1127.3 → 2026.1127.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/botlit/pages/AgentTestChatPage.js +95 -94
- package/dist/botlit/pages/AgentTestChatPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +327 -328
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +285 -289
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +457 -453
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +229 -228
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +324 -323
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/shared/hooks/useTr.js +1 -1
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
+
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
+
import { isNative as n, nativeImpact as r, nativeNotify as i } from "../../utils/nativeBridge.js";
|
|
4
|
+
import { BOTMANOR_PERMISSIONS as a } from "../permissions/botmanorPermissions.js";
|
|
5
|
+
import { BotmanorPermissionGate as o } from "../permissions/useBotmanorPermissions.js";
|
|
6
|
+
import { PageLayout as s } from "../components/PageLayout.js";
|
|
7
|
+
import { EmptyState as c } from "../components/EmptyState.js";
|
|
8
|
+
import { Card as l, CardContent as u, CardDescription as d, CardHeader as f, CardTitle as p } from "../components/Card.js";
|
|
9
|
+
import { Button as m } from "../components/Button.js";
|
|
10
|
+
import { Badge as h, StatusBadge as g } from "../components/Badge.js";
|
|
11
|
+
import { FormField as _, Input as v, Textarea as y } from "../components/Input.js";
|
|
12
|
+
import { useCreateRetrievalProfile as b, useDeleteRetrievalProfile as x, useRetrievalProfile as ee, useUpdateRetrievalProfile as S } from "../hooks/useRetrievalProfiles.js";
|
|
13
|
+
import { formatRelativeTime as C } from "../utils/formatters.js";
|
|
13
14
|
import "../permissions/index.js";
|
|
14
|
-
import { useEffect as
|
|
15
|
-
import { PagePurpose as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { useParams as
|
|
18
|
-
import { ArrowLeft as
|
|
15
|
+
import { useEffect as w, useState as T } from "react";
|
|
16
|
+
import { PagePurpose as E, ThemedSelect as D } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
|
+
import { useParams as j } from "react-router";
|
|
19
|
+
import { ArrowLeft as M, CheckSquare as N, Edit as te, FileText as ne, Search as re, Settings as P, Target as ie, Trash2 as ae } from "lucide-react";
|
|
19
20
|
import { toast as F } from "sonner";
|
|
20
21
|
// src/botlit/pages/RetrievalProfileDetailPage.tsx
|
|
21
22
|
var I = {
|
|
@@ -85,169 +86,169 @@ function H(e, t) {
|
|
|
85
86
|
return e.trim() !== "" && Number.isFinite(n) ? n : t;
|
|
86
87
|
}
|
|
87
88
|
var U = ({ isNew: z = !1 }) => {
|
|
88
|
-
let { profileId:
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
}, [
|
|
92
|
-
title: "Loading...",
|
|
93
|
-
children: /* @__PURE__ */
|
|
89
|
+
let U = e(), { profileId: W } = j(), { navigateTo: G } = t(), { data: K, loading: q, refetch: oe } = ee(z ? void 0 : W), { create: se, loading: ce } = b(), { update: le, loading: ue } = S(), { remove: de, loading: J } = x(), [Y, X] = T(z), [fe, Z] = T(!1), [Q, $] = T(I);
|
|
90
|
+
if (w(() => {
|
|
91
|
+
K && !z && $(B(K));
|
|
92
|
+
}, [K, z]), q && !z) return /* @__PURE__ */ k(s, {
|
|
93
|
+
title: U("botlit.retrievalProfileDetail.loading", "Loading..."),
|
|
94
|
+
children: /* @__PURE__ */ k("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
94
95
|
});
|
|
95
|
-
if (!
|
|
96
|
-
title: "Profile Not Found",
|
|
97
|
-
children: /* @__PURE__ */
|
|
96
|
+
if (!K && !z) return /* @__PURE__ */ k(s, {
|
|
97
|
+
title: U("botlit.retrievalProfileDetail.profileNotFound", "Profile Not Found"),
|
|
98
|
+
children: /* @__PURE__ */ k(c, {
|
|
98
99
|
kind: "not-found",
|
|
99
100
|
illustration: "empty-files",
|
|
100
|
-
title: "Profile Not Found",
|
|
101
|
-
description: "The retrieval profile doesn't exist.",
|
|
102
|
-
action: /* @__PURE__ */
|
|
103
|
-
onClick: () =>
|
|
104
|
-
children: "Back to Profiles"
|
|
101
|
+
title: U("botlit.retrievalProfileDetail.profileNotFound", "Profile Not Found"),
|
|
102
|
+
description: U("botlit.retrievalProfileDetail.theRetrievalProfileDoesnT", "The retrieval profile doesn't exist."),
|
|
103
|
+
action: /* @__PURE__ */ k(m, {
|
|
104
|
+
onClick: () => G("retrieval-profiles"),
|
|
105
|
+
children: U("botlit.retrievalProfileDetail.backToProfiles", "Back to Profiles")
|
|
105
106
|
})
|
|
106
107
|
})
|
|
107
108
|
});
|
|
108
|
-
let
|
|
109
|
-
if (!Q.name.trim()) F.error("Name is required");
|
|
109
|
+
let pe = async () => {
|
|
110
|
+
if (!Q.name.trim()) F.error(U("botlit.retrievalProfileDetail.nameIsRequired", "Name is required"));
|
|
110
111
|
else try {
|
|
111
112
|
if (z) {
|
|
112
|
-
let e = await
|
|
113
|
-
F.success(
|
|
113
|
+
let e = await se(V(Q));
|
|
114
|
+
F.success(U("botlit.retrievalProfileDetail.profileNameCreated", "Profile \"{{name}}\" created", { name: e.name })), G(`retrieval-profiles/${e.id}`);
|
|
114
115
|
return;
|
|
115
116
|
}
|
|
116
|
-
if (!
|
|
117
|
-
await
|
|
118
|
-
profileId:
|
|
117
|
+
if (!W) return;
|
|
118
|
+
await le({
|
|
119
|
+
profileId: W,
|
|
119
120
|
input: V(Q)
|
|
120
|
-
}), await
|
|
121
|
+
}), await oe(), F.success(U("botlit.retrievalProfileDetail.retrievalProfileUpdated", "Retrieval profile updated")), X(!1);
|
|
121
122
|
} catch (e) {
|
|
122
|
-
F.error(e instanceof Error ? e.message : "Failed to save retrieval profile");
|
|
123
|
+
F.error(e instanceof Error ? e.message : U("botlit.retrievalProfileDetail.failedToSaveRetrievalProfile", "Failed to save retrieval profile"));
|
|
123
124
|
}
|
|
124
|
-
},
|
|
125
|
-
if (
|
|
126
|
-
await
|
|
125
|
+
}, me = async () => {
|
|
126
|
+
if (W) try {
|
|
127
|
+
await de(W), n() && i("success"), F.success(U("botlit.retrievalProfileDetail.retrievalProfileDeleted", "Retrieval profile deleted")), G("retrieval-profiles");
|
|
127
128
|
} catch (e) {
|
|
128
|
-
|
|
129
|
+
n() && i("error"), F.error(e instanceof Error ? e.message : U("botlit.retrievalProfileDetail.failedToDeleteRetrievalProfile", "Failed to delete retrieval profile"));
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
title: /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ k(s, {
|
|
133
|
+
title: /* @__PURE__ */ A("div", {
|
|
133
134
|
className: "flex items-center gap-3",
|
|
134
135
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ k(m, {
|
|
136
137
|
variant: "ghost",
|
|
137
138
|
size: "icon",
|
|
138
|
-
onClick: () =>
|
|
139
|
-
children: /* @__PURE__ */
|
|
139
|
+
onClick: () => G("retrieval-profiles"),
|
|
140
|
+
children: /* @__PURE__ */ k(M, { size: 20 })
|
|
140
141
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ k(re, {
|
|
142
143
|
size: 24,
|
|
143
144
|
className: "text-primary"
|
|
144
145
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("div", {
|
|
146
147
|
className: "flex items-center gap-2",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
-
}), !z &&
|
|
148
|
+
children: [/* @__PURE__ */ k("span", { children: z ? U("botlit.retrievalProfileDetail.newRetrievalProfile", "New Retrieval Profile") : K?.name }), !z && K && /* @__PURE__ */ k(g, { status: K.status })]
|
|
149
|
+
}), !z && K?.description && /* @__PURE__ */ k("p", {
|
|
149
150
|
className: "text-sm font-normal text-text-secondary",
|
|
150
|
-
children:
|
|
151
|
+
children: K.description
|
|
151
152
|
})] })
|
|
152
153
|
]
|
|
153
154
|
}),
|
|
154
|
-
actions: /* @__PURE__ */
|
|
155
|
+
actions: /* @__PURE__ */ k("div", {
|
|
155
156
|
className: "flex gap-2",
|
|
156
|
-
children: Y ? /* @__PURE__ */ O
|
|
157
|
+
children: Y ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(m, {
|
|
157
158
|
variant: "outline",
|
|
158
159
|
onClick: () => {
|
|
159
|
-
z ?
|
|
160
|
+
z ? G("retrieval-profiles") : (K && $(B(K)), X(!1));
|
|
160
161
|
},
|
|
161
|
-
children: "Cancel"
|
|
162
|
-
}), /* @__PURE__ */
|
|
163
|
-
onClick:
|
|
164
|
-
isLoading:
|
|
165
|
-
children: z ? "Create Profile" : "Save Changes"
|
|
166
|
-
})] }) : /* @__PURE__ */ O
|
|
167
|
-
permission:
|
|
168
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: U("botlit.retrievalProfileDetail.cancel", "Cancel")
|
|
163
|
+
}), /* @__PURE__ */ k(m, {
|
|
164
|
+
onClick: pe,
|
|
165
|
+
isLoading: ce || ue,
|
|
166
|
+
children: z ? U("botlit.retrievalProfileDetail.createProfile", "Create Profile") : U("botlit.retrievalProfileDetail.saveChanges", "Save Changes")
|
|
167
|
+
})] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(o, {
|
|
168
|
+
permission: a.RETRIEVAL_PROFILE_UPDATE,
|
|
169
|
+
children: /* @__PURE__ */ k(m, {
|
|
169
170
|
variant: "outline",
|
|
170
|
-
leftIcon: /* @__PURE__ */
|
|
171
|
+
leftIcon: /* @__PURE__ */ k(te, { size: 16 }),
|
|
171
172
|
onClick: () => {
|
|
172
|
-
|
|
173
|
+
K && $(B(K)), X(!0);
|
|
173
174
|
},
|
|
174
|
-
children: "Edit"
|
|
175
|
+
children: U("botlit.retrievalProfileDetail.edit", "Edit")
|
|
175
176
|
})
|
|
176
|
-
}),
|
|
177
|
+
}), fe ? /* @__PURE__ */ A("div", {
|
|
177
178
|
className: "flex gap-2",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ k(m, {
|
|
179
180
|
variant: "outline",
|
|
180
181
|
size: "sm",
|
|
181
182
|
onClick: () => Z(!1),
|
|
182
|
-
children: "Cancel"
|
|
183
|
-
}), /* @__PURE__ */
|
|
183
|
+
children: U("botlit.retrievalProfileDetail.cancel", "Cancel")
|
|
184
|
+
}), /* @__PURE__ */ k(m, {
|
|
184
185
|
variant: "destructive",
|
|
185
186
|
size: "sm",
|
|
186
187
|
onClick: () => {
|
|
187
|
-
|
|
188
|
+
r("medium"), me();
|
|
188
189
|
},
|
|
189
|
-
isLoading:
|
|
190
|
-
children: "Confirm Delete"
|
|
190
|
+
isLoading: J,
|
|
191
|
+
children: U("botlit.retrievalProfileDetail.confirmDelete", "Confirm Delete")
|
|
191
192
|
})]
|
|
192
|
-
}) : /* @__PURE__ */
|
|
193
|
-
permission:
|
|
194
|
-
children: /* @__PURE__ */
|
|
193
|
+
}) : /* @__PURE__ */ k(o, {
|
|
194
|
+
permission: a.RETRIEVAL_PROFILE_DELETE,
|
|
195
|
+
children: /* @__PURE__ */ k(m, {
|
|
195
196
|
variant: "destructive",
|
|
196
|
-
leftIcon: /* @__PURE__ */
|
|
197
|
+
leftIcon: /* @__PURE__ */ k(ae, { size: 16 }),
|
|
197
198
|
onClick: () => Z(!0),
|
|
198
|
-
children: "Delete"
|
|
199
|
+
children: U("botlit.retrievalProfileDetail.delete", "Delete")
|
|
199
200
|
})
|
|
200
201
|
})] })
|
|
201
202
|
}),
|
|
202
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ A("div", {
|
|
203
204
|
className: "space-y-6",
|
|
204
205
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
icon: /* @__PURE__ */
|
|
207
|
-
children: "This profile defines exactly how an agent searches your knowledge — the retrieval mode, how many results to pull, whether to rerank them and whether to rewrite the query first. Adjust the strategy here to dial in the balance between answer accuracy and speed, then attach the profile to the agents that should use it."
|
|
206
|
+
/* @__PURE__ */ k(E, {
|
|
207
|
+
icon: /* @__PURE__ */ k(P, { size: 18 }),
|
|
208
|
+
children: U("botlit.retrievalProfileDetail.thisProfileDefinesExactlyHow", "This profile defines exactly how an agent searches your knowledge — the retrieval mode, how many results to pull, whether to rerank them and whether to rewrite the query first. Adjust the strategy here to dial in the balance between answer accuracy and speed, then attach the profile to the agents that should use it.")
|
|
208
209
|
}),
|
|
209
|
-
Y ? /* @__PURE__ */
|
|
210
|
+
Y ? /* @__PURE__ */ A(l, { children: [/* @__PURE__ */ k(f, { children: /* @__PURE__ */ k(p, { children: U("botlit.retrievalProfileDetail.basicInformation", "Basic Information") }) }), /* @__PURE__ */ A(u, {
|
|
210
211
|
className: "space-y-4",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
212
|
-
label: "Name",
|
|
212
|
+
children: [/* @__PURE__ */ k(_, {
|
|
213
|
+
label: U("botlit.retrievalProfileDetail.name", "Name"),
|
|
213
214
|
required: !0,
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ k(v, {
|
|
215
216
|
value: Q.name,
|
|
216
217
|
onChange: (e) => $({
|
|
217
218
|
...Q,
|
|
218
219
|
name: e.target.value
|
|
219
220
|
}),
|
|
220
|
-
placeholder: "e.g., Default Hybrid Search"
|
|
221
|
+
placeholder: U("botlit.retrievalProfileDetail.exampleDefaultHybridSearch", "e.g., Default Hybrid Search")
|
|
221
222
|
})
|
|
222
|
-
}), /* @__PURE__ */
|
|
223
|
-
label: "Description",
|
|
224
|
-
children: /* @__PURE__ */
|
|
223
|
+
}), /* @__PURE__ */ k(_, {
|
|
224
|
+
label: U("botlit.retrievalProfileDetail.description", "Description"),
|
|
225
|
+
children: /* @__PURE__ */ k(y, {
|
|
225
226
|
value: Q.description,
|
|
226
227
|
onChange: (e) => $({
|
|
227
228
|
...Q,
|
|
228
229
|
description: e.target.value
|
|
229
230
|
}),
|
|
230
|
-
placeholder: "Describe when to use this profile...",
|
|
231
|
+
placeholder: U("botlit.retrievalProfileDetail.describeWhenToUseThis", "Describe when to use this profile..."),
|
|
231
232
|
rows: 3
|
|
232
233
|
})
|
|
233
234
|
})]
|
|
234
235
|
})] }) : null,
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ A(l, {
|
|
236
237
|
treatment: "glass",
|
|
237
238
|
glow: !0,
|
|
238
|
-
children: [/* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ A(f, { children: [/* @__PURE__ */ A(p, {
|
|
239
240
|
className: "flex items-center gap-2",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
241
|
-
}), /* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ k(P, { size: 18 }), U("botlit.retrievalProfileDetail.retrievalStrategy", "Retrieval Strategy")]
|
|
242
|
+
}), /* @__PURE__ */ k(d, { children: U("botlit.retrievalProfileDetail.howDocumentsAreSearchedAnd", "How documents are searched and ranked") })] }), /* @__PURE__ */ k(u, {
|
|
242
243
|
className: "space-y-4",
|
|
243
|
-
children: Y ? /* @__PURE__ */ O
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
label: "Retrieval Mode",
|
|
246
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: Y ? /* @__PURE__ */ A(O, { children: [
|
|
245
|
+
/* @__PURE__ */ k(_, {
|
|
246
|
+
label: U("botlit.retrievalProfileDetail.retrievalMode", "Retrieval Mode"),
|
|
247
|
+
children: /* @__PURE__ */ k("div", {
|
|
247
248
|
className: "flex gap-4",
|
|
248
|
-
children: L.map((e) => /* @__PURE__ */
|
|
249
|
+
children: L.map((e) => /* @__PURE__ */ A("label", {
|
|
249
250
|
className: "flex items-center gap-2",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ k("input", {
|
|
251
252
|
type: "radio",
|
|
252
253
|
name: "strategyMode",
|
|
253
254
|
checked: Q.strategyMode === e,
|
|
@@ -255,18 +256,18 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
255
256
|
...Q,
|
|
256
257
|
strategyMode: e
|
|
257
258
|
})
|
|
258
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ k("span", {
|
|
259
260
|
className: "capitalize",
|
|
260
261
|
children: e.replace("_", " ")
|
|
261
262
|
})]
|
|
262
263
|
}, e))
|
|
263
264
|
})
|
|
264
265
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ A("div", {
|
|
266
267
|
className: "grid grid-cols-2 gap-4",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
268
|
-
label: "Top K Results",
|
|
269
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ k(_, {
|
|
269
|
+
label: U("botlit.retrievalProfileDetail.topKResults", "Top K Results"),
|
|
270
|
+
children: /* @__PURE__ */ k(v, {
|
|
270
271
|
type: "number",
|
|
271
272
|
value: Q.topK,
|
|
272
273
|
onChange: (e) => $({
|
|
@@ -274,133 +275,133 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
274
275
|
topK: H(e.target.value, I.topK)
|
|
275
276
|
})
|
|
276
277
|
})
|
|
277
|
-
}), /* @__PURE__ */
|
|
278
|
-
label: "Reranker",
|
|
279
|
-
children: /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ k(_, {
|
|
279
|
+
label: U("botlit.retrievalProfileDetail.reranker", "Reranker"),
|
|
280
|
+
children: /* @__PURE__ */ A(D, {
|
|
280
281
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
281
282
|
value: Q.reranker,
|
|
282
283
|
onChange: (e) => $({
|
|
283
284
|
...Q,
|
|
284
285
|
reranker: R(e.target.value)
|
|
285
286
|
}),
|
|
286
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ k("option", {
|
|
287
288
|
value: "OFF",
|
|
288
|
-
children: "Disabled"
|
|
289
|
-
}), /* @__PURE__ */
|
|
289
|
+
children: U("botlit.retrievalProfileDetail.disabled", "Disabled")
|
|
290
|
+
}), /* @__PURE__ */ k("option", {
|
|
290
291
|
value: "ON",
|
|
291
|
-
children: "Enabled"
|
|
292
|
+
children: U("botlit.retrievalProfileDetail.enabled", "Enabled")
|
|
292
293
|
})]
|
|
293
294
|
})
|
|
294
295
|
})]
|
|
295
296
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ A("div", {
|
|
297
298
|
className: "grid grid-cols-2 gap-4",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
299
|
-
label: "Query Rewrite",
|
|
300
|
-
children: /* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ k(_, {
|
|
300
|
+
label: U("botlit.retrievalProfileDetail.queryRewrite", "Query Rewrite"),
|
|
301
|
+
children: /* @__PURE__ */ A(D, {
|
|
301
302
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
302
303
|
value: Q.queryRewrite,
|
|
303
304
|
onChange: (e) => $({
|
|
304
305
|
...Q,
|
|
305
306
|
queryRewrite: R(e.target.value)
|
|
306
307
|
}),
|
|
307
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ k("option", {
|
|
308
309
|
value: "OFF",
|
|
309
|
-
children: "Disabled"
|
|
310
|
-
}), /* @__PURE__ */
|
|
310
|
+
children: U("botlit.retrievalProfileDetail.disabled", "Disabled")
|
|
311
|
+
}), /* @__PURE__ */ k("option", {
|
|
311
312
|
value: "ON",
|
|
312
|
-
children: "Enabled"
|
|
313
|
+
children: U("botlit.retrievalProfileDetail.enabled", "Enabled")
|
|
313
314
|
})]
|
|
314
315
|
})
|
|
315
|
-
}), /* @__PURE__ */
|
|
316
|
-
label: "Multi-Hop",
|
|
317
|
-
children: /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ k(_, {
|
|
317
|
+
label: U("botlit.retrievalProfileDetail.multiHop", "Multi-Hop"),
|
|
318
|
+
children: /* @__PURE__ */ A(D, {
|
|
318
319
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
319
320
|
value: Q.multiHop,
|
|
320
321
|
onChange: (e) => $({
|
|
321
322
|
...Q,
|
|
322
323
|
multiHop: R(e.target.value)
|
|
323
324
|
}),
|
|
324
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ k("option", {
|
|
325
326
|
value: "OFF",
|
|
326
|
-
children: "Disabled"
|
|
327
|
-
}), /* @__PURE__ */
|
|
327
|
+
children: U("botlit.retrievalProfileDetail.disabled", "Disabled")
|
|
328
|
+
}), /* @__PURE__ */ k("option", {
|
|
328
329
|
value: "ON",
|
|
329
|
-
children: "Enabled"
|
|
330
|
+
children: U("botlit.retrievalProfileDetail.enabled", "Enabled")
|
|
330
331
|
})]
|
|
331
332
|
})
|
|
332
333
|
})]
|
|
333
334
|
})
|
|
334
|
-
] }) : /* @__PURE__ */
|
|
335
|
+
] }) : /* @__PURE__ */ A("div", {
|
|
335
336
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
336
337
|
children: [
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
338
339
|
className: "text-sm text-text-secondary",
|
|
339
|
-
children: "Mode"
|
|
340
|
-
}), /* @__PURE__ */
|
|
340
|
+
children: U("botlit.retrievalProfileDetail.mode", "Mode")
|
|
341
|
+
}), /* @__PURE__ */ k(h, {
|
|
341
342
|
variant: "outline",
|
|
342
|
-
children:
|
|
343
|
+
children: K?.strategyMode
|
|
343
344
|
})] }),
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
345
346
|
className: "text-sm text-text-secondary",
|
|
346
|
-
children: "Top K"
|
|
347
|
-
}), /* @__PURE__ */
|
|
347
|
+
children: U("botlit.retrievalProfileDetail.topK", "Top K")
|
|
348
|
+
}), /* @__PURE__ */ k("p", {
|
|
348
349
|
className: "font-medium",
|
|
349
|
-
children:
|
|
350
|
+
children: K?.topK
|
|
350
351
|
})] }),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
352
353
|
className: "text-sm text-text-secondary",
|
|
353
|
-
children: "Reranker"
|
|
354
|
-
}), /* @__PURE__ */
|
|
355
|
-
variant:
|
|
356
|
-
children:
|
|
354
|
+
children: U("botlit.retrievalProfileDetail.reranker", "Reranker")
|
|
355
|
+
}), /* @__PURE__ */ k(h, {
|
|
356
|
+
variant: K?.reranker === "ON" ? "success" : "secondary",
|
|
357
|
+
children: K?.reranker
|
|
357
358
|
})] }),
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
359
360
|
className: "text-sm text-text-secondary",
|
|
360
|
-
children: "Query Rewrite"
|
|
361
|
-
}), /* @__PURE__ */
|
|
362
|
-
variant:
|
|
363
|
-
children:
|
|
361
|
+
children: U("botlit.retrievalProfileDetail.queryRewrite", "Query Rewrite")
|
|
362
|
+
}), /* @__PURE__ */ k(h, {
|
|
363
|
+
variant: K?.queryRewrite === "ON" ? "success" : "secondary",
|
|
364
|
+
children: K?.queryRewrite
|
|
364
365
|
})] })
|
|
365
366
|
]
|
|
366
367
|
})
|
|
367
368
|
})]
|
|
368
369
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ A(l, { children: [/* @__PURE__ */ A(f, { children: [/* @__PURE__ */ A(p, {
|
|
370
371
|
className: "flex items-center gap-2",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ k(ne, { size: 18 }), U("botlit.retrievalProfileDetail.groundingCitations", "Grounding & Citations")]
|
|
373
|
+
}), /* @__PURE__ */ k(d, { children: U("botlit.retrievalProfileDetail.howSourcesAreCitedIn", "How sources are cited in responses") })] }), /* @__PURE__ */ k(u, {
|
|
373
374
|
className: "space-y-4",
|
|
374
|
-
children: Y ? /* @__PURE__ */ O
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
children: Y ? /* @__PURE__ */ A(O, { children: [
|
|
376
|
+
/* @__PURE__ */ A("div", {
|
|
376
377
|
className: "flex items-center gap-4",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ A("label", {
|
|
378
379
|
className: "flex items-center gap-2",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ k("input", {
|
|
380
381
|
type: "checkbox",
|
|
381
382
|
checked: Q.citationsRequired,
|
|
382
383
|
onChange: (e) => $({
|
|
383
384
|
...Q,
|
|
384
385
|
citationsRequired: e.target.checked
|
|
385
386
|
})
|
|
386
|
-
}), /* @__PURE__ */
|
|
387
|
-
}), /* @__PURE__ */
|
|
387
|
+
}), /* @__PURE__ */ k("span", { children: U("botlit.retrievalProfileDetail.citationsRequired", "Citations Required") })]
|
|
388
|
+
}), /* @__PURE__ */ A("label", {
|
|
388
389
|
className: "flex items-center gap-2",
|
|
389
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ k("input", {
|
|
390
391
|
type: "checkbox",
|
|
391
392
|
checked: Q.showSources,
|
|
392
393
|
onChange: (e) => $({
|
|
393
394
|
...Q,
|
|
394
395
|
showSources: e.target.checked
|
|
395
396
|
})
|
|
396
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ k("span", { children: U("botlit.retrievalProfileDetail.showSources", "Show Sources") })]
|
|
397
398
|
})]
|
|
398
399
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ A("div", {
|
|
400
401
|
className: "grid grid-cols-2 gap-4",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
402
|
-
label: "Min Sources",
|
|
403
|
-
children: /* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ k(_, {
|
|
403
|
+
label: U("botlit.retrievalProfileDetail.minSources", "Min Sources"),
|
|
404
|
+
children: /* @__PURE__ */ k(v, {
|
|
404
405
|
type: "number",
|
|
405
406
|
value: Q.minSources,
|
|
406
407
|
onChange: (e) => $({
|
|
@@ -408,9 +409,9 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
408
409
|
minSources: H(e.target.value, I.minSources)
|
|
409
410
|
})
|
|
410
411
|
})
|
|
411
|
-
}), /* @__PURE__ */
|
|
412
|
-
label: "Max Snippet Chars",
|
|
413
|
-
children: /* @__PURE__ */
|
|
412
|
+
}), /* @__PURE__ */ k(_, {
|
|
413
|
+
label: U("botlit.retrievalProfileDetail.maxSnippetChars", "Max Snippet Chars"),
|
|
414
|
+
children: /* @__PURE__ */ k(v, {
|
|
414
415
|
type: "number",
|
|
415
416
|
value: Q.snippetMaxChars,
|
|
416
417
|
onChange: (e) => $({
|
|
@@ -420,9 +421,9 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
420
421
|
})
|
|
421
422
|
})]
|
|
422
423
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
label: "Citation Format Template",
|
|
425
|
-
children: /* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ k(_, {
|
|
425
|
+
label: U("botlit.retrievalProfileDetail.citationFormatTemplate", "Citation Format Template"),
|
|
426
|
+
children: /* @__PURE__ */ k(v, {
|
|
426
427
|
value: Q.citationFormat,
|
|
427
428
|
onChange: (e) => $({
|
|
428
429
|
...Q,
|
|
@@ -431,50 +432,50 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
431
432
|
placeholder: "[{index}]"
|
|
432
433
|
})
|
|
433
434
|
})
|
|
434
|
-
] }) : /* @__PURE__ */
|
|
435
|
+
] }) : /* @__PURE__ */ A("div", {
|
|
435
436
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
436
437
|
children: [
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
438
439
|
className: "text-sm text-text-secondary",
|
|
439
|
-
children: "Citations Required"
|
|
440
|
-
}), /* @__PURE__ */
|
|
441
|
-
variant:
|
|
442
|
-
children:
|
|
440
|
+
children: U("botlit.retrievalProfileDetail.citationsRequired", "Citations Required")
|
|
441
|
+
}), /* @__PURE__ */ k(h, {
|
|
442
|
+
variant: K?.citationsRequired ? "success" : "secondary",
|
|
443
|
+
children: K?.citationsRequired ? U("botlit.retrievalProfileDetail.yes", "Yes") : U("botlit.retrievalProfileDetail.no", "No")
|
|
443
444
|
})] }),
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
445
446
|
className: "text-sm text-text-secondary",
|
|
446
|
-
children: "Min Sources"
|
|
447
|
-
}), /* @__PURE__ */
|
|
447
|
+
children: U("botlit.retrievalProfileDetail.minSources", "Min Sources")
|
|
448
|
+
}), /* @__PURE__ */ k("p", {
|
|
448
449
|
className: "font-medium",
|
|
449
|
-
children:
|
|
450
|
+
children: K?.minSources
|
|
450
451
|
})] }),
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
452
453
|
className: "text-sm text-text-secondary",
|
|
453
|
-
children: "Max Snippet"
|
|
454
|
-
}), /* @__PURE__ */
|
|
454
|
+
children: U("botlit.retrievalProfileDetail.maxSnippet", "Max Snippet")
|
|
455
|
+
}), /* @__PURE__ */ k("p", {
|
|
455
456
|
className: "font-medium",
|
|
456
|
-
children:
|
|
457
|
+
children: U("botlit.retrievalProfileDetail.snippetLength", "{{count}} chars", { count: K?.snippetMaxChars ?? "—" })
|
|
457
458
|
})] }),
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
459
460
|
className: "text-sm text-text-secondary",
|
|
460
|
-
children: "Citation Format"
|
|
461
|
-
}), /* @__PURE__ */
|
|
461
|
+
children: U("botlit.retrievalProfileDetail.citationFormat", "Citation Format")
|
|
462
|
+
}), /* @__PURE__ */ k("code", {
|
|
462
463
|
className: "text-sm",
|
|
463
|
-
children:
|
|
464
|
+
children: K?.citationFormat ?? "—"
|
|
464
465
|
})] })
|
|
465
466
|
]
|
|
466
467
|
})
|
|
467
468
|
})] }),
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ A(l, { children: [/* @__PURE__ */ A(f, { children: [/* @__PURE__ */ A(p, {
|
|
469
470
|
className: "flex items-center gap-2",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
471
|
-
}), /* @__PURE__ */
|
|
471
|
+
children: [/* @__PURE__ */ k(ie, { size: 18 }), U("botlit.retrievalProfileDetail.relevanceThresholds", "Relevance Thresholds")]
|
|
472
|
+
}), /* @__PURE__ */ k(d, { children: U("botlit.retrievalProfileDetail.minimumQualityRequirementsForResults", "Minimum quality requirements for results") })] }), /* @__PURE__ */ k(u, {
|
|
472
473
|
className: "space-y-4",
|
|
473
|
-
children: Y ? /* @__PURE__ */
|
|
474
|
+
children: Y ? /* @__PURE__ */ A("div", {
|
|
474
475
|
className: "grid grid-cols-2 gap-4",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
476
|
-
label: "Min Relevance Score (0-1)",
|
|
477
|
-
children: /* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ k(_, {
|
|
477
|
+
label: U("botlit.retrievalProfileDetail.minRelevanceScore01", "Min Relevance Score (0-1)"),
|
|
478
|
+
children: /* @__PURE__ */ k(v, {
|
|
478
479
|
type: "number",
|
|
479
480
|
step: "0.1",
|
|
480
481
|
min: "0",
|
|
@@ -485,70 +486,70 @@ var U = ({ isNew: z = !1 }) => {
|
|
|
485
486
|
minRelevanceScore: H(e.target.value, I.minRelevanceScore)
|
|
486
487
|
})
|
|
487
488
|
})
|
|
488
|
-
}), /* @__PURE__ */
|
|
489
|
+
}), /* @__PURE__ */ k("div", {
|
|
489
490
|
className: "flex items-center",
|
|
490
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ A("label", {
|
|
491
492
|
className: "flex items-center gap-2",
|
|
492
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ k("input", {
|
|
493
494
|
type: "checkbox",
|
|
494
495
|
checked: Q.noAnswerIfBelowThreshold,
|
|
495
496
|
onChange: (e) => $({
|
|
496
497
|
...Q,
|
|
497
498
|
noAnswerIfBelowThreshold: e.target.checked
|
|
498
499
|
})
|
|
499
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ k("span", { children: U("botlit.retrievalProfileDetail.noAnswerIfBelowThreshold", "No Answer if Below Threshold") })]
|
|
500
501
|
})
|
|
501
502
|
})]
|
|
502
|
-
}) : /* @__PURE__ */
|
|
503
|
+
}) : /* @__PURE__ */ A("div", {
|
|
503
504
|
className: "grid grid-cols-2 gap-4",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
505
506
|
className: "text-sm text-text-secondary",
|
|
506
|
-
children: "Min Relevance Score"
|
|
507
|
-
}), /* @__PURE__ */
|
|
507
|
+
children: U("botlit.retrievalProfileDetail.minRelevanceScore", "Min Relevance Score")
|
|
508
|
+
}), /* @__PURE__ */ k("p", {
|
|
508
509
|
className: "font-medium",
|
|
509
|
-
children:
|
|
510
|
-
})] }), /* @__PURE__ */
|
|
510
|
+
children: K?.minRelevanceScore ?? U("botlit.retrievalProfileDetail.notSet", "Not set")
|
|
511
|
+
})] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
511
512
|
className: "text-sm text-text-secondary",
|
|
512
|
-
children: "No Answer Below Threshold"
|
|
513
|
-
}), /* @__PURE__ */
|
|
514
|
-
variant:
|
|
515
|
-
children:
|
|
513
|
+
children: U("botlit.retrievalProfileDetail.noAnswerBelowThreshold", "No Answer Below Threshold")
|
|
514
|
+
}), /* @__PURE__ */ k(h, {
|
|
515
|
+
variant: K?.noAnswerIfBelowThreshold ? "warning" : "secondary",
|
|
516
|
+
children: K?.noAnswerIfBelowThreshold ? U("botlit.retrievalProfileDetail.yes", "Yes") : U("botlit.retrievalProfileDetail.no", "No")
|
|
516
517
|
})] })]
|
|
517
518
|
})
|
|
518
519
|
})] }),
|
|
519
|
-
!z &&
|
|
520
|
+
!z && K && /* @__PURE__ */ A(l, { children: [/* @__PURE__ */ k(f, { children: /* @__PURE__ */ A(p, {
|
|
520
521
|
className: "flex items-center gap-2",
|
|
521
|
-
children: [/* @__PURE__ */
|
|
522
|
-
}) }), /* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ k(N, { size: 18 }), U("botlit.retrievalProfileDetail.metadata", "Metadata")]
|
|
523
|
+
}) }), /* @__PURE__ */ k(u, { children: /* @__PURE__ */ A("div", {
|
|
523
524
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",
|
|
524
525
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
526
527
|
className: "text-text-secondary",
|
|
527
|
-
children: "Created"
|
|
528
|
-
}), /* @__PURE__ */
|
|
528
|
+
children: U("botlit.retrievalProfileDetail.created", "Created")
|
|
529
|
+
}), /* @__PURE__ */ k("p", {
|
|
529
530
|
className: "font-medium",
|
|
530
|
-
children:
|
|
531
|
+
children: C(K.createdAt)
|
|
531
532
|
})] }),
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
533
534
|
className: "text-text-secondary",
|
|
534
|
-
children: "Updated"
|
|
535
|
-
}), /* @__PURE__ */
|
|
535
|
+
children: U("botlit.retrievalProfileDetail.updated", "Updated")
|
|
536
|
+
}), /* @__PURE__ */ k("p", {
|
|
536
537
|
className: "font-medium",
|
|
537
|
-
children:
|
|
538
|
+
children: C(K.updatedAt)
|
|
538
539
|
})] }),
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
540
541
|
className: "text-text-secondary",
|
|
541
|
-
children: "Revision"
|
|
542
|
-
}), /* @__PURE__ */
|
|
542
|
+
children: U("botlit.retrievalProfileDetail.revision", "Revision")
|
|
543
|
+
}), /* @__PURE__ */ k("p", {
|
|
543
544
|
className: "font-medium",
|
|
544
|
-
children:
|
|
545
|
+
children: K.revision
|
|
545
546
|
})] }),
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
547
548
|
className: "text-text-secondary",
|
|
548
|
-
children: "Visibility"
|
|
549
|
-
}), /* @__PURE__ */
|
|
549
|
+
children: U("botlit.retrievalProfileDetail.visibility", "Visibility")
|
|
550
|
+
}), /* @__PURE__ */ k(h, {
|
|
550
551
|
variant: "outline",
|
|
551
|
-
children:
|
|
552
|
+
children: K.visibility
|
|
552
553
|
})] })
|
|
553
554
|
]
|
|
554
555
|
}) })] })
|