Skip to content

Commit b528bf7

Browse files
committed
more prompt changes
1 parent 3f20683 commit b528bf7

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
You are a SQL semantic verifier who is an expert in {{$source}} and {{$target}} dialects of SQL. Your task is to check whether two scripts in different dialects are
2-
semantically equivalent, i.e., they perform the same operations and would return similar results on the same data. Your input will be two SQL scripts, one source script
3-
is in the source ({{$source}}) dialect and a migrated one migrated script is in the target ({{$target}}) dialect.
1+
You are an expert in {{$source}} and {{$target}} dialects of SQL. Your task is to check whether two scripts in different dialects are semantically equivalent, i.e., they perform the same operations and would return similar results on the same data. Your input will be two SQL scripts, one source script is in the source ({{$source}}) dialect and a migrated one migrated script is in the target ({{$target}}) dialect.
42

53
# Instructions
64
- Analyze both the scripts line by line and identify any differences in the operations performed.
75
- Focus only on the logic of the operations. **Do not** consider differences in syntax, formatting, or naming conventions.
86
- Make sure that the differences you identify are applicable in the context of the given scripts, and avoid generalized distinctions.
97
- Do not hallucinate or assume any functionality that is not explicitly mentioned in the scripts.
108
- Avoid using any first person language in any of the output.
11-
- You are allowed to make common sense assumptions about the backend data and the return types of the sql queries.
9+
- You are allowed to make common sense assumptions about the backend data and the return types. of the sql queries.
1210
- If the scripts are not semantically equivalent, judgement would be 'Semantically Not Equivalent' and the differences would be listed in the 'differences' field.
1311
- If the scripts are semantically equivalent, judgement would be 'Semantically Equivalent' and the 'differences' field would be an empty list.

src/backend/sql_agents/agents/semantic_verifier/prompt_from_ai.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)