@esankhan3/anvil-knowledge-core 0.3.13 → 0.4.0
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/dist/__tests__/chunker.test.js +15 -0
- package/dist/__tests__/chunker.test.js.map +1 -1
- package/dist/__tests__/literal-tier-integration.test.d.ts +7 -0
- package/dist/__tests__/literal-tier-integration.test.d.ts.map +1 -0
- package/dist/__tests__/literal-tier-integration.test.js +84 -0
- package/dist/__tests__/literal-tier-integration.test.js.map +1 -0
- package/dist/__tests__/partial-cycle-chunks.test.d.ts +15 -0
- package/dist/__tests__/partial-cycle-chunks.test.d.ts.map +1 -0
- package/dist/__tests__/partial-cycle-chunks.test.js +133 -0
- package/dist/__tests__/partial-cycle-chunks.test.js.map +1 -0
- package/dist/__tests__/retriever-fusion.test.js +101 -4
- package/dist/__tests__/retriever-fusion.test.js.map +1 -1
- package/dist/__tests__/storage-graph-accessor.test.d.ts +11 -0
- package/dist/__tests__/storage-graph-accessor.test.d.ts.map +1 -0
- package/dist/__tests__/storage-graph-accessor.test.js +70 -0
- package/dist/__tests__/storage-graph-accessor.test.js.map +1 -0
- package/dist/__tests__/storage-mongo-blob.test.d.ts +11 -0
- package/dist/__tests__/storage-mongo-blob.test.d.ts.map +1 -0
- package/dist/__tests__/storage-mongo-blob.test.js +118 -0
- package/dist/__tests__/storage-mongo-blob.test.js.map +1 -0
- package/dist/__tests__/storage-ports.test.d.ts +9 -0
- package/dist/__tests__/storage-ports.test.d.ts.map +1 -0
- package/dist/__tests__/storage-ports.test.js +276 -0
- package/dist/__tests__/storage-ports.test.js.map +1 -0
- package/dist/__tests__/storage-profile-helpers.test.d.ts +7 -0
- package/dist/__tests__/storage-profile-helpers.test.d.ts.map +1 -0
- package/dist/__tests__/storage-profile-helpers.test.js +50 -0
- package/dist/__tests__/storage-profile-helpers.test.js.map +1 -0
- package/dist/__tests__/storage-vector-integration.test.d.ts +15 -0
- package/dist/__tests__/storage-vector-integration.test.d.ts.map +1 -0
- package/dist/__tests__/storage-vector-integration.test.js +196 -0
- package/dist/__tests__/storage-vector-integration.test.js.map +1 -0
- package/dist/__tests__/vector-recall.test.d.ts +15 -0
- package/dist/__tests__/vector-recall.test.d.ts.map +1 -0
- package/dist/__tests__/vector-recall.test.js +94 -0
- package/dist/__tests__/vector-recall.test.js.map +1 -0
- package/dist/__tests__/writer-remote-pipeline.test.d.ts +2 -0
- package/dist/__tests__/writer-remote-pipeline.test.d.ts.map +1 -0
- package/dist/__tests__/writer-remote-pipeline.test.js +39 -0
- package/dist/__tests__/writer-remote-pipeline.test.js.map +1 -0
- package/dist/chunker.d.ts.map +1 -1
- package/dist/chunker.js +8 -4
- package/dist/chunker.js.map +1 -1
- package/dist/config.d.ts +69 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -1
- package/dist/cross-repo-detector.d.ts +70 -0
- package/dist/cross-repo-detector.d.ts.map +1 -1
- package/dist/cross-repo-detector.js +654 -810
- package/dist/cross-repo-detector.js.map +1 -1
- package/dist/file-walker.d.ts +3 -0
- package/dist/file-walker.d.ts.map +1 -1
- package/dist/file-walker.js +24 -1
- package/dist/file-walker.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/indexer.d.ts +17 -1
- package/dist/indexer.d.ts.map +1 -1
- package/dist/indexer.js +355 -93
- package/dist/indexer.js.map +1 -1
- package/dist/project-graph-builder.d.ts +8 -5
- package/dist/project-graph-builder.d.ts.map +1 -1
- package/dist/project-graph-builder.js +66 -66
- package/dist/project-graph-builder.js.map +1 -1
- package/dist/query-router.d.ts +7 -5
- package/dist/query-router.d.ts.map +1 -1
- package/dist/query-router.js +16 -50
- package/dist/query-router.js.map +1 -1
- package/dist/repo-pipeline.d.ts +27 -2
- package/dist/repo-pipeline.d.ts.map +1 -1
- package/dist/repo-pipeline.js +66 -11
- package/dist/repo-pipeline.js.map +1 -1
- package/dist/repo-profiler.d.ts +9 -4
- package/dist/repo-profiler.d.ts.map +1 -1
- package/dist/repo-profiler.js +49 -41
- package/dist/repo-profiler.js.map +1 -1
- package/dist/retriever.d.ts +4 -5
- package/dist/retriever.d.ts.map +1 -1
- package/dist/retriever.js +81 -17
- package/dist/retriever.js.map +1 -1
- package/dist/storage/fs-blob-store.d.ts +31 -0
- package/dist/storage/fs-blob-store.d.ts.map +1 -0
- package/dist/storage/fs-blob-store.js +163 -0
- package/dist/storage/fs-blob-store.js.map +1 -0
- package/dist/storage/index.d.ts +11 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +4 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/mongo-blob-store.d.ts +50 -0
- package/dist/storage/mongo-blob-store.d.ts.map +1 -0
- package/dist/storage/mongo-blob-store.js +264 -0
- package/dist/storage/mongo-blob-store.js.map +1 -0
- package/dist/storage/ports.d.ts +135 -0
- package/dist/storage/ports.d.ts.map +1 -0
- package/dist/storage/ports.js +12 -0
- package/dist/storage/ports.js.map +1 -0
- package/dist/storage/resolve.d.ts +78 -0
- package/dist/storage/resolve.d.ts.map +1 -0
- package/dist/storage/resolve.js +208 -0
- package/dist/storage/resolve.js.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vector-recall.d.ts +30 -0
- package/dist/vector-recall.d.ts.map +1 -0
- package/dist/vector-recall.js +32 -0
- package/dist/vector-recall.js.map +1 -0
- package/dist/vector-store.d.ts +61 -10
- package/dist/vector-store.d.ts.map +1 -1
- package/dist/vector-store.js +188 -23
- package/dist/vector-store.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* resolveStorage — the single factory that reads `config.storage` and builds
|
|
3
|
+
* the three port adapters (ADR §2, decision 4). The only place backend
|
|
4
|
+
* selection happens; every consumer takes the resolved bundle, never a raw
|
|
5
|
+
* path or `new VectorStore(...)`.
|
|
6
|
+
*
|
|
7
|
+
* P0 implements the local defaults only (fs / lancedb / sqlite) — the exact
|
|
8
|
+
* behavior of today. `s3` / `mongo` backends are added in P1/P2; selecting one
|
|
9
|
+
* now throws a clear, actionable error rather than silently falling back.
|
|
10
|
+
*/
|
|
11
|
+
import { join } from 'node:path';
|
|
12
|
+
import { mkdirSync } from 'node:fs';
|
|
13
|
+
import { tmpdir } from 'node:os';
|
|
14
|
+
import { getKnowledgeBasePath } from '../config.js';
|
|
15
|
+
import { VectorStore } from '../vector-store.js';
|
|
16
|
+
import { openSystemGraphStore } from '../graph-store.js';
|
|
17
|
+
import { FsBlobStore } from './fs-blob-store.js';
|
|
18
|
+
import { MongoBlobStore } from './mongo-blob-store.js';
|
|
19
|
+
function notYet(concern, backend) {
|
|
20
|
+
throw new Error(`[knowledge-core] storage.${concern}.backend='${backend}' is not implemented yet ` +
|
|
21
|
+
`(P0 supports the local defaults: blob=fs, vector=lancedb, graph=sqlite). ` +
|
|
22
|
+
`Unset storage.${concern} to use the default, or wait for the P1/P2 adapter.`);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Build the storage bundle for a project. With `config.storage` unset (or all
|
|
26
|
+
* backends at their defaults) this is byte-for-byte today's wiring:
|
|
27
|
+
* - blobs → FsBlobStore at getKnowledgeBasePath(project)
|
|
28
|
+
* - vectors→ LanceVectorStore at <basePath>/lancedb
|
|
29
|
+
* - graph → openSystemGraphStore(<basePath>) (sqlite, JSON fallback)
|
|
30
|
+
*/
|
|
31
|
+
export function resolveStorage(project, config) {
|
|
32
|
+
const storage = config?.storage;
|
|
33
|
+
const basePath = storage?.blob?.basePath ?? getKnowledgeBasePath(project);
|
|
34
|
+
// 'fs' (default) and 'mongo' (P2) are implemented; 's3' blobs are not yet.
|
|
35
|
+
const blobBackend = storage?.blob?.backend ?? 'fs';
|
|
36
|
+
let blobs;
|
|
37
|
+
if (blobBackend === 'fs') {
|
|
38
|
+
blobs = new FsBlobStore(basePath);
|
|
39
|
+
}
|
|
40
|
+
else if (blobBackend === 'mongo') {
|
|
41
|
+
if (!storage?.blob?.mongo?.uri || !storage.blob.mongo.db) {
|
|
42
|
+
throw new Error("[knowledge-core] storage.blob.backend='mongo' requires storage.blob.mongo { uri, db }.");
|
|
43
|
+
}
|
|
44
|
+
blobs = new MongoBlobStore(project, storage.blob.mongo);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
notYet('blob', blobBackend); // 's3'
|
|
48
|
+
}
|
|
49
|
+
// 'lancedb' (default) serves BOTH local dirs and s3:// (MinIO/S3, Topology B).
|
|
50
|
+
// Only 'mongo' vectors are unimplemented.
|
|
51
|
+
const vectorBackend = storage?.vector?.backend ?? 'lancedb';
|
|
52
|
+
if (vectorBackend === 'mongo')
|
|
53
|
+
notYet('vector', 'mongo');
|
|
54
|
+
const lancedb = storage?.vector?.lancedb;
|
|
55
|
+
const vectorUri = lancedb?.uri ?? join(basePath, 'lancedb');
|
|
56
|
+
const vectorStorageOptions = lanceStorageOptions(lancedb?.s3);
|
|
57
|
+
const vectorCache = lanceCacheBudget(storage?.cache);
|
|
58
|
+
const graphBackend = storage?.graph?.backend ?? 'sqlite';
|
|
59
|
+
if (graphBackend !== 'sqlite')
|
|
60
|
+
notYet('graph', graphBackend);
|
|
61
|
+
return {
|
|
62
|
+
basePath,
|
|
63
|
+
blobs,
|
|
64
|
+
vectors: new VectorStore(vectorUri, vectorStorageOptions, vectorCache, lancedb?.index),
|
|
65
|
+
graph: async () => {
|
|
66
|
+
if (blobs instanceof FsBlobStore)
|
|
67
|
+
return openSystemGraphStore(basePath);
|
|
68
|
+
// Non-fs backend: the sqlite system graph is a blob artifact — pull it to
|
|
69
|
+
// the local cache dir and open it there (read-only usage). Re-pulled
|
|
70
|
+
// whenever the retriever rebuilds (invalidate-on-reindex), so readers see
|
|
71
|
+
// the writer's latest graph.
|
|
72
|
+
if (!(await blobs.exists('system_graph.sqlite')))
|
|
73
|
+
return null;
|
|
74
|
+
const cacheDir = storage?.cache?.dir
|
|
75
|
+
? join(storage.cache.dir, project)
|
|
76
|
+
: join(tmpdir(), 'code-search-graph-cache', project);
|
|
77
|
+
mkdirSync(cacheDir, { recursive: true });
|
|
78
|
+
await blobs.getBytes('system_graph.sqlite', { toFile: join(cacheDir, 'system_graph.sqlite') });
|
|
79
|
+
return openSystemGraphStore(cacheDir);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Map the config's S3/MinIO knobs to LanceDB/object_store `storageOptions`
|
|
85
|
+
* (canonical keys, same set as the documented MinIO example). Access key/secret
|
|
86
|
+
* are NOT placed here — object_store reads them from the environment
|
|
87
|
+
* (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY, injected via Vault). Returns
|
|
88
|
+
* undefined for a local store (no s3 block).
|
|
89
|
+
*/
|
|
90
|
+
export function lanceStorageOptions(s3) {
|
|
91
|
+
if (!s3)
|
|
92
|
+
return undefined;
|
|
93
|
+
const opts = {};
|
|
94
|
+
if (s3.endpoint)
|
|
95
|
+
opts.aws_endpoint = s3.endpoint;
|
|
96
|
+
if (s3.region)
|
|
97
|
+
opts.aws_region = s3.region;
|
|
98
|
+
if (s3.virtualHostedStyle !== undefined)
|
|
99
|
+
opts.aws_virtual_hosted_style_request = String(s3.virtualHostedStyle);
|
|
100
|
+
if (s3.allowHttp !== undefined)
|
|
101
|
+
opts.allow_http = String(s3.allowHttp);
|
|
102
|
+
return Object.keys(opts).length > 0 ? opts : undefined;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Translate `storage.cache` into a LanceDB in-RAM Session budget (index +
|
|
106
|
+
* metadata cache byte sizes) for `VectorStore`.
|
|
107
|
+
*
|
|
108
|
+
* Reality check (ADR §5.5): the LanceDB Node binding does all object-store I/O
|
|
109
|
+
* inside Rust — the adapter never sees per-fragment reads, so there is no
|
|
110
|
+
* on-disk read-through *fragment* cache to implement here. The binding's only
|
|
111
|
+
* caching lever is an in-memory `Session` (index + metadata caches). So
|
|
112
|
+
* `mode: 'read-through'` (the ADR's disk-mirror idea) is not realizable at this
|
|
113
|
+
* layer and is treated as `'ram'`; a true disk mirror would need an S3 sync of
|
|
114
|
+
* the Lance dataset (deferred, P2-weight).
|
|
115
|
+
*
|
|
116
|
+
* Returns `undefined` ⇒ no custom Session ⇒ LanceDB defaults (≈6 GiB index /
|
|
117
|
+
* 1 GiB metadata), i.e. byte-for-byte today's behavior. A budget is built only
|
|
118
|
+
* on an explicit bounded request (`cache` present, `mode !== 'none'`, positive
|
|
119
|
+
* `maxBytes`). `maxBytes` is the TOTAL RAM budget, split across the two caches
|
|
120
|
+
* so a memory-limited pod stays under its limit.
|
|
121
|
+
*/
|
|
122
|
+
export function lanceCacheBudget(cache) {
|
|
123
|
+
if (!cache || cache.mode === 'none')
|
|
124
|
+
return undefined;
|
|
125
|
+
const max = cache.maxBytes;
|
|
126
|
+
if (!max || !Number.isFinite(max) || max <= 0)
|
|
127
|
+
return undefined;
|
|
128
|
+
// Metadata (file/schema) cache is the small one — cap at 25% of the budget
|
|
129
|
+
// or 1 GiB, whichever is less; the index cache (IVF partitions, the bulk) gets
|
|
130
|
+
// the rest. Both together stay ≤ maxBytes.
|
|
131
|
+
const metadataCacheBytes = Math.min(Math.floor(max * 0.25), 1024 ** 3);
|
|
132
|
+
const indexCacheBytes = max - metadataCacheBytes;
|
|
133
|
+
return { indexCacheBytes, metadataCacheBytes };
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Shared, cached system-graph store for a project (ADR §4b / P2c).
|
|
137
|
+
*
|
|
138
|
+
* The per-call pattern (open → query → close) is fine on the fs backend where
|
|
139
|
+
* opening is a local SQLite handle, but on a remote blob backend the bundle's
|
|
140
|
+
* graph thunk DOWNLOADS system_graph.sqlite before opening — per tool call
|
|
141
|
+
* that would re-pull the whole file every time. This memoizes the opened
|
|
142
|
+
* store per (project, blob identity); callers must NOT close() it. Freshness
|
|
143
|
+
* matches the retriever: reindex invalidates via indexer.invalidateRetriever
|
|
144
|
+
* (which calls {@link invalidateGraphStores}); remote read replicas refresh
|
|
145
|
+
* on redeploy, same as the retriever's invalidate-on-reindex contract.
|
|
146
|
+
*
|
|
147
|
+
* A null resolution (KB not built yet) is not pinned — the next call re-checks
|
|
148
|
+
* so readers pick up the graph as soon as the writer publishes it.
|
|
149
|
+
*/
|
|
150
|
+
const graphStoreCache = new Map();
|
|
151
|
+
function graphCacheKey(project, config) {
|
|
152
|
+
const b = config?.storage?.blob;
|
|
153
|
+
const id = b?.backend === 'mongo'
|
|
154
|
+
? `mongo:${b.mongo?.uri}/${b.mongo?.db}`
|
|
155
|
+
: `fs:${b?.basePath ?? getKnowledgeBasePath(project)}`;
|
|
156
|
+
return `${project}::${id}`;
|
|
157
|
+
}
|
|
158
|
+
export function getGraphStore(project, config) {
|
|
159
|
+
const key = graphCacheKey(project, config);
|
|
160
|
+
let p = graphStoreCache.get(key);
|
|
161
|
+
if (!p) {
|
|
162
|
+
p = resolveStorage(project, config).graph();
|
|
163
|
+
graphStoreCache.set(key, p);
|
|
164
|
+
p.then((store) => { if (!store)
|
|
165
|
+
graphStoreCache.delete(key); }, () => graphStoreCache.delete(key));
|
|
166
|
+
}
|
|
167
|
+
return p;
|
|
168
|
+
}
|
|
169
|
+
/** Close + drop cached graph stores so the next call reopens against fresh
|
|
170
|
+
* data. No arg = all projects. Called from indexer.invalidateRetriever. */
|
|
171
|
+
export async function invalidateGraphStores(project) {
|
|
172
|
+
const entries = [...graphStoreCache.entries()].filter(([k]) => !project || k.startsWith(`${project}::`));
|
|
173
|
+
for (const [k, p] of entries) {
|
|
174
|
+
graphStoreCache.delete(k);
|
|
175
|
+
try {
|
|
176
|
+
(await p)?.close();
|
|
177
|
+
}
|
|
178
|
+
catch { /* already closed / open failed */ }
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Convenience accessor for consumers that only need the blob port (ADR §2,
|
|
183
|
+
* decision 5 — "code-search-mcp consumes a knowledge-core blob accessor").
|
|
184
|
+
* Resolves against the same base as the rest of the stack (getKnowledgeBasePath
|
|
185
|
+
* unless overridden), so it reads the CODE_SEARCH_DATA_DIR-aware location.
|
|
186
|
+
*/
|
|
187
|
+
export function getBlobStore(project, config) {
|
|
188
|
+
return resolveStorage(project, config).blobs;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Stream a project's chunks.json through the blob port and return up to `limit`
|
|
192
|
+
* matches, stopping early. Backend-agnostic replacement for the path-based
|
|
193
|
+
* `findChunksInFile` — lets `get_code_snippet` fetch one entity without a raw
|
|
194
|
+
* filesystem read (and without loading millions of chunks).
|
|
195
|
+
*/
|
|
196
|
+
export async function findChunksInProject(project, match, limit, config) {
|
|
197
|
+
const blobs = resolveStorage(project, config).blobs;
|
|
198
|
+
const out = [];
|
|
199
|
+
for await (const c of blobs.iterateNdjson('chunks.json')) {
|
|
200
|
+
if (match(c)) {
|
|
201
|
+
out.push(c);
|
|
202
|
+
if (out.length >= limit)
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return out;
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/storage/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAA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,IAAI,KAAK;gBAAE,MAAM;QACjC,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface WorkspaceMap {
|
|
|
45
45
|
export interface ScoredChunk {
|
|
46
46
|
chunk: CodeChunk;
|
|
47
47
|
score: number;
|
|
48
|
-
source: 'vector' | 'bm25' | 'graph' | 'fused' | 'exact';
|
|
48
|
+
source: 'vector' | 'bm25' | 'graph' | 'fused' | 'exact' | 'phrase';
|
|
49
49
|
}
|
|
50
50
|
export interface RetrievalResult {
|
|
51
51
|
chunks: ScoredChunk[];
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAGD,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,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C;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAMD,oEAAoE;AACpE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IACjH,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3H,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P1d — IVF_PQ recall gate (ADR §5.5, O-4).
|
|
3
|
+
*
|
|
4
|
+
* The IVF_PQ index (P1c) trades exact recall for IO so an S3-backed query reads
|
|
5
|
+
* only the probed partitions. This measures how much recall that costs:
|
|
6
|
+
* recall@k = |approx_topk ∩ exact_topk| / k, averaged over a query set, where
|
|
7
|
+
* the exact baseline is the SAME table's flat scan (`bypassVectorIndex`) — a
|
|
8
|
+
* true apples-to-apples comparison, no parallel store. CI asserts the mean stays
|
|
9
|
+
* above the SLO (≥ 0.98), so a regression that tanks recall (e.g. nprobes /
|
|
10
|
+
* refineFactor not threaded, or numSubVectors misconfigured) fails the build.
|
|
11
|
+
*
|
|
12
|
+
* `rag-evaluator.ts` is intentionally NOT used here — it judges LLM *answer*
|
|
13
|
+
* quality, a different axis. This is a pure vector-recall measurement.
|
|
14
|
+
*/
|
|
15
|
+
/** The two primitives the gate needs — structural, so it doesn't widen the
|
|
16
|
+
* VectorStorePort (the exact/bypass baseline is LanceDB-specific). */
|
|
17
|
+
export interface RecallProbe {
|
|
18
|
+
vectorSearchIds(queryEmbedding: number[], k: number): Promise<string[]>;
|
|
19
|
+
vectorSearchExactIds(queryEmbedding: number[], k: number): Promise<string[]>;
|
|
20
|
+
}
|
|
21
|
+
export interface RecallReport {
|
|
22
|
+
k: number;
|
|
23
|
+
queries: number;
|
|
24
|
+
meanRecall: number;
|
|
25
|
+
minRecall: number;
|
|
26
|
+
}
|
|
27
|
+
/** Mean (and worst-case) recall@k of the approximate index vs the exact flat
|
|
28
|
+
* baseline over `queries`. */
|
|
29
|
+
export declare function measureRecallAtK(store: RecallProbe, queries: number[][], k: number): Promise<RecallReport>;
|
|
30
|
+
//# sourceMappingURL=vector-recall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector-recall.d.ts","sourceRoot":"","sources":["../src/vector-recall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;uEACuE;AACvE,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACxE,oBAAoB,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;+BAC+B;AAC/B,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,MAAM,EAAE,EAAE,EACnB,CAAC,EAAE,MAAM,GACR,OAAO,CAAC,YAAY,CAAC,CAavB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P1d — IVF_PQ recall gate (ADR §5.5, O-4).
|
|
3
|
+
*
|
|
4
|
+
* The IVF_PQ index (P1c) trades exact recall for IO so an S3-backed query reads
|
|
5
|
+
* only the probed partitions. This measures how much recall that costs:
|
|
6
|
+
* recall@k = |approx_topk ∩ exact_topk| / k, averaged over a query set, where
|
|
7
|
+
* the exact baseline is the SAME table's flat scan (`bypassVectorIndex`) — a
|
|
8
|
+
* true apples-to-apples comparison, no parallel store. CI asserts the mean stays
|
|
9
|
+
* above the SLO (≥ 0.98), so a regression that tanks recall (e.g. nprobes /
|
|
10
|
+
* refineFactor not threaded, or numSubVectors misconfigured) fails the build.
|
|
11
|
+
*
|
|
12
|
+
* `rag-evaluator.ts` is intentionally NOT used here — it judges LLM *answer*
|
|
13
|
+
* quality, a different axis. This is a pure vector-recall measurement.
|
|
14
|
+
*/
|
|
15
|
+
/** Mean (and worst-case) recall@k of the approximate index vs the exact flat
|
|
16
|
+
* baseline over `queries`. */
|
|
17
|
+
export async function measureRecallAtK(store, queries, k) {
|
|
18
|
+
let sum = 0;
|
|
19
|
+
let min = 1;
|
|
20
|
+
for (const q of queries) {
|
|
21
|
+
const approx = new Set(await store.vectorSearchIds(q, k));
|
|
22
|
+
const exact = await store.vectorSearchExactIds(q, k);
|
|
23
|
+
const hit = exact.filter((id) => approx.has(id)).length;
|
|
24
|
+
const recall = exact.length > 0 ? hit / exact.length : 1;
|
|
25
|
+
sum += recall;
|
|
26
|
+
if (recall < min)
|
|
27
|
+
min = recall;
|
|
28
|
+
}
|
|
29
|
+
const n = queries.length;
|
|
30
|
+
return { k, queries: n, meanRecall: n > 0 ? sum / n : 1, minRecall: n > 0 ? min : 1 };
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=vector-recall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector-recall.js","sourceRoot":"","sources":["../src/vector-recall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAgBH;+BAC+B;AAC/B,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAkB,EAClB,OAAmB,EACnB,CAAS;IAET,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;QACxD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,GAAG,IAAI,MAAM,CAAC;QACd,IAAI,MAAM,GAAG,GAAG;YAAE,GAAG,GAAG,MAAM,CAAC;IACjC,CAAC;IACD,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IACzB,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACxF,CAAC"}
|
package/dist/vector-store.d.ts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import type { CodeChunk, ScoredChunk } from '@esankhan3/anvil-knowledge-core';
|
|
2
|
-
|
|
2
|
+
import type { VectorStorePort, IvfPqIndexConfig } from './storage/ports.js';
|
|
3
|
+
export declare class VectorStore implements VectorStorePort {
|
|
3
4
|
private db;
|
|
4
5
|
private table;
|
|
5
6
|
private dbPath;
|
|
7
|
+
private storageOptions?;
|
|
8
|
+
private cacheBudget?;
|
|
9
|
+
private indexConfig?;
|
|
6
10
|
private initialized;
|
|
7
|
-
|
|
11
|
+
/** `dbPath` is a local directory (default) or an object-store URI
|
|
12
|
+
* (`s3://bucket/prefix`). `storageOptions` carries the LanceDB/object_store
|
|
13
|
+
* S3 connection knobs (endpoint, region, path-style, …) for MinIO; omit for
|
|
14
|
+
* local. Access key/secret are read from the environment by object_store.
|
|
15
|
+
* `cacheBudget` (S3 deployments) bounds LanceDB's in-RAM index/metadata
|
|
16
|
+
* Session caches so a memory-limited pod stays under its limit; omit ⇒
|
|
17
|
+
* LanceDB defaults (≈6 GiB / 1 GiB). LanceDB has no on-disk fragment cache,
|
|
18
|
+
* so this RAM Session is the only adapter-level caching lever (ADR §5.5).
|
|
19
|
+
* `indexConfig` (ADR §5.5, `storage.vector.lancedb.index`) enables the IVF_PQ
|
|
20
|
+
* index so an S3 query reads only probed partitions; omit ⇒ flat/exact scan. */
|
|
21
|
+
constructor(dbPath: string, storageOptions?: Record<string, string>, cacheBudget?: {
|
|
22
|
+
indexCacheBytes: number;
|
|
23
|
+
metadataCacheBytes: number;
|
|
24
|
+
}, indexConfig?: IvfPqIndexConfig);
|
|
25
|
+
/** True when dbPath is a local filesystem path (no `scheme://`). */
|
|
26
|
+
private get isLocal();
|
|
27
|
+
/** Positional args for `lancedb.connect(uri, options?, session?)`. */
|
|
28
|
+
private connectArgs;
|
|
8
29
|
/** Initialize connection, create or open table.
|
|
9
30
|
*
|
|
10
31
|
* `healCorrupt` (write path only): force a real read on open so a table
|
|
@@ -36,17 +57,25 @@ export declare class VectorStore {
|
|
|
36
57
|
* unindexed tail doesn't grow across reindexes and drag scans back in. Work is
|
|
37
58
|
* proportional to the NEW data, not the whole table. Non-fatal. */
|
|
38
59
|
optimizeIndexes(): Promise<void>;
|
|
39
|
-
/** Build
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* exact distances within each partition, so there's no quantization recall
|
|
43
|
-
* loss, and the full vectors fit comfortably in the VM's RAM. Query-time
|
|
44
|
-
* `nprobes` (VECTOR_NPROBES) trades recall vs partitions scanned.
|
|
60
|
+
/** Build the vector-column index so vector search reads only the probed
|
|
61
|
+
* partitions instead of brute-force scanning every row — the fix for the
|
|
62
|
+
* multi-second flat-scan latency at org scale.
|
|
45
63
|
*
|
|
46
|
-
*
|
|
64
|
+
* Two shapes, one write-path entry point:
|
|
65
|
+
* - Default (no `storage.vector.lancedb.index` config): **IVF_FLAT** — exact
|
|
66
|
+
* distances within each partition, no quantization recall loss; the full
|
|
67
|
+
* vectors fit local RAM. This is the local/VM production behavior.
|
|
68
|
+
* - `indexConfig` set (S3/MinIO deployments, ADR §5.5): **IVF_PQ** with the
|
|
69
|
+
* configured partitions/sub-vectors, so a query drags only probed,
|
|
70
|
+
* quantized partitions across the network.
|
|
71
|
+
*
|
|
72
|
+
* WRITE PATH ONLY — a reader must never build an index (sole-writer
|
|
73
|
+
* invariant). Idempotent (build-if-absent — a full rebuild recreates it,
|
|
47
74
|
* incremental adds are folded by optimizeIndexes()). Below `minRows` a flat
|
|
48
75
|
* scan is already fast and IVF training is noise, so skip. Non-fatal: on
|
|
49
|
-
* failure
|
|
76
|
+
* failure (e.g. `numSubVectors` not dividing the embedding dimension) vector
|
|
77
|
+
* search falls back to the exact flat scan — degraded speed, never
|
|
78
|
+
* correctness — and the reason is logged. */
|
|
50
79
|
ensureVectorIndex(opts?: {
|
|
51
80
|
minRows?: number;
|
|
52
81
|
}): Promise<void>;
|
|
@@ -59,6 +88,13 @@ export declare class VectorStore {
|
|
|
59
88
|
limit?: number;
|
|
60
89
|
filter?: string;
|
|
61
90
|
}): Promise<ScoredChunk[]>;
|
|
91
|
+
/** Approximate (IVF_PQ, index-backed) nearest-neighbor ids — applies the
|
|
92
|
+
* configured nprobes/refineFactor via vectorSearch. Used by the recall gate. */
|
|
93
|
+
vectorSearchIds(queryEmbedding: number[], k: number): Promise<string[]>;
|
|
94
|
+
/** EXACT nearest-neighbor ids via `bypassVectorIndex()` — forces a flat scan
|
|
95
|
+
* on the same table, ignoring the IVF_PQ index. This is the ground-truth
|
|
96
|
+
* baseline the P1d recall gate compares the approximate search against. */
|
|
97
|
+
vectorSearchExactIds(queryEmbedding: number[], k: number): Promise<string[]>;
|
|
62
98
|
/** Full-text BM25 search (LanceDB built-in FTS) */
|
|
63
99
|
fullTextSearch(queryText: string, limit?: number, filter?: string): Promise<ScoredChunk[]>;
|
|
64
100
|
/** Exact-symbol lookup: chunks whose entityName equals one of `names`.
|
|
@@ -66,6 +102,18 @@ export declare class VectorStore {
|
|
|
66
102
|
* retrieval candidate even when vector and BM25 both rank it outside their
|
|
67
103
|
* top-50 (the literal-recall gap vs trigram engines). */
|
|
68
104
|
searchByEntityName(names: string[], limit?: number, filter?: string): Promise<ScoredChunk[]>;
|
|
105
|
+
/** Substring symbol lookup: chunks whose entityName CONTAINS the query,
|
|
106
|
+
* case-insensitively — the Zoekt-style partial-identifier tier
|
|
107
|
+
* (`SearchResponse` finds `CompanySearchResponse`). A projected ILIKE scan
|
|
108
|
+
* over the short entityName column: measured ~50ms cold / ~3ms warm at
|
|
109
|
+
* 450k rows. Results ranked exact > prefix > infix, then shorter names
|
|
110
|
+
* (tighter match) first. */
|
|
111
|
+
searchByEntitySubstring(query: string, limit?: number, filter?: string): Promise<ScoredChunk[]>;
|
|
112
|
+
/** Exact-phrase search over the code text (tantivy PhraseQuery) — multi-token
|
|
113
|
+
* literals (error strings, exact statements) match as an adjacent phrase
|
|
114
|
+
* instead of a bag of tokens. Requires the FTS index built withPosition;
|
|
115
|
+
* until the next reindex provides that, this returns [] (non-fatal). */
|
|
116
|
+
phraseSearch(queryText: string, limit?: number, filter?: string): Promise<ScoredChunk[]>;
|
|
69
117
|
/** Get specific chunks by their IDs */
|
|
70
118
|
getByIds(ids: string[]): Promise<CodeChunk[]>;
|
|
71
119
|
/** Look up chunks by repo + file + entity name — for direct AST graph expansion.
|
|
@@ -103,4 +151,7 @@ export declare class VectorStore {
|
|
|
103
151
|
skipIndex?: boolean;
|
|
104
152
|
}): Promise<void>;
|
|
105
153
|
}
|
|
154
|
+
/** ADR §3 canonical name for the default LanceDB-backed `VectorStorePort`
|
|
155
|
+
* adapter. Alias for now; a later phase renames the class outright. */
|
|
156
|
+
export { VectorStore as LanceVectorStore };
|
|
106
157
|
//# sourceMappingURL=vector-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-store.d.ts","sourceRoot":"","sources":["../src/vector-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"vector-store.d.ts","sourceRoot":"","sources":["../src/vector-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAkB5E,qBAAa,WAAY,YAAW,eAAe;IACjD,OAAO,CAAC,EAAE,CAAM;IAChB,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,cAAc,CAAC,CAAyB;IAChD,OAAO,CAAC,WAAW,CAAC,CAA0D;IAC9E,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