Commit 6fee364
committed
fix(rag): export MetadataScan types + align Pinecone config contract
IVectorStore.ts was carrying local changes (MetadataScanOptions,
MetadataScanResult, scanByMetadata(), numeric+string $gt/$gte/$lt/$lte
comparison operators) behind a git skip-worktree flag, so the exports
never reached origin. PineconeVectorStore.ts imports MetadataScanOptions
+ MetadataScanResult from '../IVectorStore.js' (line 27-28); CI tsc
failed with TS2305 "has no exported member" on both since the committed
IVectorStore.ts didn't export them.
VectorStoreConfiguration.ts carried a parallel local change that
replaced the hand-defined PineconeVectorStoreConfig (with `environment`
property) with a type-alias to the adapter's real config (with
`indexHost` property). Without this change committed, the Extract<...>
cast at VectorStoreManager.ts:179 fails with TS2345 because the two
PineconeVectorStoreConfig shapes diverge.
Both files were marked skip-worktree, hiding the changes from git push.
This commit clears the skip-worktree state by re-staging + committing
the intended content. CI now has the missing exports and type
alignments.
Changes:
- IVectorStore.ts: add MetadataScanOptions / MetadataScanResult types,
scanByMetadata() optional method, relax $gt/$gte/$lt/$lte to accept
string (lexicographic comparison, useful for ISO timestamps).
- VectorStoreConfiguration.ts: re-export PineconeVectorStoreConfig as
type alias to the adapter's config; switch system default
defaultProviderId from pinecone_main_prod to qdrant_main_prod +
update the example data source to match.
Local pnpm run build passes clean after the fix.1 parent 0cbb397 commit 6fee364
2 files changed
Lines changed: 53 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
115 | 114 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 115 | + | |
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
| |||
255 | 248 | | |
256 | 249 | | |
257 | 250 | | |
258 | | - | |
| 251 | + | |
259 | 252 | | |
260 | 253 | | |
261 | 254 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
266 | 259 | | |
267 | | - | |
| 260 | + | |
268 | 261 | | |
269 | 262 | | |
270 | 263 | | |
| |||
277 | 270 | | |
278 | 271 | | |
279 | 272 | | |
280 | | - | |
281 | | - | |
| 273 | + | |
| 274 | + | |
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
| |||
287 | 280 | | |
288 | 281 | | |
289 | 282 | | |
290 | | - | |
| 283 | + | |
291 | 284 | | |
292 | 285 | | |
293 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
163 | 185 | | |
164 | 186 | | |
165 | 187 | | |
| |||
291 | 313 | | |
292 | 314 | | |
293 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
294 | 325 | | |
295 | 326 | | |
296 | 327 | | |
| |||
0 commit comments