Maintaining consistency across chunks for QA

Hi - looking for some advice on how to best structure my db for a QA use case. I have a variety of documents of different types. Some are legal documents of varying lengths and others are theoretical frameworks. In QA, the user may both ask for explanations of the theoretical framework as well as for specific on laws. My question is how I can answer questions about “Law X” - which maybe anywhere from 3 - 45 “chunks” long. I’m doing sliding windows embeddings, but it the laws name get’s lost in the embeddings.

I was thinking of using metadata, but I wouldn’t know how to dyamically insert the filters at query time.

Any help greatly appreciated!