Langchain does not allow storing additional column values in vectors

Does anyone know why Langchain does not allow to add additional columns in the vector stores(eg pinecone). The way the code is written right now, you can only add the id, embedding and rest in the metadata column. If do not want to store in the metadata column, but would like to create additional columns, it does not allow right now.

Is the reasoning like “get the metadata in a single I/O” and then decide what part you want to use. The problem with that is it does not allow me to take advantage of the database features like sort. For example once I get the relevant scores, if i want to sort the output on a certain column, it does not allow me to do so

1 Like