@functional-systems/srcx 0.1.0-dev.16 → 0.1.0-dev.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/DESIGN.md +36 -22
- package/README.md +82 -21
- package/RELEASING.md +15 -3
- package/VALIDATION.md +126 -13
- package/dist/cli.js +14 -1
- package/dist/cli.js.map +1 -1
- package/dist/rerank.d.ts +16 -0
- package/dist/rerank.js +68 -0
- package/dist/rerank.js.map +1 -0
- package/dist/search.d.ts +3 -1
- package/dist/search.js +80 -22
- package/dist/search.js.map +1 -1
- package/package.json +4 -2
- package/runtime/qwen.py +97 -0
- package/runtime/requirements.txt +34 -0
- package/src/cli.ts +26 -0
- package/src/rerank.ts +115 -0
- package/src/search.ts +99 -24
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Refresh implemented/remaining scope and verify the published dev.17 package
|
|
6
|
+
through a fresh npm consumer and bounded live first-use workflow.
|
|
7
|
+
|
|
8
|
+
- Add opt-in local Qwen search reranking with bounded candidate pools, pinned
|
|
9
|
+
source evidence, separate scores and per-command timing.
|
|
10
|
+
|
|
5
11
|
- Evaluate fixed-candidate CosQA semantic reranking with local Qwen, shared
|
|
6
12
|
duplicate scores, stable ties and separate official-ID/content metrics.
|
|
7
13
|
|
package/DESIGN.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# srcx: Initial Implementation Design
|
|
2
2
|
|
|
3
|
-
Status:
|
|
4
|
-
|
|
3
|
+
Status: CLI implemented with persistent Git branch tracking, managed semantic/hybrid
|
|
4
|
+
search and optional local Qwen reranking. Local, live and public-benchmark evidence
|
|
5
|
+
have separate scopes. See [README.md](README.md) for runnable interfaces and
|
|
5
6
|
[VALIDATION.md](VALIDATION.md) for the bounded live evidence and remaining scope.
|
|
6
7
|
|
|
7
|
-
Updated: 2026-09-
|
|
8
|
+
Updated: 2026-09-26.
|
|
8
9
|
|
|
9
10
|
## 1. Purpose, decisions, and implementation defaults
|
|
10
11
|
|
|
@@ -557,10 +558,10 @@ baseline, not a proven code-specific ranking solution. An initial enrichment
|
|
|
557
558
|
candidate preserves original identifiers while adding camelCase/snake_case terms;
|
|
558
559
|
pin and evaluate that transformation before adopting it as the preset.
|
|
559
560
|
|
|
560
|
-
The opt-in managed
|
|
561
|
-
`embedding` vector field with provider `openai
|
|
562
|
-
1536 dimensions and
|
|
563
|
-
are nested under the vector field's `embedding` configuration; there are no
|
|
561
|
+
The opt-in managed presets add indexed text `embeddingText` and a managed
|
|
562
|
+
`embedding` vector field with provider `openai`: `text-embedding-3-small` uses
|
|
563
|
+
1536 dimensions and `text-embedding-3-large` uses 3072, both with cosine similarity.
|
|
564
|
+
The source field, dimensions and similarity are nested under the vector field's `embedding` configuration; there are no
|
|
564
565
|
top-level dimension/similarity properties. Collection discovery verifies the
|
|
565
566
|
complete resolved schema and pinned preset. Missing `embeddingText` on skipped
|
|
566
567
|
chunks, files and manifests means no vector is generated for those records. The `none` preset omits the vector index entirely.
|
|
@@ -769,12 +770,22 @@ shape and payload integrity, not deterministic numerical reproduction by OpenAI.
|
|
|
769
770
|
Search remains lexical by default. Explicit `--mode semantic` uses managed
|
|
770
771
|
`knn.queryText`; `--mode hybrid` combines the existing lexical query and that kNN
|
|
771
772
|
query using LambdaDB RRF. Both legs enforce `kind=chunk` and the same optional
|
|
772
|
-
path/language filters; kNN uses a prefilter and `k=limit
|
|
773
|
+
path/language filters; kNN uses a prefilter and `k=limit`, or `k=candidates`
|
|
774
|
+
when optional reranking requests a wider pool. The lexical leg keeps
|
|
773
775
|
nonembedded chunks eligible. Query/fetch/list request vectors explicitly so the
|
|
774
776
|
same validation applies to pinned result handles. When a deployment omits managed
|
|
775
777
|
vectors from list responses, fetch the affected IDs from that same immutable Tag
|
|
776
778
|
and require identical non-vector payloads before vector validation. Source reads still use the
|
|
777
|
-
original file bytes, never enriched text.
|
|
779
|
+
original file bytes, never enriched text. Bounded retrieval and reranking results
|
|
780
|
+
are recorded in [VALIDATION.md](VALIDATION.md); they do not establish a universal
|
|
781
|
+
winner or authorize default changes.
|
|
782
|
+
|
|
783
|
+
Optional `--rerank qwen` scores complete verified chunk bytes with a pinned local
|
|
784
|
+
Qwen3-Reranker-0.6B revision, preserves candidate identity and retrieval order on
|
|
785
|
+
ties, and returns a separate reranker score. Setup is explicit, inference is
|
|
786
|
+
offline, and failures do not silently fall back. Every CLI invocation loads its
|
|
787
|
+
own model. See [README.md](README.md#optional-local-qwen-reranker) for limits and
|
|
788
|
+
runtime setup; this path does not change stored Collections or embedding presets.
|
|
778
789
|
|
|
779
790
|
Managed source text and semantic/hybrid query text are sent through LambdaDB to
|
|
780
791
|
OpenAI and incur embedding usage plus normal LambdaDB operations/storage. Dry-run
|
|
@@ -1067,15 +1078,18 @@ latency, and operational cost are separate measurements.
|
|
|
1067
1078
|
|
|
1068
1079
|
## 12. Remaining decisions and inspected evidence
|
|
1069
1080
|
|
|
1081
|
+
The initial parser/tokenizer presets, managed embedding choices and CLI retrieval
|
|
1082
|
+
modes are implemented and have bounded evaluation records. The following are
|
|
1083
|
+
future decisions or per-run requirements, not blockers awaiting initial design:
|
|
1084
|
+
|
|
1070
1085
|
| Decision | When needed |
|
|
1071
1086
|
| --- | --- |
|
|
1072
|
-
|
|
|
1073
|
-
|
|
|
1074
|
-
|
|
|
1075
|
-
|
|
|
1076
|
-
|
|
|
1077
|
-
|
|
|
1078
|
-
| Concurrent multi-host writers, retention/cleanup, configuration migration | Later internal operation, outside first CLI |
|
|
1087
|
+
| Additional parser languages and production repositories | Onboarding source beyond the currently tested coverage |
|
|
1088
|
+
| Quality/latency thresholds and any default changes | After actual development-task use; before stable rollout |
|
|
1089
|
+
| New embedding/reranking providers or chunking policies | A concrete unmet retrieval need; Jev access remains deferred |
|
|
1090
|
+
| Source authorization, endpoint/project, credentials and spending limits | Before every new corpus upload or paid experiment |
|
|
1091
|
+
| Authoritative Git-tag source and observation freshness | Automatic synchronization or pruning |
|
|
1092
|
+
| Multi-host writers, retention/cleanup and configuration migration | Later internal operation, outside the first CLI |
|
|
1079
1093
|
|
|
1080
1094
|
Sources and evidence used during this design discussion:
|
|
1081
1095
|
|
|
@@ -1112,13 +1126,13 @@ Sources and evidence used during this design discussion:
|
|
|
1112
1126
|
- [Tree-sitter parsing](https://tree-sitter.github.io/tree-sitter/using-parsers/2-basic-parsing.html):
|
|
1113
1127
|
source ranges and encodings; verify the selected binding during implementation.
|
|
1114
1128
|
|
|
1115
|
-
Development checkout references identify the inspected
|
|
1116
|
-
dependencies.
|
|
1117
|
-
application tests, source uploads, embeddings
|
|
1118
|
-
|
|
1129
|
+
Development checkout references identify the files inspected during the original
|
|
1130
|
+
design discussion, not runtime dependencies. That design-only review did not run
|
|
1131
|
+
application tests, source uploads, embeddings or live LambdaDB checks. Subsequent
|
|
1132
|
+
implementation and validation evidence is recorded in [VALIDATION.md](VALIDATION.md).
|
|
1119
1133
|
|
|
1120
|
-
|
|
1121
|
-
reserved metadata labels, and one optional context label passed the local built
|
|
1134
|
+
Historical design validation (September 25): the revised lexical `indexConfigs`
|
|
1135
|
+
JSON, description, four reserved metadata labels, and one optional context label passed the local built
|
|
1122
1136
|
SDK's Collection-create input validator on September 25. All three JSON examples,
|
|
1123
1137
|
the illustrative source span, then-local links, code fences, and whitespace also passed
|
|
1124
1138
|
document checks. These checks do not establish server acceptance, marker ordering,
|
package/README.md
CHANGED
|
@@ -130,6 +130,59 @@ Completed reruns preserve the original report and make no service calls; changed
|
|
|
130
130
|
runtime inputs require a fresh directory. Failed runs retain journals and reject
|
|
131
131
|
automatic replay. These are correctness checks, not retrieval-quality measurements.
|
|
132
132
|
|
|
133
|
+
## Optional local Qwen reranker
|
|
134
|
+
|
|
135
|
+
`search --rerank qwen` reranks candidates from any retrieval mode with
|
|
136
|
+
[Qwen3-Reranker-0.6B](https://huggingface.co/Qwen/Qwen3-Reranker-0.6B/blob/e61197ed45024b0ed8a2d74b80b4d909f1255473/README.md).
|
|
137
|
+
It is off by default. Prepare Python 3.12+ and the model separately; npm does not
|
|
138
|
+
install Python dependencies or download model weights. From a checkout:
|
|
139
|
+
|
|
140
|
+
```sh
|
|
141
|
+
python3.12 -m venv .srcx/qwen-venv
|
|
142
|
+
.srcx/qwen-venv/bin/pip install -r runtime/requirements.txt
|
|
143
|
+
.srcx/qwen-venv/bin/hf download Qwen/Qwen3-Reranker-0.6B \
|
|
144
|
+
--revision e61197ed45024b0ed8a2d74b80b4d909f1255473 \
|
|
145
|
+
config.json generation_config.json model.safetensors tokenizer.json tokenizer_config.json vocab.json merges.txt
|
|
146
|
+
export SRCX_RERANK_PYTHON="$PWD/.srcx/qwen-venv/bin/python"
|
|
147
|
+
|
|
148
|
+
srcx search --repo <collection> --version <commit> \
|
|
149
|
+
--query "retry failed writes" --mode semantic \
|
|
150
|
+
--rerank qwen --candidates 50 --limit 10
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
For a global npm installation, the requirements file is at
|
|
154
|
+
`$(npm root -g)/@functional-systems/srcx/runtime/requirements.txt`; place the venv
|
|
155
|
+
in a persistent directory of your choice and use its absolute Python path.
|
|
156
|
+
`HF_HUB_CACHE` can select an existing Hugging Face cache for both download and
|
|
157
|
+
search. The worker loads only the pinned revision from that cache, offline.
|
|
158
|
+
`SRCX_RERANK_DEVICE` accepts `auto` (default: CUDA, then MPS, then CPU), `cuda`,
|
|
159
|
+
`mps`, or `cpu`. The current worker uses float32, SDPA and batch size one.
|
|
160
|
+
|
|
161
|
+
`--candidates` defaults to `max(50, limit)` and must be between `--limit` and 100.
|
|
162
|
+
It requires `--rerank qwen`. Both hybrid retrieval legs use this candidate limit;
|
|
163
|
+
path/language filters and the immutable version apply before reranking. The
|
|
164
|
+
worker receives the query and complete, verified source bytes of each chunk,
|
|
165
|
+
without a path prefix or evaluator labels. Identical source text shares a score
|
|
166
|
+
within the query; every candidate remains present and ties retain retrieval order.
|
|
167
|
+
It uses the code-search instruction from the CoSQA evaluation and ranks by the
|
|
168
|
+
raw yes-minus-no logit margin, not a calibrated relevance probability.
|
|
169
|
+
|
|
170
|
+
JSON stdout remains an array of results. `score` retains the retrieval score;
|
|
171
|
+
`rerankScore`, `retrievalRank` (one-based), and `reranker` identify the new order.
|
|
172
|
+
Only the returned results receive persisted evidence handles. Reranked excerpts
|
|
173
|
+
use the exact chunk bytes; normal reads still expand to complete source lines.
|
|
174
|
+
A JSON timing record on stderr reports verified retrieval, worker, search, and
|
|
175
|
+
command-handler times. Worker time includes Python startup, model loading and
|
|
176
|
+
inference. External process timing additionally includes Node startup and output.
|
|
177
|
+
|
|
178
|
+
Each CLI invocation loads a fresh model; this is an opt-in local integration,
|
|
179
|
+
not a warm inference service. The worker has a 120-second timeout, a 4 MiB input
|
|
180
|
+
cap and an 8,192-token limit per query/chunk pair. Missing setup, oversized input,
|
|
181
|
+
invalid scores and inference failures fail the command without silent truncation
|
|
182
|
+
or fallback. Empty candidate pools skip model execution. Existing search defaults
|
|
183
|
+
and managed embedding usage rules remain unchanged; wider pools increase source
|
|
184
|
+
verification work. See the [integration validation](VALIDATION.md#local-reranker-integration).
|
|
185
|
+
|
|
133
186
|
## Evaluate retrieval quality
|
|
134
187
|
|
|
135
188
|
The internal [lexical chunking pilot](https://github.com/lambdadb/srcx/blob/develop/eval/README.md) compares syntax-aware and
|
|
@@ -212,40 +265,46 @@ run and any pending journal. Its per-import deadline defaults to 300 seconds and
|
|
|
212
265
|
|
|
213
266
|
## Connected workflow
|
|
214
267
|
|
|
268
|
+
Use the installed `srcx` binary below. For a source checkout, build first and
|
|
269
|
+
replace `srcx` with `node dist/cli.js`.
|
|
270
|
+
|
|
215
271
|
These commands create and write LambdaDB resources. Select an approved project
|
|
216
|
-
and source scope before running them. Start live validation with
|
|
217
|
-
fixture
|
|
272
|
+
and source scope before running them. Start live validation with a small synthetic
|
|
273
|
+
fixture. `repo add` returns a `collection` value: use that value as `<name>` below
|
|
274
|
+
to disambiguate repositories with multiple presets. If isolating a first-use run,
|
|
275
|
+
set `SRCX_CONFIG` and `SRCX_STATE_DIR` to fresh paths before `configure`; keep
|
|
276
|
+
credentials in the shell and preserve these paths for later result reads.
|
|
218
277
|
|
|
219
278
|
```sh
|
|
220
279
|
# Supply LAMBDADB_API_KEY through your shell or secret manager.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
280
|
+
srcx configure --endpoint https://api.lambdadb.ai --project <project>
|
|
281
|
+
srcx doctor
|
|
282
|
+
srcx repo add --path /path/to/repo \
|
|
224
283
|
--description "Repository source, tests, and documentation for code search." \
|
|
225
284
|
--tag team=search
|
|
226
|
-
|
|
227
|
-
|
|
285
|
+
srcx repo list
|
|
286
|
+
srcx repo show --repo <name>
|
|
228
287
|
|
|
229
288
|
# Import the exact artifact reviewed in the credential-free preview.
|
|
230
|
-
|
|
231
|
-
|
|
289
|
+
srcx import --repo <name> --artifact /tmp/srcx-build-a
|
|
290
|
+
srcx versions --repo <name>
|
|
232
291
|
|
|
233
292
|
# Keep a Git branch connected to its Collection Branch.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
293
|
+
srcx import --repo <name> --ref develop
|
|
294
|
+
srcx search --repo <name> --version develop --query retry
|
|
295
|
+
srcx resolve --repo <name> --ref refs/heads/develop
|
|
296
|
+
srcx search --repo <name> --version <full-commit-A> --query retry
|
|
297
|
+
srcx read --result <result-id> --context 20
|
|
298
|
+
srcx read --result <result-id> --full-file
|
|
299
|
+
srcx read --repo <name> --version <full-commit-A> \
|
|
241
300
|
--path src/example.ts --lines 10:30
|
|
242
301
|
|
|
243
|
-
|
|
302
|
+
srcx import --repo <name> --artifact /tmp/srcx-build-b
|
|
244
303
|
# An old A result still reads A after B is published.
|
|
245
|
-
|
|
304
|
+
srcx read --result <result-id> --full-file
|
|
246
305
|
|
|
247
|
-
|
|
248
|
-
|
|
306
|
+
srcx git sync-tags --repo <name>
|
|
307
|
+
srcx resolve --repo <name> --ref v1.0.0
|
|
249
308
|
```
|
|
250
309
|
|
|
251
310
|
`doctor` checks authentication and Collection read access, not write permission
|
|
@@ -261,7 +320,9 @@ identity or Collection name. Registration normalizes the selected Git remote;
|
|
|
261
320
|
without remotes receive a persistent local source identity. Repeated registration
|
|
262
321
|
preserves existing descriptions/labels and attaches the local checkout.
|
|
263
322
|
|
|
264
|
-
Search
|
|
323
|
+
Search defaults to literal analyzed lexical text. All retrieval modes are
|
|
324
|
+
restricted to `kind=chunk`; semantic/hybrid and optional Qwen reranking are
|
|
325
|
+
described above. Optional
|
|
265
326
|
`--path` and `--language` filters are exact keyword filters. `--limit` is 1–100.
|
|
266
327
|
Search results include a durable local `resultId`, commit, immutable Tag/Snapshot,
|
|
267
328
|
path, lines, and citation. Reads verify the original content hash and refuse
|
package/RELEASING.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Current state
|
|
4
4
|
|
|
5
|
+
As of 2026-09-26, the verified `dev` package is `0.1.0-dev.17`, built from
|
|
6
|
+
`98be125d45128a9395544b0925df591c0da08b39` by the successful
|
|
7
|
+
[develop publication](https://github.com/lambdadb/srcx/actions/runs/36178586841).
|
|
8
|
+
The downloaded registry tarball matches its SHA-512 integrity and installed
|
|
9
|
+
`gitHead`. The npm provenance statement identifies the same commit, workflow
|
|
10
|
+
and run; inspecting that statement is separate from cryptographic verification
|
|
11
|
+
of its signature. See [first-use validation](VALIDATION.md#installed-dev-package-first-use)
|
|
12
|
+
for the clean consumer and live CLI checks. `dev` is mutable; these claims apply
|
|
13
|
+
to the exact version above, not future publications.
|
|
14
|
+
|
|
15
|
+
Bootstrap history:
|
|
16
|
+
|
|
5
17
|
The initial `@functional-systems/srcx@0.1.0-dev.1` package was published publicly
|
|
6
18
|
from reviewed commit `f94f947bf593b2f8498c07e130933b0ab444f868`. Its exact tarball
|
|
7
19
|
passed clean-install and live LambdaDB checks. The local bootstrap has no GitHub
|
|
@@ -12,8 +24,8 @@ The package-specific Trusted Publisher is configured for `lambdadb/srcx` and
|
|
|
12
24
|
`publish.yaml`, with direct publication allowed. `NPM_DEV_PUBLISH_ENABLED=true`.
|
|
13
25
|
The first successful [OIDC publication](https://github.com/lambdadb/srcx/actions/runs/36035063463/attempts/3)
|
|
14
26
|
produced `0.1.0-dev.3` from the same commit and moved `dev` to that version.
|
|
15
|
-
Provenance identifies this repository, workflow, commit, and run.
|
|
16
|
-
`latest`
|
|
27
|
+
Provenance identifies this repository, workflow, commit, and run. At the September 26 registry check,
|
|
28
|
+
`latest` remained the bootstrap prerelease `0.1.0-dev.1`; it is not a stable release.
|
|
17
29
|
See [VALIDATION.md](VALIDATION.md) for registry and consumer verification.
|
|
18
30
|
|
|
19
31
|
This workflow follows [LambdaDB CLI](https://github.com/lambdadb/lambdadb-cli/blob/develop/RELEASING.md).
|
|
@@ -54,7 +66,7 @@ GitHub permissions and no LambdaDB service keys.
|
|
|
54
66
|
Publication packs once, tests that exact tarball through a clean installation,
|
|
55
67
|
and publishes the same file with provenance. Do not replace it with a repacked
|
|
56
68
|
artifact after testing. The package includes runtime JavaScript, source maps and
|
|
57
|
-
their source files, and public docs/license; it excludes tests, workflows,
|
|
69
|
+
their source files, the optional Qwen worker/requirements, and public docs/license; it excludes tests, workflows,
|
|
58
70
|
scripts, `.env`, and `.srcx` state. Production dependencies supply the parser
|
|
59
71
|
WASM assets; package tests exercise parsing with install scripts disabled.
|
|
60
72
|
|
package/VALIDATION.md
CHANGED
|
@@ -2,6 +2,108 @@
|
|
|
2
2
|
|
|
3
3
|
Date: 2026-09-26 (Asia/Seoul).
|
|
4
4
|
|
|
5
|
+
## Installed dev package first use
|
|
6
|
+
|
|
7
|
+
On 2026-09-26, the public `@functional-systems/srcx@0.1.0-dev.17` tarball from
|
|
8
|
+
source `98be125d45128a9395544b0925df591c0da08b39` passed a fresh npm consumer
|
|
9
|
+
installation and **23 CLI commands** covering local setup and live LambdaDB. The corresponding
|
|
10
|
+
[develop CI and publication](https://github.com/lambdadb/srcx/actions/runs/36178586841)
|
|
11
|
+
completed successfully. The registry `dev` tag selected dev.17 at inspection;
|
|
12
|
+
`latest` still selected the bootstrap dev.1, not a stable release.
|
|
13
|
+
|
|
14
|
+
The downloaded tarball's SHA-512 matched npm metadata, and its installed package
|
|
15
|
+
version/`gitHead` matched the intended source. Both npm attestation subjects
|
|
16
|
+
matched those tarball bytes; the provenance statement identified the expected
|
|
17
|
+
repository, commit, workflow and run. The attestation signature was not
|
|
18
|
+
independently verified in this local check.
|
|
19
|
+
|
|
20
|
+
The consumer used `npm install --ignore-scripts` in a new prefix, an isolated
|
|
21
|
+
`SRCX_CONFIG`/`SRCX_STATE_DIR`, and the installed `.bin/srcx` rather than the
|
|
22
|
+
checkout build. The existing Python 3.12 environment and cached Qwen model were
|
|
23
|
+
reused explicitly; all 34 pinned Python package versions and their active
|
|
24
|
+
installed dependency constraints matched. This was not a clean Python/model
|
|
25
|
+
installation, CPU/CUDA validation, or a new ranking benchmark.
|
|
26
|
+
|
|
27
|
+
| Check | Observed result |
|
|
28
|
+
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| Version/help, configure, doctor | Expected dev.17 version/options; fresh connection settings; authentication/read check passed |
|
|
30
|
+
| Preview, register, discover | New synthetic Git repository; lexical preview had two files, two chunks, 44 tokens; one isolated Collection created |
|
|
31
|
+
| Commit A import/search/read | Validated publication, matching lexical result and exact original file |
|
|
32
|
+
| Optional local Qwen | Real cached model, finite reranker score, matching source read; 4.56 s external CLI wall time |
|
|
33
|
+
| Git tag mapping | `v1` Alias resolved to commit A |
|
|
34
|
+
| Commit B import/search/read | Changed source visible; deleted-file query returned no hits; A result handle still read exact A source |
|
|
35
|
+
| Managed semantic/hybrid | One search/read per mode against an existing immutable Collection of public srcx source; selected source matched Git |
|
|
36
|
+
|
|
37
|
+
The two synthetic commits were A `0d3bdc318ad1079339a46bc67cd7037f0ebfc3cc`
|
|
38
|
+
and B `9d652332bf1d29545970ccda2d823b8d4d1f627f`. Import commands took 90.45 s
|
|
39
|
+
and 41.44 s, including index visibility and Tag validation. These are single
|
|
40
|
+
integration measurements; they are not import-throughput or latency guarantees.
|
|
41
|
+
|
|
42
|
+
Usage was **one new lexical Collection, two imports, six searches and two managed
|
|
43
|
+
query embeddings**, with no new document embeddings or model downloads. All
|
|
44
|
+
commands completed; no failed-command replay was needed. Synthetic remote
|
|
45
|
+
resources and local artifacts remain available for inspection.
|
|
46
|
+
|
|
47
|
+
Retained evidence lives under `.srcx/first-use/` in the first-use worktree:
|
|
48
|
+
|
|
49
|
+
- `run/report.json`: reservations, command timings, versions and checks;
|
|
50
|
+
SHA-256 `10652c0cbf485e39be576f37b196873e66b284b6f07d3f2c5a86ebf72a7ff7ea`.
|
|
51
|
+
- `package/functional-systems-srcx-0.1.0-dev.17.tgz`: exact tested registry artifact;
|
|
52
|
+
SHA-256 `ec75eedd8c9031d5de3cace38f90f84ccf46f9b9723b13cbfc2e73ae9c7edde7`.
|
|
53
|
+
- `registry.json`, `dist-tags.json`, `attestations.json`, `python-runtime.json`,
|
|
54
|
+
bounded `acceptance.mjs`, command outputs, fixture source and result handles.
|
|
55
|
+
|
|
56
|
+
The documentation follow-up changes no runtime code, search defaults, published
|
|
57
|
+
package versions or deployment configuration. Later docs-only dev builds are
|
|
58
|
+
separate artifacts; the above live evidence remains attached to dev.17.
|
|
59
|
+
|
|
60
|
+
## Local reranker integration
|
|
61
|
+
|
|
62
|
+
The opt-in `search --rerank qwen` path was exercised with the cached
|
|
63
|
+
Qwen3-Reranker-0.6B revision `e61197ed45024b0ed8a2d74b80b4d909f1255473`,
|
|
64
|
+
Python 3.12, float32/MPS on the same Apple M5 Pro / 64 GB machine. A local model
|
|
65
|
+
check ranked a sorting function above an unrelated reader and assigned identical
|
|
66
|
+
scores to exact duplicate source. Offline snapshot loading initially rejected the
|
|
67
|
+
selectively downloaded cache; matching the download allowlist fixed this before
|
|
68
|
+
any live search. No model download was required.
|
|
69
|
+
|
|
70
|
+
Three existing repository questions were selected before running, with a fixed
|
|
71
|
+
20-candidate pool and a first-five result/read limit. The six CLI searches used
|
|
72
|
+
existing immutable Tags for srcx `8c0d1656d4d66a6461a32e9072b2e5f7fda9cec1`
|
|
73
|
+
and lambdadb-cli `513af6e4d262edd380013c86d51a20aad16274d7`. Baselines retrieved
|
|
74
|
+
20 results so candidate membership could be checked. All 28 selected-result
|
|
75
|
+
reads matched committed Git source, and every reranked result retained its
|
|
76
|
+
baseline candidate, retrieval score and Snapshot identity.
|
|
77
|
+
|
|
78
|
+
| Question / mode | Candidates | Baseline CLI | Qwen CLI | Qwen worker | First-five complete evidence, before → after |
|
|
79
|
+
| ------------------------------------------ | ---------: | -----------: | -------: | ----------: | -------------------------------------------- |
|
|
80
|
+
| `srcx-alias-name` / lexical | 4 | 2.04 s | 4.44 s | 2.46 s | yes → yes |
|
|
81
|
+
| `srcx-read-integrity` / semantic | 20 | 6.73 s | 9.75 s | 5.35 s | no → no |
|
|
82
|
+
| `lambdadb-cli-command-deadline` / semantic | 20 | 3.86 s | 8.58 s | 4.89 s | yes → yes |
|
|
83
|
+
|
|
84
|
+
CLI timings are external process wall times, excluding subsequent `read` checks;
|
|
85
|
+
worker timings include Python startup, fresh model loading and inference.
|
|
86
|
+
Network/cache/order effects are uncontrolled and these are single measurements,
|
|
87
|
+
not latency percentiles or proof of interactive suitability. The baseline prints
|
|
88
|
+
up to 20 hits while the reranked command prints up to five; both verify the same
|
|
89
|
+
candidate pool. Existing assistant-authored evidence labels were reused, with
|
|
90
|
+
no tuning or new independent relevance judgments. This is an integration smoke
|
|
91
|
+
check, not another ranking benchmark. It supports keeping reranking optional;
|
|
92
|
+
no defaults changed and Jev evaluation remains deferred.
|
|
93
|
+
|
|
94
|
+
There were six searches (four managed query embeddings), no new Collections,
|
|
95
|
+
document writes, document embeddings, retries or failed live commands. The
|
|
96
|
+
retained local report is `.srcx/reranker-smoke/live/report.json` in the integration
|
|
97
|
+
worktree (SHA-256 `0b1a406153a751def4106ce4e6dbeca4fd9f2439e02cefd04e5be111a4679568`).
|
|
98
|
+
Raw command outputs, the bounded runner and isolated result handles are retained
|
|
99
|
+
alongside it; credentials were not recorded.
|
|
100
|
+
|
|
101
|
+
Local validation passed 95 Node tests, 13 Python checks, typecheck, formatting,
|
|
102
|
+
version consistency and three installed-package CLI checks. Installed-package
|
|
103
|
+
checks include the bundled worker path and opt-in search/read protocol with a
|
|
104
|
+
synthetic worker; real model inference and LambdaDB searches were local checks,
|
|
105
|
+
not CI inference. See [setup and behavior](README.md#optional-local-qwen-reranker).
|
|
106
|
+
|
|
5
107
|
## Fixed-candidate CosQA reranking
|
|
6
108
|
|
|
7
109
|
The [completed Qwen comparison](eval/COSQA-RERANK-RESULTS.md), run on September 26
|
|
@@ -456,19 +558,30 @@ Those temporary paths are run-specific and are not committed fixtures.
|
|
|
456
558
|
|
|
457
559
|
## Implementation choices and remaining scope
|
|
458
560
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
561
|
+
Implemented CLI behavior:
|
|
562
|
+
|
|
563
|
+
- Lexical search remains the default. Separate managed Collections support
|
|
564
|
+
OpenAI `text-embedding-3-small` (1536 dimensions) and `text-embedding-3-large`
|
|
565
|
+
(3072 dimensions), with explicit semantic and RRF hybrid search. The CLI rejects
|
|
566
|
+
arbitrary fixture/custom vector presets, not the supported managed presets.
|
|
567
|
+
- Optional local Qwen reranking uses a pinned model revision, bounded candidates,
|
|
568
|
+
verified source and stable ties. It requires separate Python/model setup;
|
|
569
|
+
startup and full-command latency are reported above. Jev comparison is deferred.
|
|
570
|
+
- Git branch imports reuse a fixed `git-*` Branch with its last validated immutable
|
|
571
|
+
baseline; SHA/tag imports retain frozen `work-*` writers. Explicit `--resume`
|
|
572
|
+
reconciles the same pending import through its journal. Observed Git tags map
|
|
573
|
+
to Aliases, including multiple names for one published commit.
|
|
574
|
+
- Local diagnostics, public retrieval baselines and the fixed-candidate CoSQA
|
|
575
|
+
reranking comparison are complete within their documented bounds. They do not
|
|
576
|
+
establish universal relevance gains, production throughput or agent-task success.
|
|
577
|
+
|
|
578
|
+
Remaining operational scope: automatic Git observation, recovery of abandoned
|
|
579
|
+
workspaces without their required journal, branch rename/deletion handling,
|
|
580
|
+
authoritative Alias pruning, retention/garbage collection, and configuration
|
|
581
|
+
migration. Failed/candidate resources and local build artifacts are retained.
|
|
582
|
+
A single importing host is required: local locks and remote pending ownership
|
|
583
|
+
are not a distributed compare-and-set or lease protocol. UI, MCP and hosted SaaS
|
|
584
|
+
remain outside the first CLI scope. No stable/rc or Homebrew release is claimed.
|
|
472
585
|
|
|
473
586
|
Parsing uses the pinned packaged grammars. Unsupported/new syntax can fall back
|
|
474
587
|
and is recorded; no claim of complete language-version coverage is made. There is
|
package/dist/cli.js
CHANGED
|
@@ -13,6 +13,7 @@ import { attachment, destination, discover, register, selectRepository, } from "
|
|
|
13
13
|
import { exclusive, lastBuildPath, publish, published, } from "./publish.js";
|
|
14
14
|
import { resolveVersion, syncTags } from "./releases.js";
|
|
15
15
|
import { directHandle, loadHandle, readHandle, search } from "./search.js";
|
|
16
|
+
import { candidateLimit } from "./rerank.js";
|
|
16
17
|
const cli = new Command()
|
|
17
18
|
.name("srcx")
|
|
18
19
|
.description("Version-aware code search on LambdaDB")
|
|
@@ -244,15 +245,27 @@ cli
|
|
|
244
245
|
.addOption(new Option("--mode <mode>", "Retrieval method; semantic/hybrid incur managed query embedding usage")
|
|
245
246
|
.choices(["lexical", "semantic", "hybrid"])
|
|
246
247
|
.default("lexical"))
|
|
248
|
+
.addOption(new Option("--rerank <model>", "Opt-in local reranker (requires separate Python/model setup)").choices(["qwen"]))
|
|
249
|
+
.option("--candidates <count>", "Rerank pool size (default: max(50, limit); max: 100)", integer)
|
|
247
250
|
.option("--path <path>", "Exact path filter")
|
|
248
251
|
.option("--language <name>")
|
|
249
252
|
.action(async (o) => {
|
|
253
|
+
const started = performance.now();
|
|
254
|
+
candidateLimit(o.limit, o);
|
|
250
255
|
const { remote, settings } = await connected();
|
|
251
256
|
const r = await selectRepository(remote, o.repo), store = remote.store(r.collection), v = await resolveVersion(store, r, o.version);
|
|
252
257
|
output(await search(store, settings, r, v, o.query, o.limit, {
|
|
253
258
|
path: o.path,
|
|
254
259
|
language: o.language,
|
|
255
|
-
}, o.mode
|
|
260
|
+
}, o.mode, {
|
|
261
|
+
rerank: o.rerank,
|
|
262
|
+
candidates: o.candidates,
|
|
263
|
+
onTiming: (timing) => process.stderr.write(JSON.stringify({
|
|
264
|
+
event: "rerank-timing",
|
|
265
|
+
...timing,
|
|
266
|
+
commandMs: performance.now() - started,
|
|
267
|
+
}) + "\n"),
|
|
268
|
+
}));
|
|
256
269
|
});
|
|
257
270
|
cli
|
|
258
271
|
.command("read")
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EAGb,MAAM,EACN,SAAS,GACV,MAAM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K,EAAE,cAAc,CAAC,CAAC,CAAC,EAClD,6DAA6D,CAC9D,CAAC;QACF,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AACL,IAAI,CAAC;IACH,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC;AACzB,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,MAAM,OAAO,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC;IACrE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,OAAO,IAAI,CAAC,CAAC;IAC3C,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC"}
|
package/dist/rerank.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const QWEN_MODEL = "Qwen/Qwen3-Reranker-0.6B";
|
|
2
|
+
export declare const QWEN_REVISION = "e61197ed45024b0ed8a2d74b80b4d909f1255473";
|
|
3
|
+
export type Candidate = {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
export type RerankOptions = {
|
|
8
|
+
rerank?: "qwen";
|
|
9
|
+
candidates?: number;
|
|
10
|
+
onTiming?: (timing: Record<string, unknown>) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function candidateLimit(limit: number, options: RerankOptions): number;
|
|
13
|
+
export declare function qwenScores(query: string, candidates: Candidate[]): Promise<{
|
|
14
|
+
scores: number[];
|
|
15
|
+
elapsedMs: number;
|
|
16
|
+
}>;
|