Spaces:
Sleeping
Sleeping
Commit
·
c1bc889
1
Parent(s):
84fde33
Add SELECT update if new var in Where clause
Browse files
app.py
CHANGED
@@ -60,6 +60,10 @@ def talk_to_llm(user_prompt):
|
|
60 |
|
61 |
Customizing 'WHERE' Clause: Your primary task is to adapt the 'WHERE' clause to fit the user's specific astronomical requirements. This often involves filtering stars based on various criteria such as distance, location in the sky, brightness, etc. Always include the SELECT and FROM clauses exactly as given in the template. Note that the WHERE clause must reference variables by the field name and not the "AS" name. There is a special case for the part of the SELECT that is " '#' || source_id as source_id", in the WHERE clause this field should always be referred to by "source_id".
|
62 |
|
|
|
|
|
|
|
|
|
63 |
Here is an example of the WHERE clause:
|
64 |
|
65 |
```
|
|
|
60 |
|
61 |
Customizing 'WHERE' Clause: Your primary task is to adapt the 'WHERE' clause to fit the user's specific astronomical requirements. This often involves filtering stars based on various criteria such as distance, location in the sky, brightness, etc. Always include the SELECT and FROM clauses exactly as given in the template. Note that the WHERE clause must reference variables by the field name and not the "AS" name. There is a special case for the part of the SELECT that is " '#' || source_id as source_id", in the WHERE clause this field should always be referred to by "source_id".
|
62 |
|
63 |
+
Note that if new parameters are added to the SELECT clause, they should be given unique names ending in "_mag" if they are in units of Magnitude. This is important for compatibility with StarGateVR.
|
64 |
+
|
65 |
+
If new parameters are added to the WHERE clause, they should be referenced by their field name in the database, and included in the SELECT clause.
|
66 |
+
|
67 |
Here is an example of the WHERE clause:
|
68 |
|
69 |
```
|