@danielsimonjr/memory-mcp 12.2.3 → 12.5.2

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.
Files changed (158) hide show
  1. package/README.md +88 -102
  2. package/dist/index.js +6 -0
  3. package/dist/server/toolDefinitions.d.ts.map +1 -1
  4. package/dist/server/toolDefinitions.js +745 -3
  5. package/dist/server/toolHandlers.d.ts +1 -9
  6. package/dist/server/toolHandlers.d.ts.map +1 -1
  7. package/dist/server/toolHandlers.js +859 -11
  8. package/package.json +9 -6
  9. package/dist/core/EntityManager.d.ts +0 -263
  10. package/dist/core/EntityManager.d.ts.map +0 -1
  11. package/dist/core/EntityManager.js +0 -478
  12. package/dist/core/GraphStorage.d.ts +0 -344
  13. package/dist/core/GraphStorage.d.ts.map +0 -1
  14. package/dist/core/GraphStorage.js +0 -708
  15. package/dist/core/GraphTraversal.d.ts +0 -136
  16. package/dist/core/GraphTraversal.d.ts.map +0 -1
  17. package/dist/core/GraphTraversal.js +0 -556
  18. package/dist/core/HierarchyManager.d.ts +0 -111
  19. package/dist/core/HierarchyManager.d.ts.map +0 -1
  20. package/dist/core/HierarchyManager.js +0 -224
  21. package/dist/core/ManagerContext.d.ts +0 -72
  22. package/dist/core/ManagerContext.d.ts.map +0 -1
  23. package/dist/core/ManagerContext.js +0 -118
  24. package/dist/core/ObservationManager.d.ts +0 -85
  25. package/dist/core/ObservationManager.d.ts.map +0 -1
  26. package/dist/core/ObservationManager.js +0 -123
  27. package/dist/core/RelationManager.d.ts +0 -131
  28. package/dist/core/RelationManager.d.ts.map +0 -1
  29. package/dist/core/RelationManager.js +0 -210
  30. package/dist/core/SQLiteStorage.d.ts +0 -354
  31. package/dist/core/SQLiteStorage.d.ts.map +0 -1
  32. package/dist/core/SQLiteStorage.js +0 -917
  33. package/dist/core/StorageFactory.d.ts +0 -45
  34. package/dist/core/StorageFactory.d.ts.map +0 -1
  35. package/dist/core/StorageFactory.js +0 -64
  36. package/dist/core/TransactionManager.d.ts +0 -259
  37. package/dist/core/TransactionManager.d.ts.map +0 -1
  38. package/dist/core/TransactionManager.js +0 -392
  39. package/dist/core/index.d.ts +0 -16
  40. package/dist/core/index.d.ts.map +0 -1
  41. package/dist/core/index.js +0 -17
  42. package/dist/features/AnalyticsManager.d.ts +0 -44
  43. package/dist/features/AnalyticsManager.d.ts.map +0 -1
  44. package/dist/features/AnalyticsManager.js +0 -223
  45. package/dist/features/ArchiveManager.d.ts +0 -121
  46. package/dist/features/ArchiveManager.d.ts.map +0 -1
  47. package/dist/features/ArchiveManager.js +0 -240
  48. package/dist/features/CompressionManager.d.ts +0 -109
  49. package/dist/features/CompressionManager.d.ts.map +0 -1
  50. package/dist/features/CompressionManager.js +0 -404
  51. package/dist/features/IOManager.d.ts +0 -221
  52. package/dist/features/IOManager.d.ts.map +0 -1
  53. package/dist/features/IOManager.js +0 -997
  54. package/dist/features/StreamingExporter.d.ts +0 -105
  55. package/dist/features/StreamingExporter.d.ts.map +0 -1
  56. package/dist/features/StreamingExporter.js +0 -150
  57. package/dist/features/TagManager.d.ts +0 -147
  58. package/dist/features/TagManager.d.ts.map +0 -1
  59. package/dist/features/TagManager.js +0 -210
  60. package/dist/features/index.d.ts +0 -12
  61. package/dist/features/index.d.ts.map +0 -1
  62. package/dist/features/index.js +0 -11
  63. package/dist/search/BasicSearch.d.ts +0 -51
  64. package/dist/search/BasicSearch.d.ts.map +0 -1
  65. package/dist/search/BasicSearch.js +0 -137
  66. package/dist/search/BooleanSearch.d.ts +0 -98
  67. package/dist/search/BooleanSearch.d.ts.map +0 -1
  68. package/dist/search/BooleanSearch.js +0 -430
  69. package/dist/search/EmbeddingService.d.ts +0 -178
  70. package/dist/search/EmbeddingService.d.ts.map +0 -1
  71. package/dist/search/EmbeddingService.js +0 -358
  72. package/dist/search/FuzzySearch.d.ts +0 -118
  73. package/dist/search/FuzzySearch.d.ts.map +0 -1
  74. package/dist/search/FuzzySearch.js +0 -312
  75. package/dist/search/RankedSearch.d.ts +0 -71
  76. package/dist/search/RankedSearch.d.ts.map +0 -1
  77. package/dist/search/RankedSearch.js +0 -238
  78. package/dist/search/SavedSearchManager.d.ts +0 -79
  79. package/dist/search/SavedSearchManager.d.ts.map +0 -1
  80. package/dist/search/SavedSearchManager.js +0 -145
  81. package/dist/search/SearchFilterChain.d.ts +0 -120
  82. package/dist/search/SearchFilterChain.d.ts.map +0 -1
  83. package/dist/search/SearchFilterChain.js +0 -185
  84. package/dist/search/SearchManager.d.ts +0 -285
  85. package/dist/search/SearchManager.d.ts.map +0 -1
  86. package/dist/search/SearchManager.js +0 -338
  87. package/dist/search/SearchSuggestions.d.ts +0 -27
  88. package/dist/search/SearchSuggestions.d.ts.map +0 -1
  89. package/dist/search/SearchSuggestions.js +0 -57
  90. package/dist/search/SemanticSearch.d.ts +0 -146
  91. package/dist/search/SemanticSearch.d.ts.map +0 -1
  92. package/dist/search/SemanticSearch.js +0 -313
  93. package/dist/search/TFIDFIndexManager.d.ts +0 -63
  94. package/dist/search/TFIDFIndexManager.d.ts.map +0 -1
  95. package/dist/search/TFIDFIndexManager.js +0 -215
  96. package/dist/search/VectorStore.d.ts +0 -235
  97. package/dist/search/VectorStore.d.ts.map +0 -1
  98. package/dist/search/VectorStore.js +0 -311
  99. package/dist/search/index.d.ts +0 -18
  100. package/dist/search/index.d.ts.map +0 -1
  101. package/dist/search/index.js +0 -21
  102. package/dist/types/index.d.ts +0 -13
  103. package/dist/types/index.d.ts.map +0 -1
  104. package/dist/types/index.js +0 -12
  105. package/dist/types/types.d.ts +0 -1234
  106. package/dist/types/types.d.ts.map +0 -1
  107. package/dist/types/types.js +0 -9
  108. package/dist/utils/compressedCache.d.ts +0 -192
  109. package/dist/utils/compressedCache.d.ts.map +0 -1
  110. package/dist/utils/compressedCache.js +0 -309
  111. package/dist/utils/compressionUtil.d.ts +0 -214
  112. package/dist/utils/compressionUtil.d.ts.map +0 -1
  113. package/dist/utils/compressionUtil.js +0 -247
  114. package/dist/utils/constants.d.ts +0 -245
  115. package/dist/utils/constants.d.ts.map +0 -1
  116. package/dist/utils/constants.js +0 -252
  117. package/dist/utils/entityUtils.d.ts +0 -321
  118. package/dist/utils/entityUtils.d.ts.map +0 -1
  119. package/dist/utils/entityUtils.js +0 -538
  120. package/dist/utils/errors.d.ts +0 -77
  121. package/dist/utils/errors.d.ts.map +0 -1
  122. package/dist/utils/errors.js +0 -121
  123. package/dist/utils/formatters.d.ts +0 -145
  124. package/dist/utils/formatters.d.ts.map +0 -1
  125. package/dist/utils/formatters.js +0 -132
  126. package/dist/utils/index.d.ts +0 -22
  127. package/dist/utils/index.d.ts.map +0 -1
  128. package/dist/utils/index.js +0 -75
  129. package/dist/utils/indexes.d.ts +0 -270
  130. package/dist/utils/indexes.d.ts.map +0 -1
  131. package/dist/utils/indexes.js +0 -526
  132. package/dist/utils/logger.d.ts +0 -24
  133. package/dist/utils/logger.d.ts.map +0 -1
  134. package/dist/utils/logger.js +0 -33
  135. package/dist/utils/parallelUtils.d.ts +0 -72
  136. package/dist/utils/parallelUtils.d.ts.map +0 -1
  137. package/dist/utils/parallelUtils.js +0 -169
  138. package/dist/utils/schemas.d.ts +0 -374
  139. package/dist/utils/schemas.d.ts.map +0 -1
  140. package/dist/utils/schemas.js +0 -484
  141. package/dist/utils/searchAlgorithms.d.ts +0 -99
  142. package/dist/utils/searchAlgorithms.d.ts.map +0 -1
  143. package/dist/utils/searchAlgorithms.js +0 -167
  144. package/dist/utils/searchCache.d.ts +0 -108
  145. package/dist/utils/searchCache.d.ts.map +0 -1
  146. package/dist/utils/searchCache.js +0 -209
  147. package/dist/utils/taskScheduler.d.ts +0 -290
  148. package/dist/utils/taskScheduler.d.ts.map +0 -1
  149. package/dist/utils/taskScheduler.js +0 -466
  150. package/dist/workers/WorkerPool.d.ts +0 -81
  151. package/dist/workers/WorkerPool.d.ts.map +0 -1
  152. package/dist/workers/WorkerPool.js +0 -121
  153. package/dist/workers/index.d.ts +0 -12
  154. package/dist/workers/index.d.ts.map +0 -1
  155. package/dist/workers/index.js +0 -9
  156. package/dist/workers/levenshteinWorker.d.ts +0 -60
  157. package/dist/workers/levenshteinWorker.d.ts.map +0 -1
  158. package/dist/workers/levenshteinWorker.js +0 -98
@@ -1,215 +0,0 @@
1
- /**
2
- * TF-IDF Index Manager
3
- *
4
- * Manages pre-calculated TF-IDF indexes for fast ranked search.
5
- * Handles index building, incremental updates, and persistence.
6
- *
7
- * @module search/TFIDFIndexManager
8
- */
9
- import * as fs from 'fs/promises';
10
- import * as path from 'path';
11
- import { calculateIDFFromTokenSets, tokenize } from '../utils/index.js';
12
- const INDEX_VERSION = '1.0';
13
- const INDEX_FILENAME = 'tfidf-index.json';
14
- /**
15
- * Manages TF-IDF index lifecycle: building, updating, and persistence.
16
- */
17
- export class TFIDFIndexManager {
18
- indexPath;
19
- index = null;
20
- constructor(storageDir) {
21
- this.indexPath = path.join(storageDir, '.indexes', INDEX_FILENAME);
22
- }
23
- /**
24
- * Build a complete TF-IDF index from a knowledge graph.
25
- *
26
- * @param graph - Knowledge graph to index
27
- * @returns Newly built TF-IDF index
28
- */
29
- async buildIndex(graph) {
30
- const documents = new Map();
31
- const allTokenSets = [];
32
- // Build document vectors - tokenize once per document
33
- for (const entity of graph.entities) {
34
- const documentText = [
35
- entity.name,
36
- entity.entityType,
37
- ...entity.observations,
38
- ].join(' ');
39
- const tokens = tokenize(documentText);
40
- const tokenSet = new Set(tokens);
41
- allTokenSets.push(tokenSet);
42
- // Calculate term frequencies
43
- const termFreq = {};
44
- for (const term of tokens) {
45
- termFreq[term] = (termFreq[term] || 0) + 1;
46
- }
47
- documents.set(entity.name, {
48
- entityName: entity.name,
49
- terms: termFreq,
50
- documentText,
51
- });
52
- }
53
- // Calculate IDF for all terms using pre-tokenized sets (O(1) lookup per document)
54
- const idf = new Map();
55
- const allTerms = new Set(allTokenSets.flatMap(s => Array.from(s)));
56
- for (const term of allTerms) {
57
- const idfScore = calculateIDFFromTokenSets(term, allTokenSets);
58
- idf.set(term, idfScore);
59
- }
60
- this.index = {
61
- version: INDEX_VERSION,
62
- lastUpdated: new Date().toISOString(),
63
- documents,
64
- idf,
65
- };
66
- return this.index;
67
- }
68
- /**
69
- * Update the index incrementally when entities change.
70
- *
71
- * More efficient than rebuilding the entire index.
72
- *
73
- * @param graph - Updated knowledge graph
74
- * @param changedEntityNames - Names of entities that changed
75
- */
76
- async updateIndex(graph, changedEntityNames) {
77
- if (!this.index) {
78
- // No existing index, build from scratch
79
- return this.buildIndex(graph);
80
- }
81
- // Rebuild document vectors for changed entities
82
- const allTokenSets = [];
83
- const updatedDocuments = new Map(this.index.documents);
84
- // Remove deleted entities
85
- for (const entityName of changedEntityNames) {
86
- const entity = graph.entities.find(e => e.name === entityName);
87
- if (!entity) {
88
- updatedDocuments.delete(entityName);
89
- }
90
- }
91
- // Update/add changed entities - tokenize once per document
92
- for (const entity of graph.entities) {
93
- const documentText = [
94
- entity.name,
95
- entity.entityType,
96
- ...entity.observations,
97
- ].join(' ');
98
- const tokens = tokenize(documentText);
99
- const tokenSet = new Set(tokens);
100
- allTokenSets.push(tokenSet);
101
- if (changedEntityNames.has(entity.name)) {
102
- // Calculate term frequencies for changed entity
103
- const termFreq = {};
104
- for (const term of tokens) {
105
- termFreq[term] = (termFreq[term] || 0) + 1;
106
- }
107
- updatedDocuments.set(entity.name, {
108
- entityName: entity.name,
109
- terms: termFreq,
110
- documentText,
111
- });
112
- }
113
- }
114
- // Recalculate IDF using pre-tokenized sets (O(1) lookup per document)
115
- const idf = new Map();
116
- const allTerms = new Set(allTokenSets.flatMap(s => Array.from(s)));
117
- for (const term of allTerms) {
118
- const idfScore = calculateIDFFromTokenSets(term, allTokenSets);
119
- idf.set(term, idfScore);
120
- }
121
- this.index = {
122
- version: INDEX_VERSION,
123
- lastUpdated: new Date().toISOString(),
124
- documents: updatedDocuments,
125
- idf,
126
- };
127
- return this.index;
128
- }
129
- /**
130
- * Load index from disk.
131
- *
132
- * @returns Loaded index or null if not found
133
- */
134
- async loadIndex() {
135
- try {
136
- const data = await fs.readFile(this.indexPath, 'utf-8');
137
- const serialized = JSON.parse(data);
138
- this.index = {
139
- version: serialized.version,
140
- lastUpdated: serialized.lastUpdated,
141
- documents: new Map(serialized.documents),
142
- idf: new Map(serialized.idf),
143
- };
144
- return this.index;
145
- }
146
- catch (error) {
147
- // Index doesn't exist or is invalid
148
- return null;
149
- }
150
- }
151
- /**
152
- * Save index to disk.
153
- *
154
- * @param index - Index to save (uses cached index if not provided)
155
- */
156
- async saveIndex(index) {
157
- const indexToSave = index || this.index;
158
- if (!indexToSave) {
159
- throw new Error('No index to save');
160
- }
161
- // Ensure index directory exists
162
- const indexDir = path.dirname(this.indexPath);
163
- await fs.mkdir(indexDir, { recursive: true });
164
- // Serialize Map objects to arrays for JSON
165
- const serialized = {
166
- version: indexToSave.version,
167
- lastUpdated: indexToSave.lastUpdated,
168
- documents: Array.from(indexToSave.documents.entries()),
169
- idf: Array.from(indexToSave.idf.entries()),
170
- };
171
- await fs.writeFile(this.indexPath, JSON.stringify(serialized, null, 2), 'utf-8');
172
- }
173
- /**
174
- * Get the current cached index.
175
- *
176
- * @returns Cached index or null if not loaded
177
- */
178
- getIndex() {
179
- return this.index;
180
- }
181
- /**
182
- * Clear the cached index and delete from disk.
183
- */
184
- async clearIndex() {
185
- this.index = null;
186
- try {
187
- await fs.unlink(this.indexPath);
188
- }
189
- catch {
190
- // Index file doesn't exist, nothing to delete
191
- }
192
- }
193
- /**
194
- * Check if the index needs rebuilding based on graph state.
195
- *
196
- * @param graph - Current knowledge graph
197
- * @returns True if index should be rebuilt
198
- */
199
- needsRebuild(graph) {
200
- if (!this.index) {
201
- return true;
202
- }
203
- // Check if entity count matches
204
- if (this.index.documents.size !== graph.entities.length) {
205
- return true;
206
- }
207
- // Check if all entities are in index
208
- for (const entity of graph.entities) {
209
- if (!this.index.documents.has(entity.name)) {
210
- return true;
211
- }
212
- }
213
- return false;
214
- }
215
- }
@@ -1,235 +0,0 @@
1
- /**
2
- * Vector Store
3
- *
4
- * Phase 4 Sprint 11: Vector storage and retrieval for semantic search.
5
- * Provides in-memory and SQLite-backed implementations.
6
- *
7
- * @module search/VectorStore
8
- */
9
- import type { IVectorStore, VectorSearchResult } from '../types/index.js';
10
- /**
11
- * Calculate cosine similarity between two vectors.
12
- *
13
- * Uses an optimized inner loop without array methods for maximum performance.
14
- *
15
- * @param a - First vector
16
- * @param b - Second vector
17
- * @returns Cosine similarity score (0.0 to 1.0)
18
- */
19
- export declare function cosineSimilarity(a: number[], b: number[]): number;
20
- /**
21
- * In-Memory Vector Store
22
- *
23
- * Stores vectors in memory using a Map for O(1) add/remove operations.
24
- * Search uses brute-force cosine similarity which is O(n) but fast for
25
- * small to medium graphs (<10K entities).
26
- *
27
- * @example
28
- * ```typescript
29
- * const store = new InMemoryVectorStore();
30
- * store.add("entity1", [0.1, 0.2, 0.3]);
31
- * store.add("entity2", [0.4, 0.5, 0.6]);
32
- * const results = store.search([0.1, 0.2, 0.3], 5);
33
- * console.log(results); // [{ name: "entity1", score: 1.0 }, ...]
34
- * ```
35
- */
36
- export declare class InMemoryVectorStore implements IVectorStore {
37
- /** Map of entity name to embedding vector */
38
- private vectors;
39
- /**
40
- * Add a vector for an entity.
41
- *
42
- * @param entityName - Name of the entity
43
- * @param vector - Embedding vector
44
- */
45
- add(entityName: string, vector: number[]): void;
46
- /**
47
- * Search for similar vectors using cosine similarity.
48
- *
49
- * @param queryVector - Query embedding vector
50
- * @param k - Number of results to return
51
- * @returns Array of results with entity name and similarity score
52
- */
53
- search(queryVector: number[], k: number): VectorSearchResult[];
54
- /**
55
- * Remove a vector by entity name.
56
- *
57
- * @param entityName - Name of the entity to remove
58
- * @returns True if found and removed
59
- */
60
- remove(entityName: string): boolean;
61
- /**
62
- * Get the number of vectors stored.
63
- *
64
- * @returns Number of vectors
65
- */
66
- size(): number;
67
- /**
68
- * Clear all vectors from the store.
69
- */
70
- clear(): void;
71
- /**
72
- * Check if a vector exists for an entity.
73
- *
74
- * @param entityName - Name of the entity
75
- * @returns True if vector exists
76
- */
77
- has(entityName: string): boolean;
78
- /**
79
- * Get the vector for an entity.
80
- *
81
- * @param entityName - Name of the entity
82
- * @returns Vector if found, undefined otherwise
83
- */
84
- get(entityName: string): number[] | undefined;
85
- /**
86
- * Get all entity names with stored vectors.
87
- *
88
- * @returns Array of entity names
89
- */
90
- getEntityNames(): string[];
91
- /**
92
- * Load vectors from an iterable source.
93
- *
94
- * @param entries - Iterable of [entityName, vector] pairs
95
- */
96
- loadFrom(entries: Iterable<[string, number[]]>): void;
97
- }
98
- /**
99
- * SQLite Vector Store
100
- *
101
- * Persists vectors to SQLite storage while maintaining an in-memory cache
102
- * for fast search operations. Combines persistence with performance.
103
- *
104
- * Uses SQLiteStorage's embedding storage methods for persistence.
105
- *
106
- * @example
107
- * ```typescript
108
- * const store = new SQLiteVectorStore(sqliteStorage);
109
- * await store.initialize();
110
- * store.add("entity1", [0.1, 0.2, 0.3]);
111
- * const results = store.search([0.1, 0.2, 0.3], 5);
112
- * ```
113
- */
114
- export declare class SQLiteVectorStore implements IVectorStore {
115
- /** In-memory cache for fast search */
116
- private memoryStore;
117
- /** SQLite storage reference for persistence */
118
- private storage;
119
- /** Whether the store has been initialized */
120
- private initialized;
121
- /** Model name used for embeddings */
122
- private embeddingModel;
123
- /**
124
- * Create a SQLite vector store.
125
- *
126
- * @param storage - SQLite storage instance with embedding support
127
- * @param embeddingModel - Model name used for embeddings
128
- */
129
- constructor(storage?: SQLiteStorageWithEmbeddings, embeddingModel?: string);
130
- /**
131
- * Initialize the store by loading vectors from SQLite.
132
- */
133
- initialize(): Promise<void>;
134
- /**
135
- * Add a vector for an entity.
136
- * Stores in both memory and SQLite for persistence.
137
- *
138
- * @param entityName - Name of the entity
139
- * @param vector - Embedding vector
140
- */
141
- add(entityName: string, vector: number[]): void;
142
- /**
143
- * Search for similar vectors using cosine similarity.
144
- *
145
- * @param queryVector - Query embedding vector
146
- * @param k - Number of results to return
147
- * @returns Array of results with entity name and similarity score
148
- */
149
- search(queryVector: number[], k: number): VectorSearchResult[];
150
- /**
151
- * Remove a vector by entity name.
152
- *
153
- * @param entityName - Name of the entity to remove
154
- * @returns True if found and removed
155
- */
156
- remove(entityName: string): boolean;
157
- /**
158
- * Get the number of vectors stored.
159
- *
160
- * @returns Number of vectors
161
- */
162
- size(): number;
163
- /**
164
- * Clear all vectors from the store.
165
- */
166
- clear(): void;
167
- /**
168
- * Check if a vector exists for an entity.
169
- *
170
- * @param entityName - Name of the entity
171
- * @returns True if vector exists
172
- */
173
- has(entityName: string): boolean;
174
- /**
175
- * Get the vector for an entity.
176
- *
177
- * @param entityName - Name of the entity
178
- * @returns Vector if found, undefined otherwise
179
- */
180
- get(entityName: string): number[] | undefined;
181
- /**
182
- * Set the SQLite storage reference.
183
- *
184
- * @param storage - SQLite storage instance
185
- */
186
- setStorage(storage: SQLiteStorageWithEmbeddings): void;
187
- /**
188
- * Set the embedding model name.
189
- *
190
- * @param model - Model name
191
- */
192
- setEmbeddingModel(model: string): void;
193
- }
194
- /**
195
- * Interface for SQLite storage with embedding support.
196
- *
197
- * This is a subset of SQLiteStorage that only includes embedding-related methods.
198
- * Allows for loose coupling between VectorStore and SQLiteStorage.
199
- */
200
- export interface SQLiteStorageWithEmbeddings {
201
- /**
202
- * Store an embedding for an entity.
203
- *
204
- * @param entityName - Name of the entity
205
- * @param vector - Embedding vector
206
- * @param model - Model name used for the embedding
207
- */
208
- storeEmbedding(entityName: string, vector: number[], model: string): void;
209
- /**
210
- * Load all embeddings from storage.
211
- *
212
- * @returns Array of [entityName, vector] pairs
213
- */
214
- loadAllEmbeddings(): Promise<[string, number[]][]>;
215
- /**
216
- * Remove an embedding for an entity.
217
- *
218
- * @param entityName - Name of the entity
219
- */
220
- removeEmbedding(entityName: string): void;
221
- /**
222
- * Clear all embeddings from storage.
223
- */
224
- clearAllEmbeddings(): void;
225
- }
226
- /**
227
- * Create a vector store based on storage type.
228
- *
229
- * @param storageType - Storage type: 'jsonl' or 'sqlite'
230
- * @param storage - Optional SQLite storage reference for 'sqlite' type
231
- * @param embeddingModel - Optional model name for embedding tracking
232
- * @returns Vector store instance
233
- */
234
- export declare function createVectorStore(storageType?: 'jsonl' | 'sqlite', storage?: SQLiteStorageWithEmbeddings, embeddingModel?: string): IVectorStore;
235
- //# sourceMappingURL=VectorStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VectorStore.d.ts","sourceRoot":"","sources":["../../src/search/VectorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE1E;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CA2BjE;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,mBAAoB,YAAW,YAAY;IACtD,6CAA6C;IAC7C,OAAO,CAAC,OAAO,CAAoC;IAEnD;;;;;OAKG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;IAI/C;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB,EAAE;IAuB9D;;;;;OAKG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAInC;;;;OAIG;IACH,IAAI,IAAI,MAAM;IAId;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;;;OAKG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIhC;;;;;OAKG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAI7C;;;;OAIG;IACH,cAAc,IAAI,MAAM,EAAE;IAI1B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,C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