Spaces:
Runtime error
Runtime error
attempt number 666
Browse files
app.py
CHANGED
@@ -195,23 +195,23 @@ Draymond Green to any NBA player,
|
|
195 |
|
196 |
strategy1 = Document(
|
197 |
text="Against the Phoenix Suns, we'll focus on ball movement and three-point shooting. Our starting five will consist of Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and James Wiseman. We'll exploit their defense with our perimeter shooting while Draymond Green handles the playmaking and defense in the paint.",
|
198 |
-
metadata={'game_strategy': 'against
|
199 |
)
|
200 |
strategy2 = Document(
|
201 |
text="Facing the Lakers, we'll emphasize defensive intensity and fast-break opportunities. Our starting lineup will feature Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We need to limit LeBron's impact and push the pace on offense to tire their older roster.",
|
202 |
-
metadata={'game_strategy': 'against
|
203 |
)
|
204 |
strategy3 = Document(
|
205 |
text="Against the Denver Nuggets, our strategy is to control the boards and exploit their interior defense. Starting with Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and James Wiseman, we aim to dominate the paint on both ends. We'll also look for opportunities to run in transition.",
|
206 |
-
metadata={'game_strategy': 'against
|
207 |
)
|
208 |
strategy4 = Document(
|
209 |
text="Facing the Milwaukee Bucks, we'll prioritize perimeter defense and transition play. Our starting five will consist of Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We must limit Giannis' drives to the basket and exploit their defense with quick ball movement.",
|
210 |
-
metadata={'game_strategy': 'against
|
211 |
)
|
212 |
strategy5 = Document(
|
213 |
text="In the matchup against the Brooklyn Nets, we'll focus on high-scoring games and exploiting defensive weaknesses. Our starting lineup will include Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We'll aim to outshoot and outpace them in a high-octane offensive battle.",
|
214 |
-
metadata={'game_strategy': 'against
|
215 |
)
|
216 |
chroma_collection = chroma_client.create_collection("coach_data")
|
217 |
vector_store_strategy = ChromaVectorStore(chroma_collection=chroma_collection)
|
@@ -257,8 +257,8 @@ def main():
|
|
257 |
)
|
258 |
|
259 |
description_emails = f"""\
|
260 |
-
Use this tool to look up emails
|
261 |
-
|
262 |
The vector database schema is given below:
|
263 |
{info_emails_players.json()}
|
264 |
"""
|
@@ -270,8 +270,8 @@ def main():
|
|
270 |
)
|
271 |
|
272 |
description_strategy = f"""\
|
273 |
-
Use this tool to look up information about the game strategy of Golden State Warriors
|
274 |
-
Use this tool only when
|
275 |
The vector database schema is given below:
|
276 |
{info_strategy.json()}
|
277 |
"""
|
|
|
195 |
|
196 |
strategy1 = Document(
|
197 |
text="Against the Phoenix Suns, we'll focus on ball movement and three-point shooting. Our starting five will consist of Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and James Wiseman. We'll exploit their defense with our perimeter shooting while Draymond Green handles the playmaking and defense in the paint.",
|
198 |
+
metadata={'game_strategy': 'against Phoenix Suns'}
|
199 |
)
|
200 |
strategy2 = Document(
|
201 |
text="Facing the Lakers, we'll emphasize defensive intensity and fast-break opportunities. Our starting lineup will feature Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We need to limit LeBron's impact and push the pace on offense to tire their older roster.",
|
202 |
+
metadata={'game_strategy': 'against Lakers'}
|
203 |
)
|
204 |
strategy3 = Document(
|
205 |
text="Against the Denver Nuggets, our strategy is to control the boards and exploit their interior defense. Starting with Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and James Wiseman, we aim to dominate the paint on both ends. We'll also look for opportunities to run in transition.",
|
206 |
+
metadata={'game_strategy': 'against Denver Nuggets'}
|
207 |
)
|
208 |
strategy4 = Document(
|
209 |
text="Facing the Milwaukee Bucks, we'll prioritize perimeter defense and transition play. Our starting five will consist of Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We must limit Giannis' drives to the basket and exploit their defense with quick ball movement.",
|
210 |
+
metadata={'game_strategy': 'against Milwaukee Bucks'}
|
211 |
)
|
212 |
strategy5 = Document(
|
213 |
text="In the matchup against the Brooklyn Nets, we'll focus on high-scoring games and exploiting defensive weaknesses. Our starting lineup will include Stephen Curry, Klay Thompson, Andrew Wiggins, Draymond Green, and Kevon Looney. We'll aim to outshoot and outpace them in a high-octane offensive battle.",
|
214 |
+
metadata={'game_strategy': 'against Brooklyn Nets'}
|
215 |
)
|
216 |
chroma_collection = chroma_client.create_collection("coach_data")
|
217 |
vector_store_strategy = ChromaVectorStore(chroma_collection=chroma_collection)
|
|
|
257 |
)
|
258 |
|
259 |
description_emails = f"""\
|
260 |
+
Use this tool to look up emails betweed NBA players.
|
261 |
+
Use this tool only when requested by one of ['I am Stephen Curry', 'I am Andrew Wiggins', 'I am Draymond Green', 'I am Klay Thompson'].
|
262 |
The vector database schema is given below:
|
263 |
{info_emails_players.json()}
|
264 |
"""
|
|
|
270 |
)
|
271 |
|
272 |
description_strategy = f"""\
|
273 |
+
Use this tool to look up information about the game strategy of Golden State Warriors.
|
274 |
+
Use this tool only when 'I am Steve Kerr' is true.
|
275 |
The vector database schema is given below:
|
276 |
{info_strategy.json()}
|
277 |
"""
|