A beginner-friendly Prompt Engineering project focused on extracting structured information from unstructured text using Zero-Shot and Few-Shot Prompting techniques.
This project was completed as part of the DecodeLabs Prompt Engineering Training.
The goal of this project is to design prompts that extract specific information from messy text and return the result as valid JSON.
The extracted fields are:
- Name
- Age
- City
- Zero-Shot Prompt
- Few-Shot Prompt
- Structured JSON Output
- Delimiter Usage
- Example Inputs
- Expected Outputs
- Prompt Comparison
prompt-engineering-project-1
│
├── prompts
│ ├── zero_shot_prompt.md
│ └── few_shot_prompt.md
│
├── examples
│ ├── sample_inputs.md
│ ├── sample_outputs.json
│ └── test_cases.md
│
├── evaluation
│ └── comparison.md
│
├── screenshots
│
├── README.md
├── LICENSE
└── .gitignore
- Prompt Engineering
- Markdown
- JSON
- Git
- GitHub
The model receives only instructions to complete the task.
The model receives instructions along with examples to improve consistency and output quality.
John Smith
Age: 25
Email: johnsmith@gmail.com
Chicago
{
"name": "John Smith",
"email": "johnsmith@gmail.com",
"age": 25,
"city": "Chicago"
}Both prompts successfully extracted the required information from the provided sample inputs.
For simple inputs, Zero-Shot and Few-Shot prompts produced identical outputs. Few-Shot prompting is generally more effective for complex or ambiguous inputs because it provides examples for the model to follow.
Kiran Sarwar
Software Engineering Student | Aspiring AI Engineer
GitHub: https://github.com/Kiran-Sarwar