Skip to content

Commit bd364d5

Browse files
committed
fix ensureIndex
1 parent 44fabff commit bd364d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/core/IndexManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class IndexManager {
5656
}
5757
}
5858

59+
async ensureIndex() {
60+
return this.ensureIndexes();
61+
}
62+
5963
async createSupportingIndexes() {
6064
try {
6165
await this.collection.createIndex(

src/core/MongoRAG.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class MongoRAG {
153153
});
154154

155155
// Ensure the index is created
156-
await indexManager.ensureIndex();
156+
await indexManager.ensureIndexes();
157157

158158
// Construct the vector search query using the $vectorSearch operator
159159
const aggregation = query

0 commit comments

Comments
 (0)