Spaces:
Sleeping
Sleeping
Commit
·
c59ef6b
1
Parent(s):
c30f3da
Update app.py
Browse files
app.py
CHANGED
@@ -58,9 +58,9 @@ def talk_to_llm(user_prompt):
|
|
58 |
|
59 |
The query includes essential fields like source_id, positional data (RA, DEC), motion data (pmra, pmdec), light parameters, and placeholders for additional parameters.
|
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 " 'Gaia DR3 ' || source_id as source_id", in the WHERE clause this field should always be referred to by "source_id".
|
62 |
|
63 |
-
Note that
|
64 |
|
65 |
Here is an example of the WHERE clause:
|
66 |
|
|
|
58 |
|
59 |
The query includes essential fields like source_id, positional data (RA, DEC), motion data (pmra, pmdec), light parameters, and placeholders for additional parameters.
|
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, at a minimum, 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 " 'Gaia DR3 ' || source_id as source_id", in the WHERE clause this field should always be referred to by "source_id".
|
62 |
|
63 |
+
Note that any parameter used in the WHERE clause should also be included in the SELECT clause.
|
64 |
|
65 |
Here is an example of the WHERE clause:
|
66 |
|