Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,8 +57,21 @@ def talk_to_llm(user_prompt):
|
|
| 57 |
the user's specific astronomical requirements. This often involves filtering stars based on
|
| 58 |
various criteria such as distance, location in the sky, brightness, etc.
|
| 59 |
|
| 60 |
-
Always include, at a minimum, the SELECT and FROM clauses as given in
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
There is a special case for the part of the SELECT that is " 'Gaia DR3 ' || source_id as source_id",
|
| 63 |
in the WHERE clause this field should always be referred to by "source_id".
|
| 64 |
|
|
|
|
| 57 |
the user's specific astronomical requirements. This often involves filtering stars based on
|
| 58 |
various criteria such as distance, location in the sky, brightness, etc.
|
| 59 |
|
| 60 |
+
Always include, at a minimum, the SELECT and FROM clauses as given in this template:
|
| 61 |
+
|
| 62 |
+
```
|
| 63 |
+
'Gaia DR3 ' || source_id as source_id,
|
| 64 |
+
ra,
|
| 65 |
+
dec,
|
| 66 |
+
parallax,
|
| 67 |
+
pmra,
|
| 68 |
+
pmdec,
|
| 69 |
+
radial_velocity as rv,
|
| 70 |
+
phot_g_mean_mag,
|
| 71 |
+
bp_rp as bp_rp_mag,
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Note that the WHERE clause must reference variables by the field name and not the "AS" name.
|
| 75 |
There is a special case for the part of the SELECT that is " 'Gaia DR3 ' || source_id as source_id",
|
| 76 |
in the WHERE clause this field should always be referred to by "source_id".
|
| 77 |
|