@wrongstack/vector-memory 1.0.2 → 1.0.4
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/README.md +6 -6
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1323 -1329
- package/dist/sage-sync.d.ts +30 -0
- package/dist/transformers-provider.d.ts +2 -2
- package/package.json +5 -8
package/README.md
CHANGED
|
@@ -77,16 +77,16 @@ the second line of defense).
|
|
|
77
77
|
|
|
78
78
|
## Installation
|
|
79
79
|
|
|
80
|
-
`@huggingface/transformers` is
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
`@huggingface/transformers` is an **opt-in** backend. It is not installed
|
|
81
|
+
automatically because its Node runtime currently pulls in an unpatched ZIP
|
|
82
|
+
extraction advisory. The hashing provider remains available without it. To
|
|
83
|
+
explicitly enable local ONNX embeddings while skipping ONNX's CUDA installer:
|
|
83
84
|
|
|
84
85
|
```sh
|
|
85
|
-
pnpm add @huggingface/transformers
|
|
86
|
+
$env:ONNXRUNTIME_NODE_INSTALL='skip'; pnpm add @huggingface/transformers
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
needed inside the monorepo.
|
|
89
|
+
On POSIX shells, prefix the command with `ONNXRUNTIME_NODE_INSTALL=skip`.
|
|
90
90
|
|
|
91
91
|
## Quick start
|
|
92
92
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @wrongstack/vector-memory — public exports.
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { VectorMemoryStore, fallbackHashingProvider, type SageSyncSource, } from './store.js';
|
|
7
|
-
export { createSageSurfaceSyncSource, type SageSurfaceSyncOptions, } from './sage-sync-source.js';
|
|
8
|
-
export { SAGE_SYNC_MARKER_FILENAME, decideWhetherToSync, startFirstBootSageSync, type FirstBootSageSyncOptions, type FirstBootSageSyncResult, type SageSyncMarker, } from './sage-sync.js';
|
|
9
|
-
export { createVectorMemoryTools } from './tools.js';
|
|
4
|
+
export { VectorMemoryError, VectorMemoryProviderUnavailableError, } from './errors.js';
|
|
5
|
+
export { DEFAULT_SWEEP_INTERVAL_MS, forgetStaleSageMirrors, SAGE_SWEEP_MARKER_FILENAME, type SweepStaleSageMirrorsOptions, type SweepStaleSageMirrorsResult, subscribeVectorMemoryToSage, sweepStaleSageMirrors, type VectorMemoryMirrorHandle, type VectorMemoryMirrorOptions, } from './sage-event-mirror.js';
|
|
10
6
|
export { asVectorRecallProvider, fuseWithVectorMemory, type SageFusionHit, type SageFusionOptions, } from './sage-fusion.js';
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
7
|
+
export { type VectorPortWrappingOptions, wrapMemoryPortWithVectorRecall, } from './sage-port-wrapper.js';
|
|
8
|
+
export { decideWhetherToSync, type FirstBootSageSyncOptions, type FirstBootSageSyncResult, SAGE_SYNC_MARKER_FILENAME, type SageSyncMarker, startFirstBootSageSync, } from './sage-sync.js';
|
|
9
|
+
export { createSageSurfaceSyncSource, type SageSurfaceSyncOptions, } from './sage-sync-source.js';
|
|
10
|
+
export { decodeVector, encodeVector, initVectorSchema, lookupEmbeddingCache, upsertEmbeddingCache, VECTOR_DIMENSIONS_KEY, VECTOR_PROVIDER_KEY, VECTOR_SCHEMA_VERSION, } from './schema.js';
|
|
13
11
|
export { runSearchRace, type SearchRaceChannelHit, type SearchRaceOptions, type SearchRaceResult, } from './search-race.js';
|
|
12
|
+
export { fallbackHashingProvider, type SageSyncSource, VectorMemoryStore, } from './store.js';
|
|
13
|
+
export { createVectorMemoryTools } from './tools.js';
|
|
14
|
+
export { DEFAULT_VECTOR_DIMENSIONS, DEFAULT_VECTOR_DTYPE, DEFAULT_VECTOR_MODEL_ID, TransformersEmbeddingProvider, type TransformersEmbeddingProviderOptions, } from './transformers-provider.js';
|
|
14
15
|
export type { SageSyncReport, VectorEntry, VectorEntryInput, VectorEntryWithVector, VectorKind, VectorMemoryStoreOptions, VectorScope, VectorSearchHit, VectorSearchOptions, VectorStoreStats, } from './types.js';
|
|
15
|
-
export { VectorMemoryError, VectorMemoryProviderUnavailableError, } from './errors.js';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|