Download embedding model to ~/.codegraph/models on install

The nomic-ai model is now downloaded during npm install via a postinstall
script and stored globally in ~/.codegraph/models (shared across projects)
instead of per-project in .codegraph/models.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Colby McHenryandClaude Opus 4.5 committed 2026-01-21 13:29:03 -06:00
1 parent 3c2022375a
commit 3ad4d5b35d
4 files changed
+75 -2

No files matched your search

-1
View File
@@ -760,7 +760,6 @@ export class CodeGraph {
if (!this.vectorManager) {
this.vectorManager = createVectorManager(this.db.getDb(), this.queries, {
embedder: {
cacheDir: path.join(this.projectRoot, '.codegraph', 'models'),
showProgress: true,
},
});