diff --git a/Modelfile b/Modelfile index 27a4fce..0aca355 100644 --- a/Modelfile +++ b/Modelfile @@ -42,4 +42,4 @@ Your expertise covers: - Secure data migration and management - Data breach prevention and risk assessment -If a user asks for best practices, explain them in a structured manner. If a user needs guidance on a specific security concern, offer step-by-step solutions.""" \ No newline at end of file +If a user asks for best practices, explain them in a structured manner. If a user needs guidance on a specific security concern, offer step-by-step solutions.""" diff --git a/electron-file-search/README.md b/electron-file-search/README.md index fbb90bf..6ff378a 100644 --- a/electron-file-search/README.md +++ b/electron-file-search/README.md @@ -1,4 +1,4 @@ -# Data Hound +# Data Identification Manager : Personal Edition An Electron-based desktop application that uses AI to help you search and understand your files through natural language queries. diff --git a/electron-file-search/electron/main.ts b/electron-file-search/electron/main.ts index 2998036..b007864 100644 --- a/electron-file-search/electron/main.ts +++ b/electron-file-search/electron/main.ts @@ -12,6 +12,8 @@ function createWindow() { const mainWindow = new BrowserWindow({ width: 1200, height: 800, + minWidth: 1200, // Minimum width + minHeight: 800, // Minimum height frame: false, titleBarStyle: 'hidden', webPreferences: { @@ -40,7 +42,7 @@ function createWindow() { const response = await fetch(process.env.VITE_DEV_SERVER_URL); if (response.ok) { mainWindow.loadURL(process.env.VITE_DEV_SERVER_URL); - mainWindow.webContents.openDevTools(); + //mainWindow.webContents.openDevTools(); } else { setTimeout(pollDevServer, 500); } diff --git a/electron-file-search/electron/preload.ts b/electron-file-search/electron/preload.ts index 0dec560..cf0b6df 100644 --- a/electron-file-search/electron/preload.ts +++ b/electron-file-search/electron/preload.ts @@ -1,6 +1,7 @@ const { contextBridge, ipcRenderer } = require('electron'); // Import types +import type { IpcRendererEvent } from 'electron'; import type { LLMConfig, DocumentMetadata } from './types'; interface Directory { @@ -73,7 +74,7 @@ contextBridge.exposeInMainWorld('electron', { checkModel: (modelName: string) => ipcRenderer.invoke('check-model', modelName), pullModel: (modelName: string, onProgress: (status: string) => void) => { const channel = `pull-model-progress-${modelName}`; - ipcRenderer.on(channel, (_event, status) => onProgress(status)); + ipcRenderer.on(channel, (_event: IpcRendererEvent, status: string) => onProgress(status)); return ipcRenderer.invoke('pull-model', modelName).finally(() => { ipcRenderer.removeListener(channel, onProgress); }); diff --git a/electron-file-search/electron/services/llmService.ts b/electron-file-search/electron/services/llmService.ts index bb33058..365f0b6 100644 --- a/electron-file-search/electron/services/llmService.ts +++ b/electron-file-search/electron/services/llmService.ts @@ -12,7 +12,7 @@ export class LLMService { ): Promise<{ answer: string, sources: DocumentMetadata[] }> { try { const ollamaResponse = await ollamaService.chat({ - model: 'damien113/datahound:latest', + model: 'damien113/datahound-gpu:8b', messages: [{ role: 'user', content: question }], temperature: 0.7, onChunk, @@ -36,7 +36,7 @@ export class LLMService { getConfig() { return { provider: 'ollama', - model: 'damien113/datahound:latest', + model: 'damien113/datahound-gpu:8b', baseUrl: 'http://localhost:11434', temperature: 0.7 }; diff --git a/electron-file-search/index.html b/electron-file-search/index.html index 4ee49bf..26e3978 100644 --- a/electron-file-search/index.html +++ b/electron-file-search/index.html @@ -4,7 +4,7 @@ -