diff --git a/src/App.jsx b/src/App.jsx index ca86d1c..1e61bc3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1052,7 +1052,7 @@ async function sendMessage() { let citationSources = [] const contextBlocks = [] - if (chatLibrarySlug) { + if (chatLibrarySlug && chatLibrary?.states?.is_indexed) { try { const resp = await fetch(`${ollamaApiUrl}/libraries/${chatLibrarySlug}/context`, { method: 'POST',