We're currently building a RAG pipeline using Pathway's real-time streaming capabilities. As of now, our pipeline monitors a folder containing text files and processes them accordingly. We would like to associate custom metadata with the documents before or during the chunking process. However, we haven't been able to find a way to attach this custom metadata to the chunked documents.
Is there a recommended way to add or persist custom metadata for each document while using the folder monitoring feature?
Any guidance or suggestions would be greatly appreciated.
Thanks in advance!
We're currently building a RAG pipeline using Pathway's real-time streaming capabilities. As of now, our pipeline monitors a folder containing text files and processes them accordingly. We would like to associate custom metadata with the documents before or during the chunking process. However, we haven't been able to find a way to attach this custom metadata to the chunked documents.
Is there a recommended way to add or persist custom metadata for each document while using the folder monitoring feature?
Any guidance or suggestions would be greatly appreciated.
Thanks in advance!