You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Task**: Analyze the user's request and the provided JSON schema to guide an LLM in extracting information directly from HTML.
76
-
77
-
**User's Request**:
78
-
{user_input}
79
-
80
-
**Target JSON Schema**:
81
-
```json
82
-
{json_schema}
83
-
```
84
-
85
-
**Analysis Instructions**:
86
-
1. **Interpret User Request:**
87
-
* Identify the key information types or entities the user is seeking.
88
-
* Note any specific attributes, relationships, or constraints mentioned.
89
-
90
-
2. **Map to JSON Schema**:
91
-
* For each identified element in the user request, locate its corresponding field in the JSON schema.
92
-
* Explain how the schema structure represents the requested information.
93
-
* Highlight any relevant schema elements not explicitly mentioned in the user's request.
94
-
95
-
3. **Data Transformation Guidance**:
96
-
* Provide guidance on any necessary transformations to align extracted data with the JSON schema requirements.
97
-
98
-
This analysis will be used to instruct an LLM that has the HTML content in its context. The LLM will use this guidance to extract the information and return it directly in the specified JSON format.
99
-
100
-
**Reasoning Output**:
101
-
[Your detailed analysis based on the above instructions]
102
-
"""
103
-
104
-
TEMPLATE_REASONING_WITH_CONTEXT="""
105
-
**Task**: Analyze the user's request, provided JSON schema, and additional context to guide an LLM in extracting information directly from HTML.
106
-
107
-
**User's Request**:
108
-
{user_input}
109
-
110
-
**Target JSON Schema**:
111
-
```json
112
-
{json_schema}
113
-
```
114
-
115
-
**Additional Context**:
116
-
{additional_context}
117
-
118
-
**Analysis Instructions**:
119
-
1. **Interpret User Request and Context:**
120
-
* Identify the key information types or entities the user is seeking.
121
-
* Note any specific attributes, relationships, or constraints mentioned.
122
-
* Incorporate insights from the additional context to refine understanding of the task.
123
-
124
-
2. **Map to JSON Schema**:
125
-
* For each identified element in the user request, locate its corresponding field in the JSON schema.
126
-
* Explain how the schema structure represents the requested information.
127
-
* Highlight any relevant schema elements not explicitly mentioned in the user's request.
128
-
129
-
3. **Extraction Strategy**:
130
-
* Based on the additional context, suggest specific strategies for locating and extracting the required information from the HTML.
131
-
* Highlight any potential challenges or special considerations mentioned in the context.
132
-
133
-
4. **Data Transformation Guidance**:
134
-
* Provide guidance on any necessary transformations to align extracted data with the JSON schema requirements.
135
-
* Note any special formatting, validation, or business logic considerations from the additional context.
136
-
137
-
This analysis will be used to instruct an LLM that has the HTML content in its context. The LLM will use this guidance to extract the information and return it directly in the specified JSON format.
138
-
139
-
**Reasoning Output**:
140
-
[Your detailed analysis based on the above instructions, incorporating insights from the additional context]
**Task**: Analyze the user's request and the provided JSON schema to guide an LLM in extracting information directly from HTML.
7
+
8
+
**User's Request**:
9
+
{user_input}
10
+
11
+
**Target JSON Schema**:
12
+
```json
13
+
{json_schema}
14
+
```
15
+
16
+
**Analysis Instructions**:
17
+
1. **Interpret User Request:**
18
+
* Identify the key information types or entities the user is seeking.
19
+
* Note any specific attributes, relationships, or constraints mentioned.
20
+
21
+
2. **Map to JSON Schema**:
22
+
* For each identified element in the user request, locate its corresponding field in the JSON schema.
23
+
* Explain how the schema structure represents the requested information.
24
+
* Highlight any relevant schema elements not explicitly mentioned in the user's request.
25
+
26
+
3. **Data Transformation Guidance**:
27
+
* Provide guidance on any necessary transformations to align extracted data with the JSON schema requirements.
28
+
29
+
This analysis will be used to instruct an LLM that has the HTML content in its context. The LLM will use this guidance to extract the information and return it directly in the specified JSON format.
30
+
31
+
**Reasoning Output**:
32
+
[Your detailed analysis based on the above instructions]
33
+
"""
34
+
35
+
TEMPLATE_REASONING_WITH_CONTEXT="""
36
+
**Task**: Analyze the user's request, provided JSON schema, and additional context to guide an LLM in extracting information directly from HTML.
37
+
38
+
**User's Request**:
39
+
{user_input}
40
+
41
+
**Target JSON Schema**:
42
+
```json
43
+
{json_schema}
44
+
```
45
+
46
+
**Additional Context**:
47
+
{additional_context}
48
+
49
+
**Analysis Instructions**:
50
+
1. **Interpret User Request and Context:**
51
+
* Identify the key information types or entities the user is seeking.
52
+
* Note any specific attributes, relationships, or constraints mentioned.
53
+
* Incorporate insights from the additional context to refine understanding of the task.
54
+
55
+
2. **Map to JSON Schema**:
56
+
* For each identified element in the user request, locate its corresponding field in the JSON schema.
57
+
* Explain how the schema structure represents the requested information.
58
+
* Highlight any relevant schema elements not explicitly mentioned in the user's request.
59
+
60
+
3. **Extraction Strategy**:
61
+
* Based on the additional context, suggest specific strategies for locating and extracting the required information from the HTML.
62
+
* Highlight any potential challenges or special considerations mentioned in the context.
63
+
64
+
4. **Data Transformation Guidance**:
65
+
* Provide guidance on any necessary transformations to align extracted data with the JSON schema requirements.
66
+
* Note any special formatting, validation, or business logic considerations from the additional context.
67
+
68
+
This analysis will be used to instruct an LLM that has the HTML content in its context. The LLM will use this guidance to extract the information and return it directly in the specified JSON format.
69
+
70
+
**Reasoning Output**:
71
+
[Your detailed analysis based on the above instructions, incorporating insights from the additional context]
0 commit comments