Vector database to rewrite reptitive passages

I have some long text I’ve generated in pieces in gpt-4 but there are repetitive passages where the text refers to things already addressed earlier in the long text etc.

Anyone have experience/suggestions for utilizing a vector database to search and rewrite/remove repetitive passages?