(projectRoot: string, embeddingModel: string)
| 43 | } |
| 44 | |
| 45 | export function sqliteIndexPath(projectRoot: string, embeddingModel: string): string { |
| 46 | const hash = createHash('sha1').update(`${projectRoot}::${embeddingModel}`).digest('hex').slice(0, 16); |
| 47 | return path.join(os.homedir(), '.qodex', 'embeddings', `${hash}.sqlite`); |
| 48 | } |
| 49 | |
| 50 | async function loadSqlite(): Promise<any | null> { |
| 51 | try { |
no test coverage detected