How to make a chatbot on dynamic text data with GPT api?

I see, but the thing is I’m working with a document text editor for example similar to google docs where the users can edit the content of the document freely. I’m stuck at how I can consistently have the AI reference this dynamic document. In my implementation with a static json document file, it worked fine and was able to reference the document using a vector store so i am not sure how to implement this when a user edits the document so the json is constantly being changed which will need to be passed to the chatbot somehow.