PanoEvJ commited on
Commit
bad4182
β€’
1 Parent(s): d6d77d8

more emails

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def get_df_from_workbook(sheet_name,
37
  url = f'https://docs.google.com/spreadsheets/d/{workbook_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}'
38
  return pd.read_csv(url)
39
 
40
- docEmailSample = Document(
41
  text="Hey KD, let's grab dinner after our next game, Steph",
42
  metadata={'from_to': 'Stephen Curry to Kevin Durant',}
43
  )
@@ -45,7 +45,28 @@ docEmailSample2 = Document(
45
  text="Yo Joker, you were a monster last year, can't wait to play against you in the opener! Draymond",
46
  metadata={'from_to': 'Draymond Green to Nikola Jokic',}
47
  )
48
- docAdditionalSamples = [docEmailSample, docEmailSample2]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  class AutoRetrieveModel(BaseModel):
51
  query: str = Field(..., description="natural language query string")
 
37
  url = f'https://docs.google.com/spreadsheets/d/{workbook_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}'
38
  return pd.read_csv(url)
39
 
40
+ docEmailSample1 = Document(
41
  text="Hey KD, let's grab dinner after our next game, Steph",
42
  metadata={'from_to': 'Stephen Curry to Kevin Durant',}
43
  )
 
45
  text="Yo Joker, you were a monster last year, can't wait to play against you in the opener! Draymond",
46
  metadata={'from_to': 'Draymond Green to Nikola Jokic',}
47
  )
48
+ docEmailSample3 = Document(
49
+ text="Hey LeBron, you ready for another showdown? Let's see if you can handle the Splash Bros again! 😜",
50
+ metadata={'from_to': 'Klay Thompson to LeBron James'}
51
+ )
52
+ docEmailSample4 = Document(
53
+ text="Yo Giannis, you sure you want to come to the Bay? We don't have any deer to hunt here! πŸ˜‚",
54
+ metadata={'from_to': 'Draymond Green to Giannis Antetokounmpo'}
55
+ )
56
+ docEmailSample5 = Document(
57
+ text="Hey Luka, you're a beast on the court. Let's swap jerseys after our game and show some love! πŸ’ͺ",
58
+ metadata={'from_to': 'Andrew Wiggins to Luka DončiΔ‡'}
59
+ )
60
+ docEmailSample5 = Document(
61
+ text="Devin Booker, we could use your scoring in the Bay. Think about it, bro! πŸ€",
62
+ metadata={'from_to': 'Klay Thompson to Devin Booker'}
63
+ )
64
+ docEmailSample6 = Document(
65
+ text="Tatum, you've got the skills. Let's team up and bring some championships to the Warriors! πŸ’",
66
+ metadata={'from_to': 'Draymond Green to Jayson Tatum'}
67
+ )
68
+ docAdditionalSamples = [docEmailSample1, docEmailSample2, docEmailSample3,
69
+ docEmailSample4, docEmailSample5, docEmailSample6]
70
 
71
  class AutoRetrieveModel(BaseModel):
72
  query: str = Field(..., description="natural language query string")