bstraehle commited on
Commit
ac23533
·
verified ·
1 Parent(s): 2d962e1

Update agents/models/prompts.py

Browse files
Files changed (1) hide show
  1. agents/models/prompts.py +19 -2
agents/models/prompts.py CHANGED
@@ -5,6 +5,7 @@
5
  PROMPT_IMG_TO_FEN = """
6
  You are an expert image to FEN generation assistant with highest attention to detail.
7
  Given a user question, image of a chess position, and active color, your task is to generate the FEN of the image.
 
8
 
9
  **Active Color**: {active_color}
10
 
@@ -18,7 +19,17 @@ Given a user question, image of a chess position, and active color, your task is
18
  - Provide all portions of the FEN, including active color, castling rights, en passant, and move counters.
19
  - Return ONLY the FEN, nothing else.
20
 
21
- **Example Output:** rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
 
 
 
 
 
 
 
 
 
 
22
 
23
  **User Question:** {question}
24
 
@@ -42,7 +53,13 @@ Only provide your answer, no explanation.
42
  - If two identical pieces can go to the same square, the move is disambiguated with file or rank (e.g., Nbd2 or R1e2).
43
  - En passant is recorded like a standard capture (e.g., exd6 e.p.).
44
 
45
- **Example Output:** Qxb1, Ra8#
 
 
 
 
 
 
46
 
47
  **User Question:** {question}
48
 
 
5
  PROMPT_IMG_TO_FEN = """
6
  You are an expert image to FEN generation assistant with highest attention to detail.
7
  Given a user question, image of a chess position, and active color, your task is to generate the FEN of the image.
8
+ If the user question mentions not to move certain pieces, remove them from the FEN.
9
 
10
  **Active Color**: {active_color}
11
 
 
19
  - Provide all portions of the FEN, including active color, castling rights, en passant, and move counters.
20
  - Return ONLY the FEN, nothing else.
21
 
22
+ **Examples:**
23
+
24
+ **FEN**: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
25
+
26
+ **FEN**: r1bq1rk1/pp1n1ppp/2p1pn2/3p4/3P4/2N1PN2/PPQ2PPP/R1B2RK1 w KQ - 4 12
27
+
28
+ **FEN**: r1bqkb1r/pppp1ppp/2n2n2/4p3/2B1P3/8/PPPP1PPP/RNBQK1NR b KQkq - 0 4
29
+
30
+ **FEN**: rnbqkbnr/ppp1pppp/8/8/3pP3/8/PPP2PPP/RNBQKBNR b KQkq d3 0 2
31
+
32
+ **FEN**: 8/6p1/5K2/8/8/8/7k/8 w - - 0 1
33
 
34
  **User Question:** {question}
35
 
 
53
  - If two identical pieces can go to the same square, the move is disambiguated with file or rank (e.g., Nbd2 or R1e2).
54
  - En passant is recorded like a standard capture (e.g., exd6 e.p.).
55
 
56
+ **Examples:**
57
+
58
+ **Algebraic Chess Notation:** Qxb1, Ra8#
59
+
60
+ **Algebraic Chess Notation:** R1e2
61
+
62
+ **Algebraic Chess Notation:** Nf3+
63
 
64
  **User Question:** {question}
65