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

View File

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

View File

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