mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: embedding status
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user