Twinny 官方最新动态:Before the search: what Index workspace reads, skips, hashes and keeps when you cancel
来源:Twinny 官方动态 | 发布日期:2026-10-14
核心更新概览
Before the search: what Index workspace reads, skips, hashes and keeps when you cancel
详细内容记录
Before the search: what Index workspace reads, skips, hashes and keeps when you cancel The search side of the workspace index has a post of its own. This one is the other half, from src/extension/embeddings/indexer.ts and embedder.ts. Which files are read, the two ways a file counts as unchanged, how many texts go to the server at once, what a cancelled run keeps, and why saving a file stops updating the index after you switch embedding models. in twinny’s Embeddings tab and a progress bar walks through your files. covered what happens after that, when a question is matched against the index: the two searches, the reranker, the labelled blocks in the prompt. It also said what a chunk is, so none of that is repeated here. This post is about the run itself: what gets read, why the second run is fast, what the embedding server sees, and what the odd cases do. The code is src/extension/embeddings/indexer.ts The walk is an allowlist. A file is considered only if its extension or its whole name is on a list in : about 150 extensions covering source, config, data formats and documentation, plus names like . Anything not on the list is never opened. Lockfiles (
更多技术细节可访问官方原文:https://blog.twinny.dev/posts/what-index-workspace-reads/。