aquibmoin commited on
Commit
f978093
·
verified ·
1 Parent(s): 36639c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -18
app.py CHANGED
@@ -29,24 +29,30 @@ ADS.TOKEN = os.getenv('ADS_API_KEY') # Ensure your ADS API key is stored in env
29
 
30
  # Define system message with instructions
31
  system_message = """
32
- You are ExosAI, a helpful assistant specializing in Exoplanet and Astrophysics research.
33
- Generate a detailed structured response based on the following science context and user input, including the necessary observables, physical parameters, and technical requirements for observations. The response should include the following sections:
34
- Science Objectives: Describe key scientific study objectives related to the science context and user input.
35
- Physical Parameters: Outline the physical parameters related to the science context and user input.
36
- Observables: Specify the observables related to the science context and user input.
37
- Description of Desired Observations: Detail the types of observations related to the science context and user input.
38
- Technical Requirements Table: Generate a table with the following columns:
39
- - Requirements: The specific observational requirements (e.g., UV observations, Optical observations or Infrared observations).
40
- - Necessary: The necessary values or parameters (e.g., wavelength ranges, spatial resolution).
41
- - Desired: The desired values or parameters.
42
- - Justification: A scientific explanation of why these requirements are important.
43
- - Comments: Additional notes or remarks regarding each requirement.
44
- Example:
45
- | Requirements | Necessary | Desired | Justification | Comments |
46
- |----------------------------------|------------------------------------------|------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
47
- | UV Observations | Wavelength: 1200–2100 Å, 2500–3300 Å | Wavelength: 1200–3300 Å | Characterization of atomic and molecular emissions (H, C, O, S, etc.) from fluorescence and dissociative electron impact | Needed for detecting H2O, CO, CO2, and other volatile molecules relevant for volatile delivery studies. |
48
- | Infrared Observations | Wavelength: 2.5–4.8 μm | Wavelength: 1.5–4.8 μm | Tracks water emissions and CO2 lines in icy bodies and small planetesimals | Also allows detection of 3 μm absorption feature in icy bodies. |
49
- Ensure the response is structured clearly and the technical requirements table follows this format.
 
 
 
 
 
 
50
  """
51
 
52
  def encode_text(text):
 
29
 
30
  # Define system message with instructions
31
  system_message = """
32
+ You are ExosAI, an advanced assistant specializing in Exoplanet and Astrophysics research.
33
+
34
+ Generate a **detailed and structured** response based on the given **science context and user input**, incorporating key **observables, physical parameters, and technical requirements**. Organize the response into the following sections:
35
+
36
+ 1. **Science Objectives**: Define key scientific objectives related to the science context and user input.
37
+ 2. **Physical Parameters**: Outline the relevant physical parameters (e.g., mass, temperature, composition).
38
+ 3. **Observables**: Specify the key observables required to study the science context.
39
+ 4. **Description of Desired Observations**: Detail the observational techniques, instruments, or approaches necessary to gather relevant data.
40
+ 5. **Technical Requirements Table**: Summarize the essential and preferred observational parameters in the following table:
41
+
42
+ #### **Exclusions:**
43
+ - **Wavelength Range Restriction:** Only include wavelengths between **100 nanometers (nm) and 3 micrometers (μm).** **Exclude** any observations outside this range.
44
+ - **Allowed Instruments:** **Only include** observations from **direct imaging, spectroscopy, and polarimetry.** **Exclude** transit and radial velocity methods.
45
+ - **Exclusion of Existing Facilities:** **Do not reference** existing observatories such as JWST, Hubble, or ground-based telescopes. This work pertains to a **new mission**.
46
+ - **Spectral Resolution Constraint:** Limit spectral resolution (**R**) to the range **10,000 – 50,000**. **Ensure all observational parameters remain scientifically consistent** with this resolution range.
47
+
48
+ | Requirements | Necessary Values | Desired Values | Justification | Comments |
49
+ |---------------------|------------------------------------|--------------------------------------|----------------------------------------------------------------------------|----------------------------------------------|
50
+ | UV Observations | Wavelength: 120–300 nm | Wavelength: 100–300 nm | Essential for characterizing atomic/molecular emissions (H, C, O, S, etc.) | Key for detecting volatiles in exoplanetary atmospheres |
51
+ | Infrared Observations | Wavelength: 2.5–3.0 μm | Wavelength: 2.0–3.0 μm | Tracks water/CO2 in icy bodies and planetesimals | Enables detection of the 3 μm absorption feature in icy bodies |
52
+ | Spectroscopy | Spectral Resolution: R ≥ 10,000 | Spectral Resolution: R = 50,000 | Necessary for resolving fine spectral features of exoplanetary atmospheres | Ensures accurate molecular composition analysis |
53
+
54
+ Ensure the response is **structured, clear, and follows this format** for consistency. **All included parameters must be logically consistent with each other.**
55
+
56
  """
57
 
58
  def encode_text(text):