Skip to main content
This tutorial walks through three production-style use cases for structured data extraction with the gliner2-base-v1 model. You will use plain text only (resumes, LinkedIn-style exports, job posts). Not OCR or PDF parsing.
All sample people and companies in the example dataset are synthetic and fictional.

🎥 Watch the Video Guide

What you will build

Model (steps 1-3): gliner2-base-v1
Endpoint: POST https://api.zerogpu.ai/v1/responses
Get your API key and project ID from the dashboard. See Authentication.

Before you start

Clone or browse the example data and scripts in the cookbook repo:
GitHub: zerogpu/cookbook/demos/data-extraction (see the README for setup).

Step 1: Extract a candidate from a resume

Open dataset/resumes.jsonl and pick resume-001 (synthetic). Define a schema under metadata.schema with use case json.
Check your result: You should see a candidate object (often under data.candidate[0]) with populated strings. If a field is missing from the source text, it may be empty. Tighten field descriptions or add a second pass only where needed.

Step 2: Structure LinkedIn-style profile text

Scrapers often return a single blob: headline, About, Experience. Use a profile schema (same json use case).
Paste text from profiles.jsonl (profile-001) as input. Parse the response the same way as Step 1.
This tutorial assumes you already have compliant text from your pipeline. ZeroGPU does not scrape LinkedIn for you.

Step 3: Tag skills in a job post (NER)

When you need categories instead of fixed columns, set metadata.usecase to ner and pass labels:
Lower threshold to recall more spans; raise it when precision matters more.

Step 4: Run the full example dataset

Batch all synthetic resumes or profiles locally:
Results are written to demos/data-extraction/outputs/*.jsonl. Inspect them before wiring into production ETL. For many files at once, combine this with the Batch API (parallelism, retries).

Optional: PII on inbound text

Before storing user-submitted resumes, run PII extraction with the gliner-multi-pii-v1 model and extract-pii or redact.

Production tips

  • Start small: 5-8 schema fields beat 20 vague ones.
  • Golden set: Keep 10-20 labeled examples from your real text shapes; re-run after schema changes.
  • Text only: PDF and image pipelines are out of scope for this tutorial; convert to text upstream.
  • Monitor: Use Logs and Usage in the dashboard.

Go deeper

gliner2-base-v1 model

API reference and schema examples for json and NER extraction.

Example dataset (GitHub)

Synthetic resumes, profiles, and job posts (JSONL).

Companion article

Long-form walkthrough in the cookbook repo.

gliner2-base-v1 playground

Try schemas interactively in the model catalog.