fix: embedding status

This commit is contained in:
Tienson Qin
2025-07-23 20:12:19 +08:00
parent 9335281d4a
commit aeeaad3eb0
2 changed files with 5 additions and 4 deletions

View File

@@ -212,9 +212,10 @@
[repo]
(when-not (indexing? repo)
(when-let [conn (worker-state/get-datascript-conn repo)]
(if (first (d/datoms @conn :avet :logseq.property.embedding/hnsw-label-updated-at)) ; embedding exists
(embedding-stale-blocks! repo)
(re-embedding-graph-data! repo)))))
(when (ldb/get-key-value @conn :logseq.kv/graph-text-embedding-model-name)
(if (first (d/datoms @conn :avet :logseq.property.embedding/hnsw-label-updated-at)) ; embedding exists
(embedding-stale-blocks! repo)
(re-embedding-graph-data! repo))))))
(defn task--embedding-model-info
[repo]