From e48d836ffc1fc97d8698de8b573a07dc79512258 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Tue, 26 May 2026 12:11:38 +0400 Subject: [PATCH] Studio: default RAG source to thread documents in sidepanel --- studio/frontend/src/features/chat/chat-settings-sheet.tsx | 2 +- studio/frontend/src/features/chat/stores/chat-runtime-store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsx index 606a94ef65..756e43fa7f 100644 --- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx +++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx @@ -1334,7 +1334,7 @@ export function ChatSettingsPanel({ ) { void deleteKB(kb.id).then(() => { if (isActive) { - setRagSource({ kind: "off" }); + setRagSource({ kind: "thread" }); } }); } diff --git a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts index 5adc0e6589..cd6eb45164 100644 --- a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts +++ b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts @@ -618,7 +618,7 @@ export const useChatRuntimeStore = create((set, get) => ({ contextUsage: null, modelLoading: false, activeNativePathToken: null, - ragSource: { kind: "off" }, + ragSource: { kind: "thread" }, enableRerank: false, ragTopK: 5, ragMinScore: 0,