Default recall card display to beautify only

This commit is contained in:
Hao19911125
2026-04-03 14:54:44 +08:00
parent d91aa95069
commit a9704789a4
3 changed files with 6 additions and 6 deletions

View File

@@ -352,7 +352,7 @@ const defaultSettings = {
// 召回设置
recallEnabled: true,
recallCardUserInputDisplayMode: "mirror",
recallCardUserInputDisplayMode: "beautify_only",
recallTopK: 20, // 向量预筛 Top-K
recallMaxNodes: 8, // LLM 召回最大节点数
recallEnableLLM: true, // 是否启用 LLM 精确召回
@@ -1846,7 +1846,7 @@ function normalizeRecallCardUserInputDisplayMode(mode) {
) {
return normalized;
}
return "mirror";
return "beautify_only";
}
function applyRecallCardUserInputDisplayMode(messageElement, mode) {

View File

@@ -1539,7 +1539,7 @@ function _refreshConfigTab() {
);
_setInputValue(
"bme-setting-recall-card-user-input-display-mode",
settings.recallCardUserInputDisplayMode ?? "mirror",
settings.recallCardUserInputDisplayMode ?? "beautify_only",
);
_setInputValue("bme-setting-extract-every", settings.extractEvery ?? 1);
@@ -1829,7 +1829,7 @@ function _bindConfigControls() {
recallCardUserInputDisplayModeEl.addEventListener("change", () => {
_patchSettings({
recallCardUserInputDisplayMode:
recallCardUserInputDisplayModeEl.value || "mirror",
recallCardUserInputDisplayModeEl.value || "beautify_only",
});
});
recallCardUserInputDisplayModeEl.dataset.bmeBound = "true";

View File

@@ -88,7 +88,7 @@ function normalizeUserInputDisplayMode(mode) {
) {
return normalized;
}
return "mirror";
return "beautify_only";
}
function stableSerialize(value) {
@@ -198,7 +198,7 @@ export function createRecallCardElement({
userMessageText = "",
graph = null,
themeName = "crimson",
userInputDisplayMode = "mirror",
userInputDisplayMode = "beautify_only",
callbacks = {},
}) {
const card = el("div", "bme-recall-card");