diff --git a/src/components/chat-view/ChatHistoryView.tsx b/src/components/chat-view/ChatHistoryView.tsx index 6715350..1fdad65 100644 --- a/src/components/chat-view/ChatHistoryView.tsx +++ b/src/components/chat-view/ChatHistoryView.tsx @@ -79,7 +79,6 @@ const ChatHistoryView = ({ // filter conversations list const filteredConversations = useMemo(() => { - console.log('filteredConversations', chatList) let filtered = chatList // Apply search filter diff --git a/src/components/chat-view/InsightView.tsx b/src/components/chat-view/InsightView.tsx index 0f5ef20..d663af1 100644 --- a/src/components/chat-view/InsightView.tsx +++ b/src/components/chat-view/InsightView.tsx @@ -223,9 +223,7 @@ const InsightView = () => { currentItem: '保存结果' }) - if (result.success) { - console.log('工作区洞察初始化完成:', result.result) - + if (result.success) { // 刷新洞察列表 await loadInsights() diff --git a/src/core/rag/embedding.ts b/src/core/rag/embedding.ts index f8f0543..e29750c 100644 --- a/src/core/rag/embedding.ts +++ b/src/core/rag/embedding.ts @@ -68,7 +68,6 @@ export const getEmbeddingModel = ( } const results = await embeddingManager.embedBatch(texts) - console.log('results', results) return results.map(result => result.vec) } catch (error) { console.error('LocalProvider batch embedding error:', error) diff --git a/src/database/modules/insight/insight-repository.ts b/src/database/modules/insight/insight-repository.ts index 263edab..63d8dd4 100644 --- a/src/database/modules/insight/insight-repository.ts +++ b/src/database/modules/insight/insight-repository.ts @@ -30,7 +30,6 @@ export class InsightRepository { const result = await this.db.query( `SELECT * FROM "${tableName}" ORDER BY created_at DESC` ) - console.log(result.rows) return result.rows } diff --git a/src/database/modules/vector/vector-manager.ts b/src/database/modules/vector/vector-manager.ts index 12b567e..5ccb058 100644 --- a/src/database/modules/vector/vector-manager.ts +++ b/src/database/modules/vector/vector-manager.ts @@ -156,7 +156,6 @@ export class VectorManager { // 保存原始内容,不在此处调用 removeMarkdown const rawContent = chunk.pageContent.replace(/\0/g, '') if (!rawContent || rawContent.trim().length === 0) { - console.log("skipped chunk", chunk.pageContent) return null } return { diff --git a/src/embedworker/embed.worker.ts b/src/embedworker/embed.worker.ts index 6d941aa..f2d2eb6 100644 --- a/src/embedworker/embed.worker.ts +++ b/src/embedworker/embed.worker.ts @@ -83,7 +83,7 @@ async function loadModel(modelKey: string, useGpu: boolean = false) { progress_callback: (progress: any) => { try { if (progress && typeof progress === 'object') { - console.log('Model loading progress:', progress); + // console.log('Model loading progress:', progress); } } catch (error) { // 忽略进度回调错误,避免中断模型加载 diff --git a/src/main.ts b/src/main.ts index efb49e5..802746f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -414,7 +414,7 @@ export default class InfioPlugin extends Plugin { if (result.success) { new Notice('Dataview 查询成功!结果已在控制台输出'); - console.log('查询结果:', result.data); + // console.log('查询结果:', result.data); } else { new Notice(`查询失败: ${result.error}`); console.error('查询错误:', result.error);