Back to library
AI
tutorial

Automate Structured Data Extraction Using Improved Instruction Following

Leverage the improved instruction-following to automate data extraction tasks.

Utilize the model's enhanced instruction-following capabilities to convert unstructured text into precise structured formats like JSON for automation.

DeepSeek

The Scenario

You need to extract specific data fields from a messy, unformatted text document to feed into an automated database or a downstream software tool.

Before & after

The old way

Developers and analysts would manually write regex scripts or clean data in Excel to extract specific fields, which could take 45-60 minutes for unusual formats.

With AI

Input the unstructured data and request a JSON or structured output. The improved instruction following handles this in approximately 1 minute.

The Prompt

Extract the following data into a valid JSON format: [PASTE_UNSTRUCTURED_DATA]. 
Fields required: [FIELD_1], [FIELD_2], [FIELD_3]. 
Follow the instructions strictly.

DeepSeek-V3.2 has been specifically optimized for improved instruction following and agent capabilities, making it more reliable for 'Agents' that need to interact with other software via structured data.

Source

Change Log | DeepSeek API Docs
"DeepSeek V3.2 is DeepSeek's mixture-of-experts model with improved reasoning, coding, and instruction following capabilities."