You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example_tidd_ec = TIDDECModel(
task_type="Generate marketing content",
instructions=["Use active voice", "Include a call to action"],
do=["Highlight benefits", "Use simple language"],
dont=["Use jargon", "Make unsupported claims"],
examples=["'Buy now and save 20%!'"],
user_content="Product features and benefits"
)
The text was updated successfully, but these errors were encountered:
Guide to co star && Tidd ec - frameworks to structure the Instruction Input depending on the task at hand
from pydantic import BaseModel
from typing import Optional, List
CO-STAR Framework Model
class COStarModel(BaseModel):
context: str
objective: str
style: Optional[str] = None
tone: Optional[str] = None
audience: Optional[str] = None
response_format: Optional[str] = None
Example for CO-STAR
example_co_star = COStarModel(
context="E-commerce product description",
objective="Create a compelling product description",
style="Persuasive",
tone="Friendly",
audience="Online shoppers",
response_format="Paragraph"
)
TIDD-EC Framework Model
class TIDDECModel(BaseModel):
task_type: str
instructions: List[str]
do: List[str]
dont: List[str]
examples: List[str]
user_content: Optional[str] = None
Example for TIDD-EC
example_tidd_ec = TIDDECModel(
task_type="Generate marketing content",
instructions=["Use active voice", "Include a call to action"],
do=["Highlight benefits", "Use simple language"],
dont=["Use jargon", "Make unsupported claims"],
examples=["'Buy now and save 20%!'"],
user_content="Product features and benefits"
)
The text was updated successfully, but these errors were encountered: