Method to delete documents from the vector store. It deletes the documents that match the provided ids or metadata filter. Matches ids exactly and metadata filter according to postgres jsonb containment. Ids and filter are mutually exclusive.
delete(params: __type): Promise<void>| Name | Type | Description |
|---|---|---|
params* | __type | Object containing either an array of ids or a metadata filter object. |
await vectorStore.delete({ ids: ["id1", "id2"] });await vectorStore.delete({ filter: { a: 1, b: 2 } });