Code Snippet
Domain: Code Generation
π― Motivation
A small piece of reusable code. The model can generate snippets for common tasks on demand.
π Concrete Example
Snippet request: βHow to read a CSV file in Python?β Model: βimport csv; with open(βdata.csvβ) as f: reader = csv.reader(f); for row in reader: print(row)β Ready to use.
π Analogy
Pre-cut ingredients at a supermarket - instead of chopping vegetables yourself, you buy pre-cut ones. Code snippets are pre-cut code pieces, ready to use.