Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare and Contrast between Dialog Engineering vs Co STAR - TIDD EC #79

Open
manisnesan opened this issue Nov 10, 2024 · 2 comments
Open

Comments

@manisnesan
Copy link
Owner

manisnesan commented Nov 10, 2024

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"
)

@manisnesan
Copy link
Owner Author

image

image

@manisnesan
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant