QVAC Logo

ragDeleteEmbeddings( )

Deletes document embeddings from the RAG vector database.

function ragDeleteEmbeddings(params, options?): Promise<void>;

Parameters

NameTypeRequired?DefaultDescription
params.idsstring[]Array of document IDs to delete
params.modelIdstringEmbedding model ID (required if no cached RAG instance)
params.workspacestring"default"Workspace to delete from
optionsRPCOptionsOptional RPC transport options

Returns

Promise<void> — Resolves when the embeddings are deleted.

Throws

ErrorWhen
RAG_DELETE_FAILEDThe delete operation fails or workspace doesn't exist

Example

await ragDeleteEmbeddings({
  ids: ["doc-1", "doc-2"],
  workspace: "my-docs",
});

On this page