langchain-ai / langchain-postgres

LangChain abstractions backed by Postgres Backend
MIT License
133 stars 48 forks source link

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

Open Voileexperiments opened 3 weeks ago

Voileexperiments commented 3 weeks ago

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.