The "initilize-schema" setting for the vector store instructs the spring ai to initialize the required schema for the application. For the PGVector it is not an exception.

The problem however is that (at least with PGVector, do not really now about other databases). The schema is indeed initialized, but it is not "re-initialized" if something has changed. For instance, if the dimensions of the vector have been changed (i.e. spring.ai.vectorstore.pgvector.dimensions), then I would expect spring ai to re-create the table and the corresponding vector column with new dimensions, but currently it does not happen.