[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-682051-105":59,"doc-detail-682051-en":130,"doc-similar-682051":170},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-practitioners-guide-to-using-large-language-models-and-generative-ai-in-economic-history-june-2026","A Practitioner's Guide to Using Large Language Models and Generative AI in Economic History - June 2026","","Large language models (LLMs) reduce barriers for researchers handling data-intensive economic history sources such as handwritten ledgers, text, images, and audio. The guide introduces newcomers to LLMs and provides a step-by-step workflow from research idea to working code and data. It compares core interaction modes (chat, editor assistants, agentic coding tools, and APIs) and walks through practitioner decisions covering model choice, prompt design, context limits, and cost control. It also addresses validation, reproduction, documentation, and correction of LLM-generated measures in regression settings, supported by four replicated examples using replication files.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-practitioners-guide-to-using-large-language-models-and-generative-ai-in-economic-history-june-2026/682051/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-practitioners-guide-to-using-large-language-models-and-generative-ai-in-economic-history-june-2026/682051.png","ImageObject",300,407,{"name":92,"@type":93},"Mabel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-10","2026-11-06",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Who is this guide intended for and what does it enable?","Question",{"text":112,"@type":113},"The guide targets researchers who are new to large language models. It explains how to turn a research idea into working code and data while enabling new ways to work with data-intensive economic history sources.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What interaction methods does the guide cover for working with an LLM?",{"text":117,"@type":113},"It describes four main ways of interacting with an LLM: the chat window, editor-integrated assistants, agentic coding tools, and the API.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the guide recommend validating and correcting LLM-generated measures in regression settings?",{"text":121,"@type":113},"It lays out steps for validating, reproducing, documenting, and correcting LLM-generated measures, specifically in regression contexts to ensure reliability.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},682051,1793958930,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":29,"preview_urls":145},7971474920318,"https://ap-avatar.wpscdn.com/avatar/74000ee537e6b0ca360?x-image-process=image/resize,m_fixed,w_180,h_180&k=1788430171632181674","DISCUSSION PAPER SERIES 171/26  \nA Practitioner's Guide to Using Large Language Models and Generative AI in Economic History  \nAndreas Ferrara  \n[www.rfberlin.com](www.rfberlin.com) JUNE 2026  \nA Practitioner's Guide to Using Large Language Models and Generative AI in Economic History  \nAuthors  \n\n| Andreas Ferrara\u003Cbr>Reference |\n| --- |\n| JEL Codes: C8, N0, C55\u003Cbr>Keywords: Large Language Models, Artificial Intelligence, Economic History, Practitioner’s Guide\u003Cbr>Recommended Citation: Andreas Ferrara (2026): A Practitioner's Guide to Using Large Language Models and Generative AI in Economic History. RFBerlin Discussion Paper No. 171/26\u003Cbr>Access |\n| Papers can be downloaded free of charge from the RFBerlin website: [https://www.rfberlin.com/discussion-papers](https://www.rfberlin.com/discussion-papers)\u003Cbr>Discussion Papers of RFBerlin are indexed on RePEc: [https://ideas.repec.org/s/crm/wpaper.html](https://ideas.repec.org/s/crm/wpaper.html)\u003Cbr>Disclaimer |\n\nOpinions and views expressed in this paper are those of the author(s) and not those of RFBerlin. Research disseminated in this discussion paper series may include views on policy, but RFBerlin takes no institutional policy positions. RFBerlin is an independent research institute.  \nRFBerlin Discussion Papers often represent preliminary or incomplete work and have not been peer-reviewed. Citation and use of research disseminated in this series should take into account the provisional nature of the work. Discussion papers are shared to encourage feedback and foster academic discussion.  \nAll materials were provided by the authors, who are responsible for proper attribution and rights clearance. While every effort has been made to ensure proper attribution and accuracy, should any issues arise regarding authorship, citation, or rights, please contact RFBerlin to request a correction.  \nThese materials may not be used for the development or training of artificial intelligence systems.  \nA Practitioner’s Guide to Using Large Language Models and  \nGenerative AI in Economic History *  \nAndreas Ferrara†  \nJune 16, 2026  \nAbstract  \nLarge language models (LLMs) are lowering the entry barriers to working with exciting data sources that used to require strong data science skills, such as handwritten ledgers, text, images, or sound recordings. This guide provides an introduction for researchers who are new to LLMs. It sets out a step-by-step workflow for turning a research idea into working code and data, and describes the four main ways of interacting with an LLM: the chat window, editor-integrated assistants, agentic coding tools, and the API. It then works through the decisions a practitioner meets in sequence, beginning with whether an LLM is the right tool and whether the data are allowed to be sent to one, then how to select models, write prompts, manage context limits, and control costs, and finally how to validate, reproduce, document, and correct LLM-generated measures in regression settings. A review of recent research shows how these tools already extract, link, harmonize, and classify historical data at scale. Four worked examples with replication files illustrate the use of LLMs. They classify emotions in paintings, link census records without names, measure newspaper salience and sentiment around the 1882 Chinese Exclusion Act, and score the emotional delivery of Franklin D. Roosevelt’s wartime speeches. The guide also condenses the workflow, the best-practice recommendations, and the preparation of replication packages into summary tablesand checklists to aid applied economists.  \nKeywords: Large Language Models, Artificial Intelligence, Economic History, Practitioner’s Guide  \nJEL Codes: C8, N0, C55  \n*I am grateful to Humoyun Abdumavlon, Omer Ali, Sascha O. Becker, Stephan Heblich, Sharun Mukand, Max Steinhardt, Patrick A. Testa, Gabby Toborg, and Sebastian Garcia Torres for helpful discussion and comments. Replication files for all worked examples in this guide are a","cbCaimBbTK8LhdsI","https://ap.wps.com/l/cbCaimBbTK8LhdsI","pdf",6588567,57,"English","# Abstract\n# Introduction\n## Large language models and generative AI in economic history\n## Data sources and entry barriers\n# Practitioner workflow and interaction modes\n# Model selection, prompting, context limits, and cost control\n# Validation, reproduction, documentation, and correction\n# Worked examples and replication files","[{\"question\":\"Who is this guide intended for and what does it enable?\",\"answer\":\"The guide targets researchers who are new to large language models. It explains how to turn a research idea into working code and data while enabling new ways to work with data-intensive economic history sources.\"},{\"question\":\"What interaction methods does the guide cover for working with an LLM?\",\"answer\":\"It describes four main ways of interacting with an LLM: the chat window, editor-integrated assistants, agentic coding tools, and the API.\"},{\"question\":\"How does the guide recommend validating and correcting LLM-generated measures in regression settings?\",\"answer\":\"It lays out steps for validating, reproducing, documenting, and correcting LLM-generated measures, specifically in regression contexts to ensure reliability.\"}]","A Practitioner's Guide to Using Large Language Models and Generative AI in Economic History - June 2026 | PDF",144,[146,150,154,158,162,166],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/01903d154eb47d1f70959b1690cebaf7.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1b5df9f63ef3f23defde68d15d6a6e71.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c7b697518a79d9d45d7d438092fdd88c.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4c1c8b049c10bc2dab647efa6b47f758.webp",980,1385,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/06dfd580709ecea5ed608c95f7de5a4a.webp",979,1384,{"page_no":29,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2ee020153424dd0d03765d31c23a8e53.webp",978,1383,{"list":171,"token":66},[172,179,186,193,200,207,214,221,227,233],{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":40,"create_tm":178},83907,"On the Risk of Coding Before Testing: An Empirical Study on LLM-Based Test Generation Workflow","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809113843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=S3FTv0iqNGF%2FRkmzrurGMjDD2iQ%3D","on-the-risk-of-coding-before-testing-an-empirical-study-on-llm-based-test-generation-workflow",29,1784191366,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":40,"create_tm":185},82429,"LLM for EDA in Front-End Design: Challenges and Opportunities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808741255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=oY%2BHURePB41XL%2B1Q6%2BEuGoxtrY8%3D","llm-for-eda-in-front-end-design-challenges-and-opportunities",34,1784180333,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":40,"create_tm":192},84522,"Characterizing Large Language Model Agentic Workflows: A Study on N8n Ecosystem","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809056677/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=2wyXn%2BdZTbDyUfLGdhJEfGDiZHU%3D","characterizing-large-language-model-agentic-workflows-a-study-on-n8n-ecosystem",32,1784196294,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":40,"create_tm":199},393803,"Educators’ Perceptions of Large Language Models as Tutors - Comparing Human and AI Tutors in a Blind Text-only Setting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918114909/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=lTgYsaMVa%2B%2FknxblMCU7W2uYqa0%3D","educators-perceptions-of-large-language-models-as-tutors-comparing-human-and-ai-tutors-in-a-blind-text-only-setting",14,1790393408,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":40,"create_tm":206},85698,"LLM-Centric Agentic AI for UAV Swarms: Architecture, Enabling Technologies, and Open Problems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809343227/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=BjBofo2lVL%2FDvBVet1b5rp%2FH33g%3D","llm-centric-agentic-ai-for-uav-swarms-architecture-enabling-technologies-and-open-problems",43,1784205670,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},82196,"Multi-Agent LLM Collaboration for Unit Test Generation via Human-Testing-Inspired Workflows","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808720476/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=zfGxWqcSFJylrjqYFkuSo9ORc8Y%3D","multi-agent-llm-collaboration-for-unit-test-generation-via-human-testing-inspired-workflows",51,1784178751,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},82933,"PiSAs Benchmarking Contextual Integrity in Multi-User Agentic Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808806050/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=kkJt5JLIfFjj7RLSjT125uJWsuU%3D","pisas-benchmarking-contextual-integrity-in-multi-user-agentic-systems",28,1784184086,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":52,"category_name":40,"create_tm":226},460556,"IDP Accelerator: Agentic Document Intelligence from Extraction to Compliance Validation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926000301/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=bwYrls%2FbLYkh4OKQ525SBAD2kK4%3D","idp-accelerator-agentic-document-intelligence-from-extraction-to-compliance-validation",1790758761,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":44,"category_name":40,"create_tm":232},655626,"UML Class Diagram Evaluation and Repair Strategies based on LLMs - Preprint","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775571/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=v1Y%2FbISVkZ2Tn%2Bv3ni3vKi9u2A8%3D","uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint",1792962909,{"doc_id":234,"doc_title":235,"file_type":137,"home_preview_img_url":236,"slug":237,"view_count":238,"category_name":40,"create_tm":239},84994,"Beware of Agentic Botnets: Scalable Untargeted Promptware Attacks via Universal and Transferable Adversarial HalluSquatting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809230553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796225699&Signature=g6rBplRIYoM0gcbsPlH0QhIdlTw%3D","beware-of-agentic-botnets-scalable-untargeted-promptware-attacks-via-universal-and-transferable-adversarial-hallusquatting",26,1784200096]