Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
uses: actions/cache@v5
with:
path: ~/.cache/huggingface
key: hf-models-${{ runner.os }}-${{ hashFiles('src/embedder.js') }}
key: hf-models-${{ runner.os }}-${{ hashFiles('src/embeddings/**') }}
restore-keys: hf-models-${{ runner.os }}-

- name: Build graph
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/embedding-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
pull_request:
paths:
- 'src/embedder.js'
- 'src/embeddings/**'
- 'tests/search/**'
- 'package.json'

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ JS source is plain JavaScript (ES modules) in `src/`. No transpilation step. The
| `builder.js` | Graph building: file collection, parsing, import resolution, incremental hashing |
| `parser.js` | tree-sitter WASM wrapper; `LANGUAGE_REGISTRY` + per-language extractors for functions, classes, methods, imports, exports, call sites |
| `queries.js` | Query functions: symbol search, file deps, impact analysis, diff-impact; `SYMBOL_KINDS` constant defines all node kinds |
| `embedder.js` | Semantic search with `@huggingface/transformers`; multi-query RRF ranking |
| `embeddings/` | Embedding subsystem: model management, vector generation, semantic/keyword/hybrid search, CLI formatting |
| `db.js` | SQLite schema and operations (`better-sqlite3`) |
| `mcp.js` | MCP server exposing graph queries to AI agents; single-repo by default, `--multi-repo` to enable cross-repo access |
| `cycles.js` | Circular dependency detection |
Expand Down
2 changes: 1 addition & 1 deletion scripts/embedding-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const { version, srcDir, cleanup } = await resolveBenchmarkSource();
const dbPath = path.join(root, '.codegraph', 'graph.db');

const { buildEmbeddings, MODELS, searchData, disposeModel } = await import(
srcImport(srcDir, 'embedder.js')
srcImport(srcDir, 'embeddings/index.js')
);

// Redirect console.log to stderr so only JSON goes to stdout
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/embed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { buildEmbeddings, DEFAULT_MODEL, EMBEDDING_STRATEGIES } from '../../embedder.js';
import { buildEmbeddings, DEFAULT_MODEL, EMBEDDING_STRATEGIES } from '../../embeddings/index.js';

export const command = {
name: 'embed [dir]',
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/models.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DEFAULT_MODEL, MODELS } from '../../embedder.js';
import { DEFAULT_MODEL, MODELS } from '../../embeddings/index.js';

export const command = {
name: 'models',
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { search } from '../../embedder.js';
import { search } from '../../embeddings/index.js';

export const command = {
name: 'search <query>',
Expand Down
Loading
Loading