lspcloud/prolific-preferences-personalized
0
1"""2Print the full seller system prompt that the user study sends to the model3for a fake but realistic participant. No comparison, no training format,4just the prompt.5 6Usage:7 cd /dfs/scratch1/echoi1/prolific_preferences8 python3 scripts/print_prompt.py9"""10from src.lsp_wrappers import (11 format_demographics,12 build_seller_system_prompt_preference,13)14 15 16DEMOGRAPHICS = {17 "age": "32",18 "gender": "Female",19 "geographic_region": "West",20 "education_level": "College graduate/some postgrad",21 "race": "White",22 "us_citizen": "Yes",23 "marital_status": "Single",24 "religion": "Agnostic",25 "religious_attendance": "Never",26 "political_affiliation": "Independent",27 "income": "$50,000-$75,000",28 "political_views": "Moderate",29 "household_size": "2",30 "employment_status": "Full-time employment",31}32 33BACKGROUND = {34 "movies_criteria": (35 "I look for strong character development, an interesting plot, "36 "and good cinematography."37 ),38 "movies_enjoy": (39 "I enjoy psychological thrillers and indie dramas."40 ),41 "movies_avoid": (42 "I avoid slasher horror and broad slapstick comedies."43 ),44}45 46PAIR = {47 "pair_id": "test-pair-001",48 "category": "movies",49 "product_a": {50 "title": "Eternal Sunshine of the Spotless Mind",51 "description": ["A heartfelt sci-fi romance about memory and love."],52 "features": [],53 "price": "12.99",54 },55 "product_b": {56 "title": "The Hangover",57 "description": ["A wild bachelor party comedy in Las Vegas."],58 "features": [],59 "price": "9.99",60 },61}62 63 64cfg = {65 "prompt_variant": {66 "personalization": True,67 "include_bio": True,68 },69}70 71demo_str = format_demographics(DEMOGRAPHICS, background=BACKGROUND, include_bio=True)72sys_prompt = build_seller_system_prompt_preference(PAIR, cfg, demo_str)73 74print(sys_prompt)