spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

How do you add new metadata keys and values in the 'metadata' column of a Vector Store

Open iAMSagar44 opened this issue 1 year ago • 0 comments
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?

iAMSagar44 avatar Mar 24 '24 02:03 iAMSagar44