An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Daniel6317f60cccd4
diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex 535ea83891..622a345fee 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -1357,8 +1357,11 @@ export const inputEvent = (element: Element, config: Config.IUILayoutTabSearchCoorderBy: config.sort,page: config.page || 1,}, (response) => {- if (window.siyuan.reqIds["/api/block/getRecentUpdatedBlocks"] && window.siyuan.reqIds["/api/search/fullTextSearchBlock"] &&- window.siyuan.reqIds["/api/block/getRecentUpdatedBlocks"] > window.siyuan.reqIds["/api/search/fullTextSearchBlock"]) {+ const searchReqId = config.method === 4+ ? window.siyuan.reqIds["/api/search/semanticSearchBlock"]+ : window.siyuan.reqIds["/api/search/fullTextSearchBlock"];+ if (window.siyuan.reqIds["/api/block/getRecentUpdatedBlocks"] && searchReqId &&+ window.siyuan.reqIds["/api/block/getRecentUpdatedBlocks"] > searchReqId) {return;}if (!config.page) {