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 3264796 commit 3b104b5Copy full SHA for 3b104b5
src/tools/mongodb/create/createIndex.ts
@@ -125,6 +125,8 @@ export class CreateIndexTool extends MongoDBToolBase {
125
126
responseClarification =
127
" Since this is a vector search index, it may take a while for the index to build. Use the `list-indexes` tool to check the index status.";
128
+ // clean up the embeddings cache so it considers the new index
129
+ this.session.vectorSearchEmbeddings.cleanupEmbeddingsForNamespace({ database, collection });
130
}
131
132
break;
0 commit comments