File size: 2,093 Bytes
d1c998c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""
Print the full seller system prompt that the user study sends to the model
for a fake but realistic participant. No comparison, no training format,
just the prompt.

Usage:
    cd /dfs/scratch1/echoi1/prolific_preferences
    python3 scripts/print_prompt.py
"""
from src.lsp_wrappers import (
    format_demographics,
    build_seller_system_prompt_preference,
)


DEMOGRAPHICS = {
    "age":                   "32",
    "gender":                "Female",
    "geographic_region":     "West",
    "education_level":       "College graduate/some postgrad",
    "race":                  "White",
    "us_citizen":            "Yes",
    "marital_status":        "Single",
    "religion":              "Agnostic",
    "religious_attendance":  "Never",
    "political_affiliation": "Independent",
    "income":                "$50,000-$75,000",
    "political_views":       "Moderate",
    "household_size":        "2",
    "employment_status":     "Full-time employment",
}

BACKGROUND = {
    "movies_criteria": (
        "I look for strong character development, an interesting plot, "
        "and good cinematography."
    ),
    "movies_enjoy": (
        "I enjoy psychological thrillers and indie dramas."
    ),
    "movies_avoid": (
        "I avoid slasher horror and broad slapstick comedies."
    ),
}

PAIR = {
    "pair_id":  "test-pair-001",
    "category": "movies",
    "product_a": {
        "title":       "Eternal Sunshine of the Spotless Mind",
        "description": ["A heartfelt sci-fi romance about memory and love."],
        "features":    [],
        "price":       "12.99",
    },
    "product_b": {
        "title":       "The Hangover",
        "description": ["A wild bachelor party comedy in Las Vegas."],
        "features":    [],
        "price":       "9.99",
    },
}


cfg = {
    "prompt_variant": {
        "personalization": True,
        "include_bio":     True,
    },
}

demo_str   = format_demographics(DEMOGRAPHICS, background=BACKGROUND, include_bio=True)
sys_prompt = build_seller_system_prompt_preference(PAIR, cfg, demo_str)

print(sys_prompt)