Welcome, my name is Joe Badaczewski

# post

Generative AI with LLMs Pt. 2

2024-04-30 • In-context learning and practical applications

Today I continued the above course on LLMs and studied a topic called "in-context learning" (ICL). ICL is a part of prompt engineering. Prompt engineering is the process of training an LLM by providing clear instructions and guidance to receive more desirable output. Engineers use ICL to train a model on a specific domain by providing examples of successful outcomes directly in the prompt. The goal is to engineer the prompts to encourage the LLM to learn by example. However, prompt engineering has to be cognizant of the "context window". Using ICL is restricted by the size of the "context window", which is sometimees only a couple thousand words.


For my personal project end (which at its core is a turn based strategy game similar to Risk on an interplanetary scale), I can envision using an LLM to determine the overall "winner" of a match. To clarify, each match in end will have a multi faceted outcome that looks at resource usage and overall soldier count to determine a set of different "outcomes" that could have far reaching effects on several different planetary systems. By using "multi shot inference" to train a model, I can provide multiple basic example "game winners" from other matches to help the LLMs learn what a "winner" truly looks like in the context of a multi dimensional gaming system.