Skip to content

Commit 11d8542

Browse files
committed
chore: update deps, silence warnings, and improve caching/locking
- Cargo.lock: add/adjust packages (atty, dirs 5.0.1, dotenv, hermit-abi 0.1.19, redox_users 0.4.6) and add older windows-targets/windows_* entries; bump windows-sys usages to 0.61.1 where needed. - crates/codegraph-mcp: add workspace deps (once_cell, lru, atty) in Cargo.toml; integrate indicatif MultiProgress into indexer CLI and switch tracing to a fmt layer. - FAISS/Vector caching: use once_cell::sync::Lazy statics, store IndexImpl behind parking_lot::Mutex/Arc in INDEX_CACHE, update get_cached_index signature and lock before search; convert EMBEDDING_GENERATOR and QUERY_RESULT_CACHE to Lazy. - Lint/cleanup: add #![allow(dead_code, unused_variables, unused_imports,...)] to many modules; prefix unused locals with _ to suppress warnings; remove unused imports and simplify imports across multiple files. - Various small refactors/bugfixes: - Use write lock / as_mut when FAISS API requires mutable access. - Pass file collection config through indexer flow and fix parser borrow. - Minor type/import adjustments in parser, graph, and vector crates to reduce unused symbols and tighten signatures. - Small safety/clarity tweaks in onnx, context retriever, search, and insights generator modules. These changes are primarily maintenance: keep the workspace compiling cleanly, reduce warnings, and improve concurrent caching for vector indexes.
1 parent 3002d05 commit 11d8542

33 files changed

+289
-96
lines changed

Cargo.lock

Lines changed: 140 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LMSTUDIO_SETUP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ open ~/Downloads/LMStudio-*.dmg
4040
1. Open LM Studio
4141
2. Go to "Discover" tab
4242
3. Search and download:
43-
- **Embeddings**: `jinaai/jina-embeddings-v3` (1.5B parameters, 1536-dim)
43+
- **Embeddings**: `jinaai/jina-code-embeddings-1.5b` (1.5B parameters, 1536-dim)
4444
- **LLM**: `lmstudio-community/DeepSeek-Coder-V2-Lite-Instruct-GGUF`
4545
- Select: `DeepSeek-Coder-V2-Lite-Instruct-Q4_K_M.gguf`
4646

4747
**Option B: Manual Download**
4848

4949
```bash
5050
# Download embeddings model
51-
huggingface-cli download jinaai/jina-embeddings-v3 \
52-
--local-dir ~/.cache/lm-studio/models/jinaai/jina-embeddings-v3
51+
huggingface-cli download jinaai/jina-code-embeddings-1.5b' \
52+
--local-dir ~/.cache/lm-studio/models/jinaai/jina-code-embeddings-1.5b'
5353

5454
# Download LLM model
5555
huggingface-cli download lmstudio-community/DeepSeek-Coder-V2-Lite-Instruct-GGUF \
@@ -108,7 +108,7 @@ Create `.codegraph.toml`:
108108
```toml
109109
[embedding]
110110
provider = "lmstudio"
111-
model = "jinaai/jina-embeddings-v3"
111+
model = "jinaai/jina-code-embeddings-1.5b"
112112
lmstudio_url = "http://localhost:1234"
113113
dimension = 1536
114114
batch_size = 64

0 commit comments

Comments
 (0)