News

Data Science Training Given

The Policy Studies Institute (PSI) held a full-day training on “Data Science for Research and Policy” on March 4, 2026, at its Main Meeting Hall. Dr. Niall Keleher, an American data science expert and leader of the Data Science and Engineering team at Innovations for Poverty Action (IPA), delivered the training. PSI designed the training for researchers, policy analysts, data managers, IT staff, and program professionals, aiming to help them build practical skills in applying large language models (LLMs) and AI tools in research and policy work.

In his opening remarks, Zachary Isdahl, Deputy Regional Director for East Africa and Asia at Innovations for Poverty Action (IPA), expressed his pleasure at reconnecting with familiar faces from his previous visits to PSI. He introduced himself as the Deputy Regional Director for East Africa and Asia at Innovation IPA and noted that his colleague Neil would provide more details about IPA. He stated that he would keep his remarks brief and expressed gratitude to PSI and its Director General for hosting them and providing the opportunity to share IPA’s learnings and insights on data science, AI, and the application of large language models in research and policy.

                Zachary Isdahl, Deputy Regional Director for East Africa and Asia at Innovations for Poverty Action (IPA)

Zach mentioned that IPA viewed the collaborative workshop as an initial step in a broader, long-term relationship with PSI, including an upcoming hosting arrangement. He highlighted the alignment between PSI’s mission and IPA’s mandate and emphasized that the workshop exemplified how two like-minded organizations could create synergies. He expressed hope that participants would gain a lot from the workshop and acknowledged that IPA also expected to learn from them. Finally, he handed over the session to his colleague, Dr. Kelleher, to continue.

           Dr. Niall Keleher, Senior Director, Global Research and Data Science, Innovations for Poverty Action (IPA)

Next, Dr. Niall began by thanking Zach, Dr. Nasanet Jote, and Dr. Balew Demissie for coordinating the session and for being such gracious hosts. He introduced himself as an economist with a PhD in data science and expressed excitement, as Zach had mentioned, about sharing some of the tools developed at Innovations for Poverty Action (IPA). He explained that IPA works with government and non-governmental partners across Africa, Latin America, and Asia to apply artificial intelligence in research, generate evidence, and link it to policies and programs that benefit communities, including in Ethiopia.

Dr. Niall outlined that the training would cover large language models (LLMs) as a core framework for generative AI. He stated that the session aimed to demonstrate how researchers could use AI tools to generate ideas, ask questions, and leverage research papers and databases available at PSI to support cross-sectoral research agendas. He mentioned that he would demonstrate the methods in computer code and that all code and resources would be shared afterwards for participants to explore independently. The objective, he said, was to introduce ideas and methods while sparking discussion on how they could be useful for PSI staff.

Before delving into the content, Dr. Niall briefly described IPA as an international research and policy organization founded in 2002, operating across more than 20 countries. He highlighted that IPA brings together researchers and policymakers, manages teams on data collection and quality assurance, and follows the entire policy research lifecycle—from framing policy questions to generating evidence, measuring impact, and scaling solutions. He noted that while randomized control trials had been a key method for measuring impact, many partners increasingly required faster insights from data collected from citizens, beneficiaries, or ongoing research projects.

 Dr. Niall Keleher, Senior Director, Global Research and Data Science, Innovations for Poverty Action (IPA)

He emphasized that IPA was leveraging AI to expedite the generation of new insights, always grounded in high-quality data, which forms the basis for evidence-driven change. Dr. Niall explained that IPA works closely with government partners, including PSI, to co-design AI solutions integrated into existing infrastructures, identify strategic data sources, and build local capacity through workshops and training. He stressed the importance of ensuring that AI tools are effectively incorporated into workflows to produce actionable evidence for stakeholders. Finally, he described IPA’s approach as stage-based learning, working with partners to develop insights and understand problems systematically.

Dr. Niall explained that IPA’s approach to research and program evaluation begins with what they call the “idea phase,” in which they identify and refine the theory of change and look for early signs of success in the tools, systems, policies, or programs being tested with partners. He noted that this iterative process ensures that the right questions are asked and the appropriate data are collected. He added that the next step typically involves measuring impact, often through randomized control trials, to determine whether a program achieves the intended outcomes. Following this, IPA moves into the “adapt and scale” phase, working across the entire research lifecycle rather than limiting engagement to workshops or training sessions.

He described the evaluation process for AI tools, emphasizing several steps: model evaluation, to check whether AI models produce meaningful and accurate responses; process or product evaluation, to assess whether people are using the tools; behavioral evaluation, to see whether these tools change user behavior or prove beneficial in work or daily life; and impact evaluation, which anchors the work and measures broader outcomes, such as poverty reduction or improvements in education. He explained that these steps, developed for evaluating development programs, are applied similarly when introducing AI to government partners like PSI.

To make this concrete, Dr. Niall provided examples from IPA’s work. In the Philippines, IPA partnered with the Department of Education to predict which students were at risk of dropping out, using administrative records and machine learning models to provide actionable insights for policy intervention. In Peru, they used satellite imagery and AI to identify dump site fires in collaboration with environmental regulatory authorities, helping to protect the environment, livelihoods, and animal welfare. In Rwanda, IPA worked with the Department of Education to track teacher vacancies and assign applicants to areas of greatest need, developing real-time data systems to support efficient decision-making.

Dr. Niall further explained that in the Philippines project, the models analyze data such as attendance records, academic outcomes, and background information to predict the likelihood of student dropout, with each student assigned a probability of leaving school. He clarified that the machine learning models adopt a “kitchen sink” approach, incorporating a wide range of factors—including family care and school distance—to identify patterns and prioritize students most at risk, rather than isolating a single cause. He noted that similar multi-source data integration is used in other projects, ensuring that the AI tools provide comprehensive insights to inform partner decisions.

Dr. Niall contextualized IPA’s work for the PSI participants, noting that there is growing interest from organizations and companies, including Google, in using machine learning and AI to support public services. He explained that one specific initiative IPA was exploring focuses on AI for government innovation. He emphasized that this reflects both an increased need for rapid insights for government partners and growing investment interest from technologists and funders in the AI-for-government space.

Dr. Niall highlighted that the motivation for IPA’s work lies in how AI and data science can accelerate research workflows, evidence generation, and collaboration with policy stakeholders, ultimately helping to translate data into actionable knowledge. He mentioned that AI could also support knowledge management systems capable of learning across repositories, including PSI’s working papers and other databases. However, he cautioned that integrating these tools is an ongoing process of learning and experimentation, and participants were encouraged to ask questions and explore the materials at their own pace.

In the course of the training, Dr. Niall suggested a brief round of introductions among the PSI participants to better understand their roles—whether research, policy, or both—and any sector expertise, which could inform the structure of later sessions. He indicated that this would help tailor discussions and potential breakouts for the workshop.

Dr. Niall asked participants to indicate whether they were involved in policy work in addition to research, noting that this information would help contextualize the session. He acknowledged the diversity of sectoral representation and expressed appreciation for the participants’ engagement. He emphasized that the discussion would cover ethical issues, quality assurance in data, and the use of large language models (LLMs) in AI, some of which would be explored in depth, while others could be followed up later.

Dr. Niall explained that participants were likely familiar with AI and LLMs, which have become increasingly widely used in recent years. He described how LLMs work by taking a large body of training data from various sources, including companies such as OpenAI, Anthropic, Google, Meta, Alibaba, and Mistral. He explained that this data—including documents, photos, and databases—is converted into parameters that detect patterns in human language. These patterns allow the models to predict sequences and associations in text, which can be applied to diverse tasks such as writing poems, drafting research reports, conducting data analysis, or generating policy recommendations. He noted that advances in computing power, including cloud computing and laptops, have made these capabilities much more accessible in recent years.

Dr. Niall addressed ethical considerations, noting that there are multiple choices in how to use LLMs. He contrasted cloud-based models, which communicate with servers located in other countries and have cost and data privacy implications, with local, on-device models. He explained that IPA prioritizes ethical data management by running models locally on laptops to protect sensitive information. This approach allows AI tools to operate without internet access and ensures that personally identifiable data does not leave the device. He emphasized that while local deployment may require more powerful hardware, it provides greater control over data privacy.

Dr. Niall shared his experience as a first-time visitor to Ethiopia, noting that he could not access some cloud-based services such as Anthropic’s Claude or OpenAI’s ChatGPT without a VPN. He checked with participants to see if they could access these services locally. Dr. Niall continued by noting that, although cloud-based LLMs such as ChatGPT or Claude can be used, there remain data residency concerns because the servers for these models are typically located in the US or EU. He suggested that eventually, large servers may be established in Ethiopia, but for now, IPA focuses on running LLMs locally on laptops to protect sensitive data.

He introduced a tool called Ollama, which serves as a database for both cloud-based and locally runnable LLMs. For the workshop, he explained, IPA would use a model developed by Alibaba, selected for its multilingual capabilities, including partial support for Ethiopian languages. He described the model specifications, noting that participants would work with a medium-sized 4-billion parameter model (approximately 3.4 GB) that could be installed and run on a personal laptop, while larger models would exceed the capacity of typical laptops. He explained that the number of parameters indicates the size of the trained model, giving examples such as a 7-billion parameter model requiring 55 GB of storage.

Dr. Niall also introduced the concept of “temperature” for LLMs, explaining that it controls the creativity of the model’s responses. Low temperature produces more deterministic, consistent answers, while high temperature allows more creative outputs, such as brainstorming slogans or research pitches. For the workshop, they would focus on a balanced, medium temperature range.He emphasized the importance of well-structured prompts when interacting with LLMs. He noted that vague or poorly defined prompts increase the likelihood of the model producing inaccurate or “hallucinated” outputs, using literature review tasks as an example where specificity is critical to obtaining reliable responses.

Dr. Niall emphasized the importance of writing well-structured prompts when interacting with LLMs. He explained that providing explicit context—such as specifying the user’s role as an agricultural policy expert in Ethiopia and requesting evidence-based interventions with brief rationales—helps the model generate more accurate and relevant responses. He noted that the LLM finds connections between the prompt and the information encoded in the model’s parameters, so the clearer the context, the better the results.

He then introduced participants to the key elements of interacting with LLMs using code, stressing that prior experience with Python was not necessary. He explained that the process involves establishing a client, which is analogous to opening a conversation with ChatGPT in a browser. Within this framework, the system is assigned a role (e.g., policy research assistant) to provide context, and the user inputs a query or prompt (e.g., asking about challenges in rural development). The LLM then generates responses based on this interaction, with additional settings such as temperature controlling the creativity of outputs. Dr. Niall reminded participants that these fundamental elements—client, system role, user prompt, and temperature—apply broadly across all LLMs, though more advanced usage can become more complex.

To illustrate, Dr. Niall demonstrated a hypothetical example using a local Alibaba model on his laptop. He showed how to extract key findings from a PSI working paper, loading only the title and abstract for the demonstration. He explained that the system role was set to “policy communications expert,” tasked with generating concise summaries for government decision-makers, while the user role contained the instruction to create a two- to three-sentence executive summary of the research abstract, focusing on main findings and policy implications. He noted that this mirrored the structure of typical interactions with ChatGPT, where the model combines the system instructions, user query, and settings like temperature to generate its response.

Dr. Niall explained that running local LLMs on a laptop has both benefits and limitations. He noted that while the speed would not match cloud-based models like OpenAI’s massive servers, it still allowed for generating outputs directly on the laptop without sending data externally. As an example, he demonstrated generating an executive summary from a hypothetical research abstract, produced entirely by the Alibaba model installed locally. The summary indicated that improved market access increased agricultural productivity and household income among rural Ethiopian smallholder farmers, with women-headed households benefiting disproportionately, and recommended targeted infrastructure investments to enhance poverty reduction and gender equity. He emphasized that outputs may vary in quality and accuracy but highlighted the novelty of generating such responses from a model that had never seen the specific question before.

Dr. Niall also illustrated that similar processes could be used to extract key findings or generate questions from research abstracts, setting specific roles for the model to produce focused outputs. He clarified that all demonstrations were run through Python code, which communicates with the locally installed Alibaba model, and participants would need to use this code to replicate the process on their own laptops. He compared the local setup to cloud-based servers, noting that while local models provide privacy and control over data, cloud servers offer more computational power.

Dr. Niall explained the distinction between interacting with LLMs via Python code and using natural-language prompts in cloud-based interfaces. He clarified that when users type a prompt, such as in ChatGPT or Claude, the underlying system still operates in the same way as the Python code he had demonstrated: the user input is fed to the model, which then generates responses based on the system instructions and the loaded data. He emphasized that the difference is largely a matter of user interface; whether through code or a web interface, the same computational processes occur.

He demonstrated how changing the system prompt can alter the model’s outputs and noted that this is an active area of research, where small modifications to instructions can produce different results. He also addressed questions from participants about uploading documents and interacting with the model. Dr. Niall explained that when documents are uploaded to a cloud-based model, they are converted into text that functions analogously to the “sample abstract” in the Python example. The user then inputs a query—such as generating a two- to three-sentence executive summary for policy-makers—and the system produces outputs in response to both the content and the instructions provided.

Dr. Niall highlighted that cloud-based models, like Claude or OpenAI’s servers, process queries much faster than local models. He noted that the Python code he showed merely reveals what happens behind the scenes, making the computational process transparent. He also mentioned that similar interactions could be implemented in programming languages like R, although Python and R currently offer richer development environments for working with LLMs compared to Stata, which is less versatile for this purpose.

Dr. Niall explained that users could generate executive summaries or other outputs from large language models using multiple interfaces. He clarified that the same process occurs whether one uses Python code, cloud-based platforms like Claude or OpenAI, or local software such as LM Studio and yan.ai installed on a laptop. He demonstrated LM Studio running on his laptop, showing that it produced an executive summary from a research abstract in a manner similar to the Python code and cloud-based examples.

He emphasized that users could choose the interface that best suited their comfort level: those familiar with coding could use Python, while others could use user-friendly interfaces like LM Studio or yan.ai. For non-sensitive data with reliable internet access, cloud-based models such as Claude, Gemini, or OpenAI were also viable options. Dr. Niall noted that the software successfully captured key impact measures from the abstract and stressed that all these interfaces allowed for customization through system instructions and user inputs.

He also highlighted considerations for managing files and outputs: for simpler use, data could be saved locally on the laptop, but in more advanced setups, the computer could communicate with a central database or repository. He stressed that LM Studio and yan.ai provided accessible ways to interact with local models without writing Python or R code. Finally, he noted that the tools and models, including OLLAMA, were free to download and use, and that the main cost consideration was the computational power and memory of the user’s computer.

Dr. Niall explained that files for large language model (LLM) use might not necessarily reside on a user’s laptop, but could be accessed from a server or repository. He noted that there are numerous ways to customize these models for specific purposes, making them more useful for individual needs. He briefly described yan.ai, a software installed on a laptop, which allows users to conduct queries using local LLMs they have downloaded.

He emphasized that local LLMs could be run without knowing Python or R, and that tools like LM Studio and yan.ai were good starting points. He also mentioned that OLLAMA and similar models are free to download and use, with the main cost being the computational power and memory of the user’s machine. He added that having a strong GPU improves performance, although some models can run without one. Dr. Niall further explained that different models exist for specific tasks, such as vision models for image processing and embedding models for understanding text, and that cloud-based models might incur costs for access to remote servers.

Dr. Niall then encouraged participants to think about potential use cases for LLMs in their own work. He acknowledged that responses could vary depending on the prompts and that models might be limited by the data used to train them. One participant shared concerns about the limitations of the models when generating theoretical or literature-based content, which Dr. Niall confirmed, emphasizing that while prompts can be customized, the underlying knowledge of the model cannot.

To address this, he introduced the concept of customizing the knowledge base using retrieval-augmented generation (RAG). He explained that RAG allows an LLM to access a repository of documents—such as PSI working papers—so that the model can learn from context-specific information. He described the process: breaking documents into chunks, creating embeddings unique to PSI’s content, and constructing a vector database that captures relationships among terms and concepts across sectors. This approach, he explained, allows the model to produce responses that are more accurate, relevant, and aligned with the institution’s research and policy priorities.

Dr. Niall concluded that while off-the-shelf LLMs like ChatGPT or Alibaba’s models provide a foundation, incorporating domain-specific knowledge through RAG makes the models truly useful for customized research and policy applications. He emphasized that this layered approach is essential for producing reliable outputs that reflect the specific language, analysis, and context of PSI’s work.

Dr. Niall explained that customizing large language models (LLMs) for PSI’s research purposes requires creating a dedicated knowledge base from PSI working papers. He noted that simply relying on an off-the-shelf model is insufficient because the model may lack the context or domain-specific knowledge needed for reliable outputs. To address this, he described using retrieval-augmented generation (RAG), where documents are first loaded into the system and then processed in manageable chunks to facilitate LLM comprehension.

He emphasized that the vector database created from these chunks allows the model to understand semantic relationships across documents. This approach goes beyond simple keyword matching—queries about, for example, poverty reduction programs do not require an exact phrase match. Instead, the RAG system identifies related concepts like social welfare programs or economic development interventions, enabling more accurate and context-aware responses.

Dr. Niall outlined the workflow: documents are loaded into Python memory (analogous to giving the LLM access to the database), then chunked into smaller sections for processing. Next, embeddings are generated using models trained to capture the unique language of the documents, including multilingual models if needed. These embeddings are stored in a vector database, which facilitates semantic search by detecting common patterns and relationships across documents.

He highlighted that in real-world applications, embeddings are pre-generated and stored, only updating when new documents are added. The LLM then uses these embeddings to retrieve relevant documents and generate answers that are customized for PSI’s research contexts. Dr. Niall clarified that this Python demonstration reflects what happens behind a user-friendly interface, showing the mechanics of how RAG enables a highly tailored, reliable, and semantically aware search and answer functionality.

Dr. Niall explained that the language model uses semantic similarity to search for the most relevant chunks in the vector database. When a user asks a question—e.g., “What interventions improve agricultural productivity in Ethiopia?”—the system does not rely on exact keyword matches. Instead, it compares the query to all document chunks in the database and retrieves those whose language and meaning are most similar to the question.

He emphasized that this process is context-aware: the model identifies relevant parts of papers that discuss agricultural productivity, including study titles, abstracts, and results. Each chunk retrieved is scored based on its closeness in the vector space, allowing the model to focus on the most semantically relevant information. While this is not deterministic (it does not guarantee only perfectly matching papers), it enables the LLM to generate responses grounded in the most contextually related content from the database.

Breaking documents into chunks for retrieval-augmented generation (RAG) involves a careful balance. Smaller chunks are easier for the system to process but may not capture the full context of the content, whereas larger chunks provide more accurate matches but take longer to process. A recommended chunk size is approximately 100–200 words, which allows for both efficient processing and a higher likelihood of retrieving relevant information. Customizing chunk size, system roles, and prompts should be done iteratively to ensure optimal performance and relevance for specific use cases.

Customized RAG systems can be tailored to specific repositories, such as PSI Working Papers, enabling the language model to answer targeted questions, for example, “What are the main barriers to healthcare access in rural Ethiopia?” By leveraging PSI-specific documents, the system generates responses that are more relevant and reliable than those produced by generic pretrained models. Despite these enhancements, human review and editing of outputs remain essential to ensure factual accuracy, clarity, and alignment with institutional standards.

AI can support the research lifecycle in multiple ways. During data preparation and cleaning, LLMs can standardize categorical variables, such as occupation, and convert free-text survey responses or focus group transcripts into structured formats. In exploratory data analysis, AI assists in detecting patterns, outliers, and emerging trends, helping researchers identify areas for deeper investigation. During the analysis and interpretation phase, LLMs can provide insights and recommendations, but human validation is necessary to confirm results. Additionally, AI can expedite report generation, produce documentation, and create interpretable visualizations, ensuring replicability and clarity for future users of the data or code.

Practical applications of LLMs for data cleaning and extraction include standardizing messy text data, parsing free-text responses into structured datasets, and handling unstructured or semi-structured sources. For example, survey responses containing “farmer,” “smallholder,” or “agriculture” can be mapped to a standardized category such as “Agriculture.” Open-ended farmer survey responses can be converted into structured data fields, capturing crops, farm size, challenges, and market behavior. Similarly, unstructured data from PDFs, emails, focus group transcripts, or images can be processed to extract relevant variables, such as the number of rooms or roof type from a house photograph.

LLMs can also act as data quality experts, identifying logical inconsistencies in large structured datasets. They can flag implausible ages, inconsistent numbers of children, or conflicts between occupation, income, and land ownership. This capability is especially valuable for large-scale datasets, where manual review would be time-consuming or impractical.

LLMs can play a key role in automated data quality checks by identifying logical inconsistencies in survey and structured datasets. For instance, responses such as a 17-year-old reporting three children, or a respondent claiming to own farmland but reporting zero hectares, can be flagged for review. The effectiveness of these checks improves when prompts provide clear instructions, including the specific field, the type of issue, and additional context such as severity or confidence levels. This allows the model to distinguish between minor anomalies and critical errors that require human intervention.

LLMs can also support geospatial data validation, helping cross-reference survey geocodes and locations to ensure consistency. When extracting structured information from freeform text, the system can map responses into standardized categories or variables, improving the usability of qualitative and semi-structured data. However, human validation remains essential; even highly customized models must be reviewed to ensure factual accuracy, reduce biases, and confirm alignment with the research objectives. Outputs should not replace human judgment, particularly for analytical or interpretive decisions.

Customizing AI tools for data cleaning and quality assurance can extend beyond code-based workflows. Interfaces can be adapted within Python, R, or STATA, or integrated into dashboards and survey platforms to streamline processes. For example, survey software like SurveyCTO is increasingly incorporating AI-assisted quality checks during survey design and data collection. Leveraging PSI’s own tools to customize these workflows ensures practicality without requiring deep technical expertise, making AI a practical supplement to human-led data verification and cleaning processes.

While local models provide flexibility and control, they may have performance limitations depending on hardware, such as slower processing on personal laptops. Cloud-based models can complement these local deployments, offering faster execution while maintaining the ability to customize prompts and extract structured outputs. Overall, combining LLMs with human oversight enables more efficient, reliable, and scalable data cleaning, validation, and workflow integration for research purposes.

The discussion emphasizes steps to minimize false or inaccurate outputs when using LLMs, highlighting the importance of careful prompt design, customized language model training, and providing relevant training data. For example, historical records such as midterm evaluations can serve as training data to help the system learn from prior work. A critical step in any LLM application is human review: outputs must be validated to ensure accuracy, safety, and alignment with intended objectives. Errors identified during this review can be fed back into the model to iteratively improve performance, creating a cycle of learning and refinement.

LLMs can also support frequent and complex data requests, such as midterm reviews, national development reports, or multi-ministry performance assessments. PSI staff highlighted that handling these requests efficiently requires organizing teams into specialized groups and having structured workflows, which can be further augmented by AI tools. LLMs can extract information and detect patterns from large, heterogeneous datasets, helping researchers and analysts respond to recurring information needs more quickly and accurately.

The session underscored practical strategies for implementing AI in organizational workflows. Custom prompts, user-friendly dashboards, and integration into existing tools can make AI accessible without requiring deep technical expertise. By combining team-based workflows with tailored LLM applications, PSI can enhance research synthesis, document retrieval, and program monitoring, while maintaining human oversight to ensure outputs are reliable, actionable, and aligned with organizational priorities.

The session concluded by emphasizing the potential of innovation through team-led applications of LLMs and AI, reinforcing that this is just the beginning of broader institutional collaboration. Speakers highlighted ongoing partnerships between PSI and IPA, noting that these collaborations will focus on data science, research workflows, and safe, effective use of AI over the coming years. Participants were encouraged to share ideas, propose collaborations, and seek guidance, as the facilitators made themselves available for advice and support. Finally, practical next steps were outlined, including sharing session materials such as slides, Python scripts, and local model demonstrations to help participants continue experimenting and integrating AI into their research and organizational workflows.

The training provided participants with hands-on experience and practical knowledge to effectively leverage AI and data science in research and policy settings. By equipping PSI staff and partners with these advanced skills, the institute reinforced its commitment to strengthening evidence-based decision-making and fostering innovation across its programs.

Contact Us

Articles View Hits
586853

Follow Us On