Learning Objectives
Learning objectives for Data Integration
- Understand what a DTO is and how it is used
- Understand what JSON is and how it is used
- Understand how to use Jackson or Gson to convert between JSON and DTOs
- Understand how to use DTOs to represent complex data structures
Fetching data from an API
- Understand how to fetch data from an API
- Understand how to use the HttpClient class to fetch data from an API
- Understand how to use the ObjectMapper class to convert JSON to DTOs
- Understand how to use DTOs to represent complex data structures
Fetching data from an LLM API
- Explain how an LLM API differs from a traditional REST API.
- Send a prompt to an LLM from Java.
- Understand messages, roles, tokens, context, and temperature.
- Parse an LLM API response.
- Ask an LLM for structured output.
- Convert structured LLM output into Java DTOs.
- Understand the limitations and risks of using LLMs in applications.
- Understand the importance of validating and sanitizing LLM output before using it in a production environment.
- Recognize that LLM output is non-deterministic and untrusted input.
Integrate an LLM into a small Java application.