MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / sqliteIndexPath

Function sqliteIndexPath

src/context/sqlite-index.ts:45–48  ·  view source on GitHub ↗
(projectRoot: string, embeddingModel: string)

Source from the content-addressed store, hash-verified

43}
44
45export 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
50async function loadSqlite(): Promise<any | null> {
51 try {

Callers 2

buildSqliteIndexFunction · 0.85
openSqliteIndexFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected