Deleting Embedded Documents from VectorStore #7605
Unanswered
sallahbaksh
asked this question in
Q&A
Replies: 1 comment
-
The To delete all embedded documents from the import { MemoryVectorStore } from "langchain/vectorstores/memory";
export class VectorStore {
private vectorStore: MemoryVectorStore;
public async deleteVectors(): Promise<void> {
this.vectorStore.memoryVectors = [];
}
} This approach directly clears the array that stores the embedded documents, effectively removing all of them. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
How can I delete all embedded documents from MemoryVectorStore? When I try to use the delete(_params?: Record<string, any>) method, I get a Not Implemented error. Is there another way to delete all of the embedded documents?
System Info
Node version: 22.12.0
Platform: Windows
Beta Was this translation helpful? Give feedback.
All reactions