Embeddings tweaks (#16864)

* make semantic search optional

* config

* frontend metrics

* docs

* tweak

* fixes

* also check genai cameras for embeddings context
This commit is contained in:
Josh Hawkins
2025-02-28 11:43:08 -07:00
committed by GitHub
parent db4152c4ca
commit 8d2f461350
11 changed files with 95 additions and 71 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ function System() {
const metrics = useMemo(() => {
const metrics = [...allMetrics];
if (!config?.semantic_search.enabled) {
if (
!config?.semantic_search.enabled &&
!config?.lpr.enabled &&
!config?.face_recognition.enabled
) {
const index = metrics.indexOf("features");
metrics.splice(index, 1);
}