Classification fixes (#17337)

* Cleanup classification settings behavior

* Cleanup response

* restore
This commit is contained in:
Nicolas Mowen 2025-03-24 08:12:42 -06:00 committed by GitHub
parent f8b0329b37
commit a8fa77c6b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -206,12 +206,15 @@ class EmbeddingMaintainer(threading.Thread):
self.embeddings.embed_description("", data, upsert=False), self.embeddings.embed_description("", data, upsert=False),
pack=False, pack=False,
) )
processors = [self.realtime_processors, self.post_processors] processors = [self.realtime_processors, self.post_processors]
for processor_list in processors: for processor_list in processors:
for processor in processor_list: for processor in processor_list:
resp = processor.handle_request(topic, data) resp = processor.handle_request(topic, data)
if resp is not None: if resp is not None:
return resp return resp
return None
except Exception as e: except Exception as e:
logger.error(f"Unable to handle embeddings request {e}", exc_info=True) logger.error(f"Unable to handle embeddings request {e}", exc_info=True)

View File

@ -170,9 +170,15 @@ export default function ClassificationSettingsView({
); );
}) })
.finally(() => { .finally(() => {
addMessage(
"search_settings",
`Restart Required (Classification settings changed)`,
undefined,
"search_settings",
);
setIsLoading(false); setIsLoading(false);
}); });
}, [updateConfig, classificationSettings, t]); }, [classificationSettings, t, addMessage, updateConfig]);
const onCancel = useCallback(() => { const onCancel = useCallback(() => {
setClassificationSettings(origSearchSettings); setClassificationSettings(origSearchSettings);