Fine tuning would work for this right now. Extract the text from your corpus, upload it to a fine tuning model with no prompt just completions and then you can use the fine tuned model just like ChatGPT. Easy as pie.