Upsert long text (paragraph) along with vector

I need to implement an AI agent where it search across a text file and answer questions according to the text file.

My original idea was to convert each paragraph to vector, and upsert each paragraph along with corresponding vector, but seems like it’s not allowed or recommended to do that.

What is the best practice to do this kind of implementation?