Schéma JSON : extraire un CV
JSON Schema pour extraire un CV avec un LLM : expériences, compétences, langues et formation, prêt pour les sorties structurées.
Extrais les informations du CV. N'invente rien : si une information manque, laisse le champ vide. Ne déduis ni l'âge, ni la situation familiale, ni l'origine.
JSON Schema
{
"type": "object",
"required": [
"nom",
"experiences",
"competences"
],
"properties": {
"nom": {
"type": "string"
},
"titre": {
"type": "string",
"description": "Intitulé du poste recherché ou actuel"
},
"langues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"langue": {
"type": "string"
},
"niveau": {
"type": "string"
}
}
}
},
"formation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"annee": {
"type": "string"
},
"diplome": {
"type": "string"
},
"etablissement": {
"type": "string"
}
}
}
},
"competences": {
"type": "array",
"items": {
"type": "string"
}
},
"experiences": {
"type": "array",
"items": {
"type": "object",
"required": [
"poste",
"entreprise"
],
"properties": {
"fin": {
"type": "string"
},
"debut": {
"type": "string"
},
"poste": {
"type": "string"
},
"entreprise": {
"type": "string"
}
}
}
},
"annees_experience": {
"type": "number"
}
}
}Coste estimado
Tokens de entrada por llamada : ≈ 578
| Modelo | Por llamada | Por 1.000 llamadas |
|---|---|---|
| Mistral Large · Mistral AI | 0,00026 € | 0,25 € |
| DeepSeek Flash · DeepSeek | 0,00015 € | 0,15 € |
| DeepSeek V4 Pro · DeepSeek | 0,00067 € | 0,67 € |
| GPT-6 Luna · OpenAI | 0,00005 € | 0,05 € |
| GPT-6 Sol · OpenAI | 0,00102 € | 1,02 € |
| Claude Sonnet 5.5 · Anthropic | 0,00102 € | 1,02 € |
| Claude Opus 5.5 · Anthropic | 0,00204 € | 2,04 € |
| Modelo de código abierto autoalojado (Ollama, vLLM) | 0 € de API (solo el coste del servidor) | |
Solo coste de entrada, sin la respuesta del modelo. Precios públicos estándar de los proveedores (Mistral AI, DeepSeek, OpenAI, Anthropic) convertidos de USD a euros al tipo del BCE del 29 de septiembre de 2026. Estimación: 1 token ≈ 3,6 caracteres.
Common to all 3 regions
Created by the author, no outside source.
Commercial use allowed · credit the author · changes allowed.
Text or data only: no access to files, network or commands.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 5/5
No personal data.
No training data: no summary required.
United States · 5/5
No personal data.
No training data: no documentation to publish.
China · 5/5
No personal data.
No training data; AI-generated content published in China must be labelled (2025).
Indicative summary as of 30/09/2026, not a legal certification. Method and sources →
Estadísticas
Me gusta : 0 · Comentarios : 0
Haz clic en un contador para mostrarlo u ocultarlo; pasa el ratón por el gráfico para ver el detalle. Una visita por visitante y día, sin robots; recuento iniciado el 30 de septiembre de 2026.
- Identificador
- contextetech--extraire-un-cv
- Tipo
- Esquemas de salida
- Archivo
- extraire-un-cv.schema.json
- Formato
- JSON (application/json)
- Tamaño
- 1479 bytes (1,4 KB)
- Codificación
- UTF-8
- Tokens estimados
- ≈ 410
- Idioma
- Francés
- Licencia
- MIT
- Uso comercial
- Permitido
- Datos personales
- Ninguno
- Versión
- 1.0
- Publicado el
- 1 de octubre de 2026 a las 18:55
- Actualizado el
- 1 de octubre de 2026 a las 18:55
- Almacenamiento
- en base de datos
- Usos
- 0
- Me gusta
- 0
extraire-un-cv.schema.json
{
"type": "object",
"required": [
"nom",
"experiences",
"competences"
],
"properties": {
"nom": {
"type": "string"
},
"titre": {
"type": "string",
"description": "Intitulé du poste recherché ou actuel"
},
"langues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"langue": {
"type": "string"
},
"niveau": {
"type": "string"
}
}
}
},
"formation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"annee": {
"type": "string"
},
"diplome": {
"type": "string"
},
"etablissement": {
"type": "string"
}
}
}
},
"competences": {
"type": "array",
"items": {
"type": "string"
}
},
"experiences": {
"type": "array",
"items": {
"type": "object",
"required": [
"poste",
"entreprise"
],
"properties": {
"fin": {
"type": "string"
},
"debut": {
"type": "string"
},
"poste": {
"type": "string"
},
"entreprise": {
"type": "string"
}
}
}
},
"annees_experience": {
"type": "number"
}
}
}API de Anthropic (Python)
import json, anthropic
schema = json.load(open("extraire-un-cv.schema.json"))
client = anthropic.Anthropic()
resp = client.messages.create(model="claude-sonnet-5", max_tokens=1024,
tools=[{"name": "extraire", "description": "Renvoie les données extraites", "input_schema": schema}],
tool_choice={"type": "tool", "name": "extraire"},
messages=[{"role": "user", "content": "tu entrada aquí"}])
print(resp.content[0].input)Formato OpenAI (response_format)
{
"type": "json_schema",
"json_schema": {
"name": "extraire-un-cv",
"schema": {
"type": "object",
"required": [
"nom",
"experiences",
"competences"
],
"properties": {
"nom": {
"type": "string"
},
"titre": {
"type": "string",
"description": "Intitulé du poste recherché ou actuel"
},
"langues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"langue": {
"type": "string"
},
"niveau": {
"type": "string"
}
}
}
},
"formation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"annee": {
"type": "string"
},
"diplome": {
"type": "string"
},
"etablissement": {
"type": "string"
}
}
}
},
"competences": {
"type": "array",
"items": {
"type": "string"
}
},
"experiences": {
"type": "array",
"items": {
"type": "object",
"required": [
"poste",
"entreprise"
],
"properties": {
"fin": {
"type": "string"
},
"debut": {
"type": "string"
},
"poste": {
"type": "string"
},
"entreprise": {
"type": "string"
}
}
}
},
"annees_experience": {
"type": "number"
}
}
},
"strict": true
}
}
Comunidad
Aún no hay comentarios. Comparte tu opinión, ayudará a los siguientes.