Input text/embedding/metadata list length validation is missing #56

Open
opened 2026-02-16 05:16:19 -05:00 by yindo · 0 comments
Owner

Originally created by @Voileexperiments on GitHub (Oct 28, 2024).

add_texts method in base VectorStore contains a check that texts_ and metadatas should be of the same length.

This is not done in PGVector's add_texts or add_embeddings methods. The extra items are just silently dropped.

Originally created by @Voileexperiments on GitHub (Oct 28, 2024). `add_texts` method in base `VectorStore` contains a check that `texts_` and `metadatas` should be of the same length. This is not done in `PGVector`'s `add_texts` or `add_embeddings` methods. The extra items are just silently dropped.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#56