-
Notifications
You must be signed in to change notification settings - Fork 3
AI Analysis Cache
林路 edited this page May 23, 2026
·
5 revisions
关键词:整本书问答、AI 分析、embedding、缓存、检索、PDF 问答、文档问答。
AI analysis data is the local embedding/cache layer used for document-aware Q&A.
Open document
-> Build text chunks
-> EmbeddingClient
-> PDFEmbeddingStore
Question
-> Retrieval from cached analysis data
-> Prompt
-> AIChatPanel
-
ReaderWindowController+Embedding.swift: background AI analysis state, progress, cache restore, controls. -
PDFDocumentAgentIndex.swift: chunking and retrieval scoring. -
PDFEmbeddingStore.swift: local SQLite-backed embedding cache. -
EmbeddingClient.swift: embedding API client. -
AISettingsPanelController*.swift: model and AI analysis settings UI.
- UI should prefer “AI analysis data” or “AI analysis cache” over “vector index” unless the setting is explicitly about an embedding model/provider.
- Button labels should match scope:
生成/更新本书缓存fills missing current-book embeddings,清除本书分析缓存deletes only the current book's embeddings, and清除全部缓存deletes all local embedding cache rows.
mac-app/ReaderWindowController+Embedding.swiftmac-app/ReaderWindowController+EmbeddingBackfill.swiftmac-app/ReaderWindowController+EmbeddingStatus.swiftmac-app/PDFDocumentAgentIndex.swiftmac-app/PDFEmbeddingStore.swiftmac-app/EmbeddingClient.swiftmac-app/EmbeddingActionPolicy.swift
Related: Home · Feature Map · Development Tasks · Code Map · Type Index
Maintained by ./scripts/update_wiki.sh.