I read somewhere - I don’t remember where - that AI works well in documents that have between 50 and 1000 words. But do you mean the number of unique words or the total number of words that make up a document?
That doesn’t really make a difference, it’s just an approx. suggestion. Small text snippets, articles & documents are fine, complete books usually don’t work very well.