We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fabff commit bd364d5Copy full SHA for bd364d5
src/core/IndexManager.js
@@ -56,6 +56,10 @@ class IndexManager {
56
}
57
58
59
+ async ensureIndex() {
60
+ return this.ensureIndexes();
61
+ }
62
+
63
async createSupportingIndexes() {
64
try {
65
await this.collection.createIndex(
src/core/MongoRAG.js
@@ -153,7 +153,7 @@ class MongoRAG {
153
});
154
155
// Ensure the index is created
156
- await indexManager.ensureIndex();
+ await indexManager.ensureIndexes();
157
158
// Construct the vector search query using the $vectorSearch operator
159
const aggregation = query
0 commit comments