The guide in LangChain - Parent-Document Retriever Deepdive with Custom PgVector Store (https://www.youtube.com/watch?v=wxRQe3hhFwU) describes a custom class based on BaseStorage that may also solve the problem with persistent docstore using pgVector instead of file storage