I only want to extract the specific data that is set

I want to extract game data. For example, when my player is level 1, I want to extract only the Hp, Mp, and Attack stat of the monster. In this case, which part of the API document should I read? I want to learn a model and extract only that data. I hope only one data can be extracted, not several. Please recommend a document to read.

The first thing you need to be clear about in the process is exactly where you’re extracting the data from. From the entire Monster Manual? From a specific entry? From a picture?

If you already have this information in a database - you don’t need an LLM. You can use a traditional API to get the data you need.

If you do need an LLM, you should experiment with crafting a prompt that returns just the fields you’re looking for. You can create multiple prompts to use based on the level of your user. Finally, look into JSON mode which presents results in a structured form.

1 Like

Please explain the situation. i.e., when do you want to extract data