This tutorial will walk you through three exercises using generative AI for humanities research and creative activities. Please keep in mind there are ethical issues with using generative AI:
- the models and apps generate profit for their companies while the training data includes art, writing, code without compensating the original creators
- there is a debate about energy and water usage (here is a January 2025 MIT article on the issue
- low wage workers classify, tag, annotate, or moderate the data
- creating chatbots that talk like another person or group of people can be considered offensive (for example, accusations of digital blackface)
This tutorial lives online (with live links) at https://github.com/ctschroeder/tutorials/blob/master/generativeAI.md
Last edited for Dr. Schroeder's Spring 2025 Intro DH course.
Note: This technology is changing very fast.
This work is licensed by Caroline T. Schroeder under a Creative Commons Attribution-NonCommercial 4.0 International License
Because this course includes students of all levels of experience with generative AI models and apps, this tutorial will not be training or customizing our own apps (although that is quite possible to do). If you have experience programming or training models already, you may choose to train an app for a Humanities research purpose. However, I cannot give you coaching on this. You're on your own. Common trainable apps are:
- Llama
- Chatdoc
- a ton more
If you choose this option:
- Be sure you are training your app for a humanities objective
- Your lab report should
- explain your humanities objective, what model you trained, what additional documents/sources you used for the training
- link to/cite all of the above
- link to the app you created if it's online
- provide a transcript of some humanities task you asked it to do
- evaluate the results (accuracy? helpfulness? ethical issues)
Keep in mind that the free versions of these apps limit the number of documents you can upload and the size of documents.
- If you already have a subscription to a paid version of ChatGPT, Gemini, Copilot, Claude, etc., please use that.
- If you are using a free version, be certain you are uploading the document(s) you want.
Here is a plain text file of Frankenstein you can download. (Click on the icon with the down arrow above the text on the right.) Here is a plain text file of the first half of Frankenstein you can download and use with DeepSeek. (Click on the icon with the down arrow above the text on the right.) (When I uploaded full book to DeepSeek, it told me it could only process the first 56%.) I got the text from Project Gutenberg. Please link to the version you use and cite Project Gutenberg as the source.
As you are going through this process, be sure to take notes in your Notebook about what app you are using, what files you are uploading, what prompts you are giving the app.
You may want to take regular screenshots.
I will ask you at the end to use your cursor to select the whole chat + responses and copy it to another document to turn in.
We are going to try this on DeepSeek since that textfile works with DeepSeek's limits. If you have a paid subscription to another app or just want to try a different one, please feel free!
- Go to DeepSeek's chat interface.
- Consider what kind of text analysis you want to do (word frequencies, bi-grams and tri-grams frequencies, collocates, etc.) Ask DeepSeek if it can do the kind of text analysis you want to do if you upload a document.
- Read the answer.
- Using the information in its answer, devise a prompt asking DeepSeek to perform some kind of text analysis on the document you will upload. Some things to consider:
- You may want to start by telling the app to assume a role (researcher, student, digital humanities scholar, professor, whatever you think is a good role for the task). Write a command asking it to assume that role. That's the first sentence of your prompt.
- Continue your prompt by instructing DeepSeek to perform some form of text analysis that we already have done with Voyant or AntConc: bi-grams or tri-grams frequencies, word frequencies, collocates.
- Consider whether you want DeepSeek to do text analysis including stop words or ignoring stop words. Include that information in your prompt.
- When you give DeepSeek the prompt, also click on the paperclip icon to upload your text to analyze and enter the prompt and text.
- Copy your prompt to another document
- Copy the results to another document
- If you don't get any results or your results look really wrong, you may need to give it another prompt to give it more detail on what to do or tell it what it's doing wrong.
- Now look at the results and evaluate them:
- do they look plausible?
- is there anything strange? (For example: when I asked for top 25 tri-grams, numbers 8 through 25 were the same trigram! I had to ask it to fix it.)
- Ask Deepseek to explain its method or process in doing this text analysis. Copy the results to another document
- Now select this entire transcript and copy that to another document. Be sure to save all the documents!
- Do not close the chat
- Navigate to https://voyant-tools.org
- upload the same document to Voyant that you used in DeepSeek
- In the Cirrus/Word Cloud Tool, you can click the option to see the list of word frequencies. Do that. (Or look at the other tools like collocates, and for n-grams open the Voyant tool called "phrases")
- Set the settings in Voyant (the little icon that looks like a toggle button) so that you have the same settings regarding stop words
- Look at the word frequencies in Voyant.
- Are they the same as the results in DeepSeek?
- If they're not the same, are they similar?
- One thing I noticed in my test: Voyant counts a possessive word ("father's") as a separte word from the plain word ("father"). Some gen AI transformers tokenize the 's as its own word.
- If the frequencies are very similar but a bit different for some words, you might try searching both forms of the relevant word in Voyant (type underneath the word list "father" and "father's" and it will tell you the frequencies of those two words.)
- download the result
- you can also do the above in AntConc if you'd like!
- If the results are different, go back to DeepSeek and tell it there is a difference in Voyant. Tell it what the difference is and ask it why.
- Copy your question and results to a new document
- Consider what you think is going on: is the gen AI accurate but using different methods (like different tokenizing) or is it inaccurate?
Write up your evaluation of generative AI for text analysis. Document your tool, source, etc., as usual. Tell me how well the app performed in the task. You can compare it to Voyant or AntConc's results.
Consider: does the generative AI app provide good results? Is there anything this generative AI app can't do that Voyant and AntConc can do? (If so, there may be a paid app out there that does, just fyi. You can search for it.)
I don't expect more than a paragraph or two for this section.
Again: keep in mind that the free versions of these apps limit the number of documents you can upload and the size of documents.
- If you already have a subscription to a paid version of ChatGPT, Gemini, Copilot, Claude, etc., you may want to use that.
- If you are using a free version, be certain you are uploading the document you want. Depending on the app, you might only be able to upload one document per day.
- Select and download an image from the ones I provide on Canvas. All of them are from the OU Western History collections. When you write your Lab Report, be sure to cite item at the Western History website.
- Navigate either to ChatGPT or to Google Gemini. (In my experience DeepSeek was not as accurate, and Copilot could not process the pdf of a letter I gave it but refused to process the jpg without upgrading to the paid version. So use ChatGPT or Gemini.)
- Compose a prompt asking the app to transcribe a handwritten document in the file you will give it. Be sure to tell it if the image is of two pages facing each other (like an open book) or one page. You might want to give it a role (archivist? historian? family member reading a letter?)
- Type in the prompt and upload the image. (Be sure you upload the one you want-ChatGPT will only let you do one a day).
- Copy your prompt and results into a separate document.
- If you don't get any output, you may have to revise the prompt and prompt it again.
- Evaluate the results. How many letters does it get wrong?
Write up your evaluation of generative AI for handwritten text recognition. Document your tool, source, etc., as usual. Tell me how well the app performed in the task. Consider: does the generative AI app provide good results? Would you use it if you were conducting historical research?
I don't expect more than a paragraph or two for this section.
This is a game designed by fine tuning a generative AI model.
- Navigate to https://thelongcontext.com
- Play the game
- Copy the transcript into another document
- Was it fun? frustrating? Did you win?
- Did the app follow your instructions?
- If you didn't win the game, play again -- did you learn anything to make it go better this time? Was the game similar or different than the first time?
Describe your experience with the game. Evaluate generative AI's potential for entertainment and creativity. Be sure to cite/document the website.
At the end of your lab report, copy over the relevant transcripts of your conversations for the above. Please title each of them (for example: "Transcript of chat with ChatGPT for text analysis").