embedding.deletecommandsince 0.1
Removes the vectors of some documents from a space.
Request
umwelt call story.umw embedding.delete '{
"projectId": "ball",
"spaceId": "demo",
"items": [{ "docType": "record", "docId": "maid-staff" }]
}'Request
const result = await client.embeddingDelete({
projectId: 'ball',
spaceId: 'demo',
items: [{ docType: 'record', docId: 'maid-staff' }],
});Request
var result = engine.EmbeddingDelete(new DeleteEmbeddingsInput
{
ProjectId = "ball",
SpaceId = "demo",
Items = new()
{
new EmbeddingDocRef { DocType = "record", DocId = "maid-staff" },
},
});Response
{
"removed": 1
}Payload
| Field | Type | Description |
|---|---|---|
projectIdrequired | string | The project to write to. |
spaceIdrequired | string | The embedding space. |
itemsrequired | EmbeddingDocRef[] | The documents: docType and docId. |
Result
| Field | Type | Description |
|---|---|---|
removedalways | integer | How many vectors were removed. |
Rules
Derived data. The documents stay; they are listed as pending again.
Errors
VALIDATION_FAILEDThe payload is malformed.NOT_FOUNDThe project or the space does not exist.HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.Every code is listed in Errors.
See also
Was this page helpful?