adelete does not delete embeddings #79

Open
opened 2026-02-16 05:16:28 -05:00 by yindo · 1 comment
Owner

Originally created by @LuchiLucs on GitHub (Jun 26, 2025).

Using langchain-postgres v0.0.13

Calling the code:

    my_name = "..." # Str
    my_id = "..." # Str
    pg_vector = PGVector(..., collection_name=my_name)
    await pg_vector.adelete(
        ids=[my_id],
        collection_only=True,
    )

Checking before/after the method call, the embeddings are still on the table. I tried also collection_only = False. Am I doing something wrong with my tests (tried disabling cache of my database client and revalidating connection, but the data seems to be still there).

Can someone replicate the issue?

Originally created by @LuchiLucs on GitHub (Jun 26, 2025). Using langchain-postgres v0.0.13 Calling the code: ``` my_name = "..." # Str my_id = "..." # Str pg_vector = PGVector(..., collection_name=my_name) await pg_vector.adelete( ids=[my_id], collection_only=True, ) ``` Checking before/after the method call, the embeddings are still on the table. I tried also `collection_only = False`. Am I doing something wrong with my tests (tried disabling cache of my database client and revalidating connection, but the data seems to be still there). Can someone replicate the issue?
Author
Owner

@LuchiLucs commented on GitHub (Jun 26, 2025):

Asking to delete, I compiled the low-level query and I found out I was using an ID saved on the metadata and not the actual ID.

@LuchiLucs commented on GitHub (Jun 26, 2025): Asking to delete, I compiled the low-level query and I found out I was using an ID saved on the metadata and not the actual ID.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#79