spring-ai
spring-ai copied to clipboard
How do you add new metadata keys and values in the 'metadata' column of a Vector Store
trafficstars
Discussed in https://github.com/spring-projects/spring-ai/discussions/501
Originally posted by iAMSagar44 March 24, 2024 Currently the DocumentReader interface implementations (e.g.PagePdfDocumentReader) add the page number and file name to the metadata map. This eventually populates the 'metadata' column with the page number and file name. I want to add more metadata information (for e.g. author) during the ETL process, so that I can then use these fields as metadata fields in the similarity search filters. I could not find any way to do this, apart from creating my own implementation of the DocumentReader interface.
Is there any other way to cater for this use case?